clang-tools 20.0.0git
|
Represents a symbol occurrence in the source file. More...
#include <Ref.h>
Public Attributes | |
SymbolLocation | Location |
The source location where the symbol is named. | |
RefKind | Kind = RefKind::Unknown |
SymbolID | Container |
The ID of the symbol whose definition contains this reference. | |
Represents a symbol occurrence in the source file.
Despite the name, it could be a declaration/definition/reference.
WARNING: Location does not own the underlying data - Copies are shallow.
SymbolID clang::clangd::Ref::Container |
The ID of the symbol whose definition contains this reference.
For example, for a reference inside a function body, this would be that function. For top-level definitions this isNull().
Definition at line 92 of file Ref.h.
Referenced by clang::clangd::findReferences(), clang::clangd::incomingCalls(), clang::clangd::operator<(), and clang::clangd::operator==().
RefKind clang::clangd::Ref::Kind = RefKind::Unknown |
Definition at line 88 of file Ref.h.
Referenced by clang::clangd::findReferences(), clang::clangd::SymbolCollector::handleMacros(), llvm::yaml::MappingTraits< Ref >::mapping(), clang::clangd::operator<(), clang::clangd::operator<<(), clang::clangd::operator==(), clang::clangd::dex::Dex::refs(), and clang::clangd::remote::Marshaller::toProtobuf().
SymbolLocation clang::clangd::Ref::Location |
The source location where the symbol is named.
Definition at line 87 of file Ref.h.
Referenced by clang::clangd::findReferences(), clang::clangd::SymbolCollector::handleMacros(), clang::clangd::incomingCalls(), llvm::yaml::MappingTraits< Ref >::mapping(), clang::clangd::operator<(), clang::clangd::operator<<(), clang::clangd::operator==(), clang::clangd::MergedIndex::refs(), and clang::clangd::remote::Marshaller::toProtobuf().