clang 17.0.0git
Public Attributes | List of all members
CXIdxEntityRefInfo Struct Reference

Data for IndexerCallbacks::indexEntityReference. More...

#include "clang-c/Index.h"

Collaboration diagram for CXIdxEntityRefInfo:
Collaboration graph

Public Attributes

CXIdxEntityRefKind kind
CXCursor cursor
 Reference cursor.
CXIdxLoc loc
const CXIdxEntityInforeferencedEntity
 The entity that gets referenced.
const CXIdxEntityInfoparentEntity
 Immediate "parent" of the reference.
const CXIdxContainerInfocontainer
 Lexical container context of the reference.
CXSymbolRole role
 Sets of symbol roles of the reference.

Detailed Description

Data for IndexerCallbacks::indexEntityReference.

Definition at line 6037 of file Index.h.

Member Data Documentation

◆ container

const CXIdxContainerInfo* CXIdxEntityRefInfo::container

Lexical container context of the reference.

Definition at line 6063 of file Index.h.

◆ cursor

CXCursor CXIdxEntityRefInfo::cursor

Reference cursor.

Definition at line 6042 of file Index.h.

◆ kind

CXIdxEntityRefKind CXIdxEntityRefInfo::kind

Definition at line 6038 of file Index.h.

◆ loc

CXIdxLoc CXIdxEntityRefInfo::loc

Definition at line 6043 of file Index.h.

◆ parentEntity

const CXIdxEntityInfo* CXIdxEntityRefInfo::parentEntity

Immediate "parent" of the reference.

For example:

Foo *var;

The parent of reference of type 'Foo' is the variable 'var'. For references inside statement bodies of functions/methods, the parentEntity will be the function/method.

Definition at line 6059 of file Index.h.

◆ referencedEntity

const CXIdxEntityInfo* CXIdxEntityRefInfo::referencedEntity

The entity that gets referenced.

Definition at line 6047 of file Index.h.

◆ role

CXSymbolRole CXIdxEntityRefInfo::role

Sets of symbol roles of the reference.

Definition at line 6067 of file Index.h.

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