clang-tools 20.0.0git
Public Attributes | List of all members
clang::clangd::Ref Struct Reference

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.
 

Detailed Description

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.

Definition at line 85 of file Ref.h.

Member Data Documentation

◆ Container

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==().

◆ Kind

RefKind clang::clangd::Ref::Kind = RefKind::Unknown

◆ Location

SymbolLocation clang::clangd::Ref::Location

The documentation for this struct was generated from the following file: