12 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_FINDSYMBOLS_H 13 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_FINDSYMBOLS_H 17 #include "llvm/ADT/StringRef.h" 26 llvm::StringRef HintPath);
38 llvm::Expected<std::vector<SymbolInformation>>
40 const SymbolIndex *
const Index, llvm::StringRef HintPath);
llvm::Optional< ParsedAST > AST
llvm::Expected< std::vector< SymbolInformation > > getWorkspaceSymbols(llvm::StringRef Query, int Limit, const SymbolIndex *const Index, llvm::StringRef HintPath)
Searches for the symbols matching Query.
llvm::Expected< Location > symbolToLocation(const Symbol &Sym, llvm::StringRef HintPath)
Helper function for deriving an LSP Location for a Symbol.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::Expected< std::vector< DocumentSymbol > > getDocumentSymbols(ParsedAST &AST)
Retrieves the symbols contained in the "main file" section of an AST in the same order that they appe...
const SymbolIndex * Index