15 #ifndef LLVM_CLANG_TOOLS_EXTRA_UNITTESTS_CLANGD_SYNCAPI_H 16 #define LLVM_CLANG_TOOLS_EXTRA_UNITTESTS_CLANGD_SYNCAPI_H 28 llvm::Expected<CodeCompleteResult>
30 clangd::CodeCompleteOptions Opts);
35 llvm::Expected<std::vector<LocatedSymbol>>
38 llvm::Expected<std::vector<DocumentHighlight>>
41 llvm::Expected<std::vector<TextEdit>>
46 llvm::Expected<std::vector<SymbolInformation>>
59 #endif // LLVM_CLANG_TOOLS_EXTRA_UNITTESTS_CLANGD_SYNCAPI_H
WantDiagnostics
Determines whether diagnostics should be generated for a file snapshot.
llvm::Expected< CodeCompleteResult > runCodeComplete(ClangdServer &Server, PathRef File, Position Pos, clangd::CodeCompleteOptions Opts)
std::string runDumpAST(ClangdServer &Server, PathRef File)
llvm::Expected< SignatureHelp > runSignatureHelp(ClangdServer &Server, PathRef File, Position Pos)
llvm::Expected< std::vector< DocumentSymbol > > runDocumentSymbols(ClangdServer &Server, PathRef File)
llvm::Expected< std::vector< LocatedSymbol > > runLocateSymbolAt(ClangdServer &Server, PathRef File, Position Pos)
llvm::StringRef PathRef
A typedef to represent a ref to file path.
SymbolSlab runFuzzyFind(const SymbolIndex &Index, llvm::StringRef Query)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::Expected< std::vector< SymbolInformation > > runWorkspaceSymbols(ClangdServer &Server, llvm::StringRef Query, int Limit)
llvm::Expected< std::vector< DocumentHighlight > > runFindDocumentHighlights(ClangdServer &Server, PathRef File, Position Pos)
llvm::Expected< std::vector< TextEdit > > runRename(ClangdServer &Server, PathRef File, Position Pos, llvm::StringRef NewName)
std::array< uint8_t, 20 > SymbolID
Diagnostics must not be generated for this snapshot.
RefSlab getRefs(const SymbolIndex &Index, SymbolID ID)
void runAddDocument(ClangdServer &Server, PathRef File, llvm::StringRef Contents, WantDiagnostics WantDiags)
const SymbolIndex * Index