clang API Documentation
#include <DeclAccessPair.h>
Public Member Functions | |
NamedDecl * | getDecl () const |
AccessSpecifier | getAccess () const |
void | setDecl (NamedDecl *D) |
void | setAccess (AccessSpecifier AS) |
void | set (NamedDecl *D, AccessSpecifier AS) |
operator NamedDecl * () const | |
NamedDecl * | operator-> () const |
Static Public Member Functions | |
static DeclAccessPair | make (NamedDecl *D, AccessSpecifier AS) |
A POD class for pairing a NamedDecl* with an access specifier. Can be put into unions.
Definition at line 30 of file DeclAccessPair.h.
AccessSpecifier clang::DeclAccessPair::getAccess | ( | ) | const [inline] |
Definition at line 45 of file DeclAccessPair.h.
Referenced by clang::Sema::CheckAddressOfMemberAccess(), clang::Sema::CheckAllocationAccess(), clang::Sema::CheckMemberAccess(), clang::Sema::CheckMemberOperatorAccess(), clang::Sema::CheckUnresolvedLookupAccess(), clang::Sema::CheckUnresolvedMemberAccess(), clang::MemberExpr::Create(), clang::InitializationSequence::Perform(), PerformConstructorInitialization(), and setDecl().
NamedDecl* clang::DeclAccessPair::getDecl | ( | ) | const [inline] |
Definition at line 42 of file DeclAccessPair.h.
Referenced by clang::Sema::AddMethodCandidate(), AddOverloadedCallCandidate(), collectViableConversionCandidates(), clang::MemberExpr::Create(), clang::Sema::FixOverloadedFunctionReference(), IsUserDefinedConversion(), operator NamedDecl *(), operator->(), and setAccess().
static DeclAccessPair clang::DeclAccessPair::make | ( | NamedDecl * | D, |
AccessSpecifier | AS | ||
) | [inline, static] |
Definition at line 36 of file DeclAccessPair.h.
References set().
Referenced by clang::Sema::ActOnOpenMPCopyinClause(), clang::Sema::ActOnOpenMPCopyprivateClause(), clang::Sema::ActOnOpenMPLastprivateClause(), clang::Sema::AddArgumentDependentLookupCandidates(), clang::Sema::AddBuiltinCandidate(), clang::InitializationSequence::AddConstructorInitializationStep(), clang::ASTUnresolvedSet::addDecl(), clang::UnresolvedSetImpl::addDecl(), clang::Sema::BuildAnonymousStructUnionMemberReference(), clang::Sema::BuildCallToMemberFunction(), clang::Sema::CheckConstructorAccess(), clang::Sema::CheckDestructorAccess(), clang::Sema::CheckFriendAccess(), clang::Sema::CodeCompleteCall(), clang::Sema::DiagnoseEmptyLookup(), clang::MemberExpr::getFoundDecl(), clang::Sema::HandleDependentAccessCheck(), IsInitializerListConstructorConversion(), clang::Sema::IsSimplyAccessible(), clang::Sema::isSpecialMemberAccessibleForDeletion(), IsUserDefinedConversion(), LookupCopyAndMoveConstructors(), clang::Sema::LookupSpecialMember(), clang::Sema::PerformContextualImplicitConversion(), ResolveConstructorOverload(), TryRefInitWithConversionFunction(), TryTypoCorrectionForCall(), and TryUserDefinedConversion().
clang::DeclAccessPair::operator NamedDecl * | ( | ) | const [inline] |
Definition at line 59 of file DeclAccessPair.h.
References getDecl().
NamedDecl* clang::DeclAccessPair::operator-> | ( | ) | const [inline] |
Definition at line 60 of file DeclAccessPair.h.
References getDecl().
void clang::DeclAccessPair::set | ( | NamedDecl * | D, |
AccessSpecifier | AS | ||
) | [inline] |
Definition at line 55 of file DeclAccessPair.h.
Referenced by make().
void clang::DeclAccessPair::setAccess | ( | AccessSpecifier | AS | ) | [inline] |
Definition at line 52 of file DeclAccessPair.h.
References getDecl().
void clang::DeclAccessPair::setDecl | ( | NamedDecl * | D | ) | [inline] |
Definition at line 49 of file DeclAccessPair.h.
References getAccess().