clang  14.0.0git
Public Member Functions | Public Attributes | Friends | List of all members
clang::index::DeclOccurrence Struct Reference

#include "clang/Index/DeclOccurrence.h"

Collaboration diagram for clang::index::DeclOccurrence:
Collaboration graph
[legend]

Public Member Functions

 DeclOccurrence (SymbolRoleSet R, unsigned Offset, const Decl *D, ArrayRef< SymbolRelation > Relations)
 
 DeclOccurrence (SymbolRoleSet R, unsigned Offset, const IdentifierInfo *Name, const MacroInfo *MI)
 

Public Attributes

SymbolRoleSet Roles
 
unsigned Offset
 
llvm::PointerUnion< const Decl *, const MacroInfo * > DeclOrMacro
 
const IdentifierInfoMacroName = nullptr
 
SmallVector< SymbolRelation, 3 > Relations
 

Friends

bool operator< (const DeclOccurrence &LHS, const DeclOccurrence &RHS)
 

Detailed Description

Definition at line 23 of file DeclOccurrence.h.

Constructor & Destructor Documentation

◆ DeclOccurrence() [1/2]

clang::index::DeclOccurrence::DeclOccurrence ( SymbolRoleSet  R,
unsigned  Offset,
const Decl D,
ArrayRef< SymbolRelation Relations 
)
inline

Definition at line 30 of file DeclOccurrence.h.

◆ DeclOccurrence() [2/2]

clang::index::DeclOccurrence::DeclOccurrence ( SymbolRoleSet  R,
unsigned  Offset,
const IdentifierInfo Name,
const MacroInfo MI 
)
inline

Definition at line 34 of file DeclOccurrence.h.

Friends And Related Function Documentation

◆ operator<

bool operator< ( const DeclOccurrence LHS,
const DeclOccurrence RHS 
)
friend

Definition at line 38 of file DeclOccurrence.h.

Member Data Documentation

◆ DeclOrMacro

llvm::PointerUnion<const Decl *, const MacroInfo *> clang::index::DeclOccurrence::DeclOrMacro

Definition at line 26 of file DeclOccurrence.h.

◆ MacroName

const IdentifierInfo* clang::index::DeclOccurrence::MacroName = nullptr

Definition at line 27 of file DeclOccurrence.h.

◆ Offset

unsigned clang::index::DeclOccurrence::Offset

◆ Relations

SmallVector<SymbolRelation, 3> clang::index::DeclOccurrence::Relations

Definition at line 28 of file DeclOccurrence.h.

◆ Roles

SymbolRoleSet clang::index::DeclOccurrence::Roles

Definition at line 24 of file DeclOccurrence.h.


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