clang-tools 22.0.0git
llvm::yaml::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 88 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 95 of file Ref.h.

◆ Kind

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

Definition at line 91 of file Ref.h.

◆ Location

SymbolLocation clang::clangd::Ref::Location

The source location where the symbol is named.

Definition at line 90 of file Ref.h.


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