clang-tools 20.0.0git
|
Represents information about programming constructs like variables, classes, interfaces etc. More...
#include <Protocol.h>
Public Attributes | |
std::string | name |
The name of this symbol. | |
SymbolKind | kind |
The kind of this symbol. | |
Location | location |
The location of this symbol. | |
std::string | containerName |
The name of the symbol containing this symbol. | |
std::optional< float > | score |
The score that clangd calculates to rank the returned symbols. | |
Represents information about programming constructs like variables, classes, interfaces etc.
Definition at line 1131 of file Protocol.h.
std::string clang::clangd::SymbolInformation::containerName |
The name of the symbol containing this symbol.
Definition at line 1142 of file Protocol.h.
Referenced by clang::clangd::flattenSymbolHierarchy(), clang::clangd::operator<<(), and clang::clangd::toJSON().
SymbolKind clang::clangd::SymbolInformation::kind |
The kind of this symbol.
Definition at line 1136 of file Protocol.h.
Referenced by clang::clangd::flattenSymbolHierarchy(), and clang::clangd::toJSON().
Location clang::clangd::SymbolInformation::location |
The location of this symbol.
Definition at line 1139 of file Protocol.h.
Referenced by clang::clangd::flattenSymbolHierarchy(), and clang::clangd::toJSON().
std::string clang::clangd::SymbolInformation::name |
The name of this symbol.
Definition at line 1133 of file Protocol.h.
Referenced by clang::clangd::flattenSymbolHierarchy(), clang::clangd::operator<<(), and clang::clangd::toJSON().
std::optional<float> clang::clangd::SymbolInformation::score |
The score that clangd calculates to rank the returned symbols.
This excludes the fuzzy-matching score between name
and the query. (Specifically, the last ::-separated component). This can be used to re-rank results as the user types, using client-side fuzzy-matching (that score should be multiplied with this one). This is a clangd extension, set only for workspace/symbol responses.
Definition at line 1150 of file Protocol.h.
Referenced by clang::clangd::toJSON().