Go to the documentation of this file.
15 #ifndef LLVM_CLANG_TOOLS_EXTRA_UNITTESTS_CLANGD_SYNCAPI_H
16 #define LLVM_CLANG_TOOLS_EXTRA_UNITTESTS_CLANGD_SYNCAPI_H
26 StringRef Version =
"null",
28 bool ForceRebuild =
false);
30 llvm::Expected<CodeCompleteResult>
32 clangd::CodeCompleteOptions Opts);
37 llvm::Expected<std::vector<LocatedSymbol>>
40 llvm::Expected<std::vector<DocumentHighlight>>
44 Position
Pos, StringRef NewName,
47 llvm::Expected<tooling::Replacements>
56 llvm::Expected<std::vector<SelectionRange>>
58 const std::vector<Position> &
Pos);
60 llvm::Expected<llvm::Optional<clangd::Path>>
66 #endif // LLVM_CLANG_TOOLS_EXTRA_UNITTESTS_CLANGD_SYNCAPI_H
llvm::Expected< tooling::Replacements > runFormatFile(ClangdServer &Server, PathRef File, StringRef Code)
WantDiagnostics WantDiags
SymbolSlab runFuzzyFind(const SymbolIndex &Index, llvm::StringRef Query)
llvm::Expected< CodeCompleteResult > runCodeComplete(ClangdServer &Server, PathRef File, Position Pos, clangd::CodeCompleteOptions Opts)
Diagnostics must not be generated for this snapshot.
void runAddDocument(ClangdServer &Server, PathRef File, llvm::StringRef Contents, llvm::StringRef Version, WantDiagnostics WantDiags, bool ForceRebuild)
WantDiagnostics
Determines whether diagnostics should be generated for a file snapshot.
llvm::Expected< std::vector< SelectionRange > > runSemanticRanges(ClangdServer &Server, PathRef File, const std::vector< Position > &Pos)
RefSlab getRefs(const SymbolIndex &Index, SymbolID ID)
llvm::Expected< std::vector< LocatedSymbol > > runLocateSymbolAt(ClangdServer &Server, PathRef File, Position Pos)
llvm::Expected< llvm::Optional< clangd::Path > > runSwitchHeaderSource(ClangdServer &Server, PathRef File)
llvm::Expected< std::vector< DocumentHighlight > > runFindDocumentHighlights(ClangdServer &Server, PathRef File, Position Pos)
std::array< uint8_t, 20 > SymbolID
const SymbolIndex * Index
std::string runDumpAST(ClangdServer &Server, PathRef File)
llvm::StringRef PathRef
A typedef to represent a ref to file path.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::Expected< SignatureHelp > runSignatureHelp(ClangdServer &Server, PathRef File, Position Pos)
llvm::Expected< FileEdits > runRename(ClangdServer &Server, PathRef File, Position Pos, llvm::StringRef NewName, const RenameOptions &RenameOpts)