Changeset View
Changeset View
Standalone View
Standalone View
clangd/index/Index.h
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | struct Symbol { | ||||
// This just covers the symbol name. | // This just covers the symbol name. | ||||
// This may be the same as Definition. | // This may be the same as Definition. | ||||
// | // | ||||
// A C++ symbol may have multiple declarations, and we pick one to prefer. | // A C++ symbol may have multiple declarations, and we pick one to prefer. | ||||
// * For classes, the canonical declaration should be the definition. | // * For classes, the canonical declaration should be the definition. | ||||
// * For non-inline functions, the canonical declaration typically appears | // * For non-inline functions, the canonical declaration typically appears | ||||
// in the ".h" file corresponding to the definition. | // in the ".h" file corresponding to the definition. | ||||
SymbolLocation CanonicalDeclaration; | SymbolLocation CanonicalDeclaration; | ||||
// The number of translation units that reference this symbol from their main | |||||
// file. This number is only meaningful if aggregated in an index. | |||||
unsigned References = 0; | |||||
/// A brief description of the symbol that can be displayed in the completion | /// A brief description of the symbol that can be displayed in the completion | ||||
/// candidate list. For example, "Foo(X x, Y y) const" is a labal for a | /// candidate list. For example, "Foo(X x, Y y) const" is a labal for a | ||||
/// function. | /// function. | ||||
llvm::StringRef CompletionLabel; | llvm::StringRef CompletionLabel; | ||||
/// The piece of text that the user is expected to type to match the | /// The piece of text that the user is expected to type to match the | ||||
/// code-completion string, typically a keyword or the name of a declarator or | /// code-completion string, typically a keyword or the name of a declarator or | ||||
/// macro. | /// macro. | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |