clang 19.0.0git
Public Attributes | List of all members
clang::CXXBasePathElement Struct Reference

Represents an element in a path from a derived class to a base class. More...

#include "clang/AST/CXXInheritance.h"

Public Attributes

const CXXBaseSpecifierBase
 The base specifier that states the link from a derived class to a base class, which will be followed by this base path element.
 
const CXXRecordDeclClass
 The record decl of the class that the base is a base of.
 
int SubobjectNumber
 Identifies which base class subobject (of type Base->getType()) this base path element refers to.
 

Detailed Description

Represents an element in a path from a derived class to a base class.

Each step in the path references the link from a derived class to one of its direct base classes, along with a base "number" that identifies which base subobject of the original derived class we are referencing.

Definition at line 43 of file CXXInheritance.h.

Member Data Documentation

◆ Base

const CXXBaseSpecifier* clang::CXXBasePathElement::Base

The base specifier that states the link from a derived class to a base class, which will be followed by this base path element.

Definition at line 47 of file CXXInheritance.h.

◆ Class

const CXXRecordDecl* clang::CXXBasePathElement::Class

The record decl of the class that the base is a base of.

Definition at line 50 of file CXXInheritance.h.

◆ SubobjectNumber

int clang::CXXBasePathElement::SubobjectNumber

Identifies which base class subobject (of type Base->getType()) this base path element refers to.

This value is only valid if !Base->isVirtual(), because there is no base numbering for the zero or one virtual bases of a given type.

Definition at line 58 of file CXXInheritance.h.


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