clang API Documentation

Public Types | Public Member Functions
clang::sema::AccessedEntity Class Reference

#include <DelayedDiagnostic.h>

List of all members.

Public Types

enum  MemberNonce { Member }
enum  BaseNonce { Base }

Public Member Functions

bool isMemberAccess () const
 AccessedEntity (ASTContext &Context, MemberNonce _, CXXRecordDecl *NamingClass, DeclAccessPair FoundDecl, QualType BaseObjectType)
 AccessedEntity (ASTContext &Context, BaseNonce _, CXXRecordDecl *BaseClass, CXXRecordDecl *DerivedClass, AccessSpecifier Access)
bool isQuiet () const
AccessSpecifier getAccess () const
NamedDeclgetTargetDecl () const
CXXRecordDeclgetNamingClass () const
CXXRecordDeclgetBaseClass () const
CXXRecordDeclgetDerivedClass () const
QualType getBaseObjectType () const
void setDiag (const PartialDiagnostic &PDiag)
PartialDiagnosticsetDiag (unsigned DiagID)
const PartialDiagnosticgetDiag () const

Detailed Description

A declaration being accessed, together with information about how it was accessed.

Definition at line 31 of file DelayedDiagnostic.h.


Member Enumeration Documentation

A hierarchy (base-to-derived or derived-to-base) conversion. The target is the base class.

Enumerator:
Base 

Definition at line 39 of file DelayedDiagnostic.h.

A member declaration found through lookup. The target is the member.

Enumerator:
Member 

Definition at line 35 of file DelayedDiagnostic.h.


Constructor & Destructor Documentation

clang::sema::AccessedEntity::AccessedEntity ( ASTContext Context,
MemberNonce  _,
CXXRecordDecl NamingClass,
DeclAccessPair  FoundDecl,
QualType  BaseObjectType 
) [inline]

Definition at line 43 of file DelayedDiagnostic.h.

clang::sema::AccessedEntity::AccessedEntity ( ASTContext Context,
BaseNonce  _,
CXXRecordDecl BaseClass,
CXXRecordDecl DerivedClass,
AccessSpecifier  Access 
) [inline]

Definition at line 53 of file DelayedDiagnostic.h.


Member Function Documentation

AccessSpecifier clang::sema::AccessedEntity::getAccess ( ) const [inline]

Definition at line 66 of file DelayedDiagnostic.h.

CXXRecordDecl* clang::sema::AccessedEntity::getBaseClass ( ) const [inline]

Definition at line 73 of file DelayedDiagnostic.h.

QualType clang::sema::AccessedEntity::getBaseObjectType ( ) const [inline]

Retrieves the base object type, important when accessing an instance member.

Definition at line 80 of file DelayedDiagnostic.h.

CXXRecordDecl* clang::sema::AccessedEntity::getDerivedClass ( ) const [inline]

Definition at line 76 of file DelayedDiagnostic.h.

const PartialDiagnostic& clang::sema::AccessedEntity::getDiag ( ) const [inline]

Definition at line 98 of file DelayedDiagnostic.h.

CXXRecordDecl* clang::sema::AccessedEntity::getNamingClass ( ) const [inline]

Definition at line 70 of file DelayedDiagnostic.h.

NamedDecl* clang::sema::AccessedEntity::getTargetDecl ( ) const [inline]

Definition at line 69 of file DelayedDiagnostic.h.

bool clang::sema::AccessedEntity::isMemberAccess ( ) const [inline]

Definition at line 41 of file DelayedDiagnostic.h.

bool clang::sema::AccessedEntity::isQuiet ( ) const [inline]

Definition at line 64 of file DelayedDiagnostic.h.

References clang::PartialDiagnostic::getDiagID().

Referenced by setDiag().

void clang::sema::AccessedEntity::setDiag ( const PartialDiagnostic PDiag) [inline]

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 88 of file DelayedDiagnostic.h.

References isQuiet().

PartialDiagnostic& clang::sema::AccessedEntity::setDiag ( unsigned  DiagID) [inline]

Definition at line 92 of file DelayedDiagnostic.h.

References isQuiet(), and clang::PartialDiagnostic::Reset().


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