class AccessedEntity
Declaration
class AccessedEntity { /* full declaration omitted */ };
Description
A declaration being accessed, together with information about how it was accessed.
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:50
Member Variables
- private unsigned int Access
- private unsigned int IsMember
- private clang::NamedDecl* Target
- private clang::CXXRecordDecl* NamingClass
- private clang::QualType BaseObjectType
- private clang::PartialDiagnostic Diag
Method Overview
- public AccessedEntity(PartialDiagnostic::DiagStorageAllocator & Allocator, clang::sema::AccessedEntity::MemberNonce _, clang::CXXRecordDecl * NamingClass, clang::DeclAccessPair FoundDecl, clang::QualType BaseObjectType)
- public AccessedEntity(PartialDiagnostic::DiagStorageAllocator & Allocator, clang::sema::AccessedEntity::BaseNonce _, clang::CXXRecordDecl * BaseClass, clang::CXXRecordDecl * DerivedClass, clang::AccessSpecifier Access)
- public clang::AccessSpecifier getAccess() const
- public clang::CXXRecordDecl * getBaseClass() const
- public clang::QualType getBaseObjectType() const
- public clang::CXXRecordDecl * getDerivedClass() const
- public const clang::PartialDiagnostic & getDiag() const
- public clang::CXXRecordDecl * getNamingClass() const
- public clang::NamedDecl * getTargetDecl() const
- public bool isMemberAccess() const
- public bool isQuiet() const
- public void setDiag(const clang::PartialDiagnostic & PDiag)
- public clang::PartialDiagnostic & setDiag(unsigned int DiagID)
Methods
¶AccessedEntity(
PartialDiagnostic::DiagStorageAllocator&
Allocator,
clang::sema::AccessedEntity::MemberNonce _,
clang::CXXRecordDecl* NamingClass,
clang::DeclAccessPair FoundDecl,
clang::QualType BaseObjectType)
AccessedEntity(
PartialDiagnostic::DiagStorageAllocator&
Allocator,
clang::sema::AccessedEntity::MemberNonce _,
clang::CXXRecordDecl* NamingClass,
clang::DeclAccessPair FoundDecl,
clang::QualType BaseObjectType)
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:60
Parameters
- PartialDiagnostic::DiagStorageAllocator& Allocator
- clang::sema::AccessedEntity::MemberNonce _
- clang::CXXRecordDecl* NamingClass
- clang::DeclAccessPair FoundDecl
- clang::QualType BaseObjectType
¶AccessedEntity(
PartialDiagnostic::DiagStorageAllocator&
Allocator,
clang::sema::AccessedEntity::BaseNonce _,
clang::CXXRecordDecl* BaseClass,
clang::CXXRecordDecl* DerivedClass,
clang::AccessSpecifier Access)
AccessedEntity(
PartialDiagnostic::DiagStorageAllocator&
Allocator,
clang::sema::AccessedEntity::BaseNonce _,
clang::CXXRecordDecl* BaseClass,
clang::CXXRecordDecl* DerivedClass,
clang::AccessSpecifier Access)
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:67
Parameters
- PartialDiagnostic::DiagStorageAllocator& Allocator
- clang::sema::AccessedEntity::BaseNonce _
- clang::CXXRecordDecl* BaseClass
- clang::CXXRecordDecl* DerivedClass
- clang::AccessSpecifier Access
¶clang::AccessSpecifier getAccess() const
clang::AccessSpecifier getAccess() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:77
¶clang::CXXRecordDecl* getBaseClass() const
clang::CXXRecordDecl* getBaseClass() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:84
¶clang::QualType getBaseObjectType() const
clang::QualType getBaseObjectType() const
Description
Retrieves the base object type, important when accessing an instance member.
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:91
¶clang::CXXRecordDecl* getDerivedClass() const
clang::CXXRecordDecl* getDerivedClass() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:87
¶const clang::PartialDiagnostic& getDiag() const
const clang::PartialDiagnostic& getDiag() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:109
¶clang::CXXRecordDecl* getNamingClass() const
clang::CXXRecordDecl* getNamingClass() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:81
¶clang::NamedDecl* getTargetDecl() const
clang::NamedDecl* getTargetDecl() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:80
¶bool isMemberAccess() const
bool isMemberAccess() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:73
¶bool isQuiet() const
bool isQuiet() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:75
¶void setDiag(
const clang::PartialDiagnostic& PDiag)
void setDiag(
const clang::PartialDiagnostic& PDiag)
Description
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
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:99
Parameters
- const clang::PartialDiagnostic& PDiag
¶clang::PartialDiagnostic& setDiag(
unsigned int DiagID)
clang::PartialDiagnostic& setDiag(
unsigned int DiagID)
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:103
Parameters
- unsigned int DiagID