|
clang-tools 23.0.0git
|
#include "Protocol.h"#include "index/Symbol.h"#include "clang/AST/Decl.h"#include "llvm/ADT/StringRef.h"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. | |
Typedefs | |
| using | clang::clangd::SymbolTags = uint32_t |
| A bitmask type representing symbol tags supported by LSP. | |
Functions | |
| llvm::Expected< Location > | clang::clangd::indexToLSPLocation (const SymbolLocation &Loc, llvm::StringRef TUPath) |
| Ensure we have enough bits to represent all SymbolTag values. | |
| llvm::Expected< Location > | clang::clangd::symbolToLocation (const Symbol &Sym, llvm::StringRef TUPath) |
| Helper function for deriving an LSP Location for a Symbol. | |
| llvm::Expected< std::vector< SymbolInformation > > | clang::clangd::getWorkspaceSymbols (llvm::StringRef Query, int Limit, const SymbolIndex *const Index, llvm::StringRef HintPath) |
Searches for the symbols matching Query. | |
| llvm::Expected< std::vector< DocumentSymbol > > | clang::clangd::getDocumentSymbols (ParsedAST &AST) |
| Retrieves the symbols contained in the "main file" section of an AST in the same order that they appear. | |
| SymbolTags | clang::clangd::toSymbolTagBitmask (SymbolTag ST) |
| Converts a single SymbolTag to a bitmask. | |
| SymbolTags | clang::clangd::computeSymbolTags (const NamedDecl &ND) |
| Computes symbol tags for a given NamedDecl. | |
| std::vector< SymbolTag > | clang::clangd::getSymbolTags (const NamedDecl &ND) |
| Returns the symbol tags for the given declaration. | |