clang  6.0.0svn
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"

Collaboration diagram for clang::CXXBasePathElement:
Collaboration graph
[legend]

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. More...
 
const CXXRecordDeclClass
 The record decl of the class that the base is a base of. More...
 
int SubobjectNumber
 Identifies which base class subobject (of type Base->getType()) this base path element refers to. More...
 

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 41 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 45 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 48 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 56 of file CXXInheritance.h.


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