14 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_XREFS_H 15 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_XREFS_H 20 #include "llvm/ADT/Optional.h" 28 const SymbolIndex *
Index =
nullptr);
35 llvm::Optional<Hover>
getHover(ParsedAST &AST, Position
Pos);
41 const SymbolIndex *
Index =
nullptr);
49 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_XREFS_H llvm::Optional< Hover > getHover(ParsedAST &AST, Position Pos)
Get the hover information when hovering at Pos.
std::vector< Location > findDefinitions(ParsedAST &AST, Position Pos, const SymbolIndex *Index)
Get definition of symbol at a specified Pos.
std::vector< SymbolDetails > getSymbolInfo(ParsedAST &AST, Position Pos)
Get info about symbols at Pos.
std::vector< DocumentHighlight > findDocumentHighlights(ParsedAST &AST, Position Pos)
Returns highlights for all usages of a symbol at Pos.
std::vector< Location > findReferences(ParsedAST &AST, Position Pos, uint32_t Limit, const SymbolIndex *Index)
Returns reference locations of the symbol at a specified Pos.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
const SymbolIndex * Index