clang-tools 20.0.0git
Namespaces | Functions
SyncAPI.cpp File Reference
#include "SyncAPI.h"
#include "Protocol.h"
#include "index/Index.h"
#include <optional>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::clangd
 FIXME: Skip testing on windows temporarily due to the different escaping code mode.
 

Functions

void clang::clangd::runAddDocument (ClangdServer &Server, PathRef File, llvm::StringRef Contents, llvm::StringRef Version, WantDiagnostics WantDiags, bool ForceRebuild)
 
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, llvm::StringRef NewName, const 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, llvm::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)