clang 22.0.0git
clang::CXXBasePath Class Reference

Represents a path from a specific derived class (which is not represented as part of the path) to a particular (direct or indirect) base class subobject. More...

#include "clang/AST/CXXInheritance.h"

Inheritance diagram for clang::CXXBasePath:
[legend]

Public Member Functions

 CXXBasePath ()=default
void clear ()

Public Attributes

AccessSpecifier Access = AS_public
 The access along this inheritance path.
DeclContext::lookup_iterator Decls
 The declarations found inside this base class subobject.

Detailed Description

Represents a path from a specific derived class (which is not represented as part of the path) to a particular (direct or indirect) base class subobject.

Individual elements in the path are described by the CXXBasePathElement structure, which captures both the link from a derived class to one of its direct bases and identification describing which base class subobject is being used.

Definition at line 69 of file CXXInheritance.h.

Constructor & Destructor Documentation

◆ CXXBasePath()

clang::CXXBasePath::CXXBasePath ( )
default

Member Function Documentation

◆ clear()

void clang::CXXBasePath::clear ( )
inline

Definition at line 81 of file CXXInheritance.h.

References Access, and clang::AS_public.

Member Data Documentation

◆ Access

AccessSpecifier clang::CXXBasePath::Access = AS_public

The access along this inheritance path.

This is only calculated when recording paths. AS_none is a special value used to indicate a path which permits no legal access.

Definition at line 74 of file CXXInheritance.h.

Referenced by clear(), DiagnoseAccessPath(), FindBestPath(), findDecomposableBaseClass(), HandleDynamicCast(), and IsAccessible().

◆ Decls

DeclContext::lookup_iterator clang::CXXBasePath::Decls

The declarations found inside this base class subobject.

Definition at line 79 of file CXXInheritance.h.

Referenced by clang::Sema::DiagnoseAmbiguousLookup(), findOrdinaryMember(), and clang::Sema::LookupQualifiedName().


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