clang: clang::sema::AccessedEntity Class Reference (original) (raw)
A declaration being accessed, together with information about how it was accessed. More...
#include "[clang/Sema/DelayedDiagnostic.h](DelayedDiagnostic%5F8h%5Fsource.html)"
Public Types | |
---|---|
enum | MemberNonce { Member } |
A member declaration found through lookup. More... | |
enum | BaseNonce { Base } |
A hierarchy (base-to-derived or derived-to-base) conversion. More... | |
Public Member Functions | |
---|---|
AccessedEntity (PartialDiagnostic::DiagStorageAllocator &Allocator, MemberNonce _, CXXRecordDecl *NamingClass, DeclAccessPair FoundDecl, QualType BaseObjectType) | |
AccessedEntity (PartialDiagnostic::DiagStorageAllocator &Allocator, BaseNonce _, CXXRecordDecl *BaseClass, CXXRecordDecl *DerivedClass, AccessSpecifier Access) | |
bool | isMemberAccess () const |
bool | isQuiet () const |
AccessSpecifier | getAccess () const |
NamedDecl * | getTargetDecl () const |
CXXRecordDecl * | getNamingClass () const |
CXXRecordDecl * | getBaseClass () const |
CXXRecordDecl * | getDerivedClass () const |
QualType | getBaseObjectType () const |
Retrieves the base object type, important when accessing an instance member. | |
void | setDiag (const PartialDiagnostic &PDiag) |
Sets a diagnostic to be performed. | |
PartialDiagnostic & | setDiag (unsigned DiagID) |
const PartialDiagnostic & | getDiag () const |
A declaration being accessed, together with information about how it was accessed.
Definition at line 50 of file DelayedDiagnostic.h.
◆ BaseNonce
A hierarchy (base-to-derived or derived-to-base) conversion.
The target is the base class.
Enumerator |
---|
Base |
Definition at line 58 of file DelayedDiagnostic.h.
◆ MemberNonce
A member declaration found through lookup.
The target is the member.
Enumerator |
---|
Member |
Definition at line 54 of file DelayedDiagnostic.h.
◆ AccessedEntity() [2/2]
◆ getAccess()
◆ getBaseClass()
CXXRecordDecl * clang::sema::AccessedEntity::getBaseClass ( ) const | inline |
---|
◆ getBaseObjectType()
QualType clang::sema::AccessedEntity::getBaseObjectType ( ) const | inline |
---|
Retrieves the base object type, important when accessing an instance member.
Definition at line 91 of file DelayedDiagnostic.h.
◆ getDerivedClass()
CXXRecordDecl * clang::sema::AccessedEntity::getDerivedClass ( ) const | inline |
---|
◆ getDiag()
◆ getNamingClass()
CXXRecordDecl * clang::sema::AccessedEntity::getNamingClass ( ) const | inline |
---|
◆ getTargetDecl()
NamedDecl * clang::sema::AccessedEntity::getTargetDecl ( ) const | inline |
---|
◆ isMemberAccess()
bool clang::sema::AccessedEntity::isMemberAccess ( ) const | inline |
---|
◆ isQuiet()
bool clang::sema::AccessedEntity::isQuiet ( ) const | inline |
---|
◆ setDiag() [1/2]
Sets a diagnostic to be performed.
The diagnostic is given four (additional) arguments: %0 - 0 if the entity was private, 1 if protected %1 - the DeclarationName of the entity %2 - the TypeDecl type of the naming class %3 - the TypeDecl type of the declaring class
Definition at line 99 of file DelayedDiagnostic.h.
References isQuiet().
◆ setDiag() [2/2]
The documentation for this class was generated from the following file:
- include/clang/Sema/DelayedDiagnostic.h