clang-tools  14.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>

Collaboration diagram for clang::clangd::Ref:
Collaboration graph
[legend]

Public Attributes

SymbolLocation Location
 The source location where the symbol is named. More...
 
RefKind Kind = RefKind::Unknown
 
SymbolID Container
 The ID of the symbol whose definition contains this reference. More...
 

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 87 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 94 of file Ref.h.

Referenced by clang::clangd::incomingCalls().

◆ 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: