clang-tools 17.0.0git
Namespaces | Functions
SyncAPI.h File Reference
#include "ClangdServer.h"
#include "Protocol.h"
#include "index/Index.h"
#include <optional>
Include dependency graph for SyncAPI.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
namespace  clang::clangd


void clang::clangd::runAddDocument (ClangdServer &Server, PathRef File, StringRef Contents, StringRef Version="null", WantDiagnostics WantDiags=WantDiagnostics::Auto, bool ForceRebuild=false)
llvm::Expected< CodeCompleteResult > clang::clangd::runCodeComplete (ClangdServer &Server, PathRef File, Position Pos, clangd::CodeCompleteOptions Opts)
llvm::Expected< SignatureHelp > clang::clangd::runSignatureHelp (ClangdServer &Server, PathRef File, Position Pos, MarkupKind DocumentationFormat)
llvm::Expected< std::vector< LocatedSymbol > > clang::clangd::runLocateSymbolAt (ClangdServer &Server, PathRef File, Position Pos)
llvm::Expected< std::vector< DocumentHighlight > > clang::clangd::runFindDocumentHighlights (ClangdServer &Server, PathRef File, Position Pos)
llvm::Expected< RenameResult > clang::clangd::runRename (ClangdServer &Server, PathRef File, Position Pos, StringRef NewName, const clangd::RenameOptions &RenameOpts)
llvm::Expected< RenameResult > clang::clangd::runPrepareRename (ClangdServer &Server, PathRef File, Position Pos, std::optional< std::string > NewName, const RenameOptions &RenameOpts)
llvm::Expected< tooling::Replacements > clang::clangd::runFormatFile (ClangdServer &Server, PathRef File, std::optional< Range > Rng)
SymbolSlab clang::clangd::runFuzzyFind (const SymbolIndex &Index, StringRef Query)
SymbolSlab clang::clangd::runFuzzyFind (const SymbolIndex &Index, const FuzzyFindRequest &Req)
RefSlab clang::clangd::getRefs (const SymbolIndex &Index, SymbolID ID)
llvm::Expected< std::vector< SelectionRange > > clang::clangd::runSemanticRanges (ClangdServer &Server, PathRef File, const std::vector< Position > &Pos)
llvm::Expected< std::optional< clangd::Path > > clang::clangd::runSwitchHeaderSource (ClangdServer &Server, PathRef File)
llvm::Error clang::clangd::runCustomAction (ClangdServer &Server, PathRef File, llvm::function_ref< void(InputsAndAST)> Action)