clang 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::DeclAccessPair Class Reference

A POD class for pairing a NamedDecl* with an access specifier. More...

#include "clang/AST/DeclAccessPair.h"

Public Member Functions

uint64_t getDeclID () const
 
NamedDeclgetDecl () const
 
AccessSpecifier getAccess () const
 
void setDecl (NamedDecl *D)
 
void setAccess (AccessSpecifier AS)
 
void set (NamedDecl *D, AccessSpecifier AS)
 
 operator NamedDecl * () const
 
NamedDecloperator-> () const
 

Static Public Member Functions

static DeclAccessPair make (NamedDecl *D, AccessSpecifier AS)
 
static DeclAccessPair makeLazy (uint64_t ID, AccessSpecifier AS)
 

Detailed Description

A POD class for pairing a NamedDecl* with an access specifier.

Can be put into unions.

Definition at line 30 of file DeclAccessPair.h.

Member Function Documentation

◆ getAccess()

AccessSpecifier clang::DeclAccessPair::getAccess ( ) const
inline

◆ getDecl()

NamedDecl * clang::DeclAccessPair::getDecl ( ) const
inline

◆ getDeclID()

uint64_t clang::DeclAccessPair::getDeclID ( ) const
inline

Definition at line 56 of file DeclAccessPair.h.

◆ make()

static DeclAccessPair clang::DeclAccessPair::make ( NamedDecl D,
AccessSpecifier  AS 
)
inlinestatic

Definition at line 44 of file DeclAccessPair.h.

References set().

Referenced by clang::Sema::ActOnCXXDelete(), clang::Sema::AddArgumentDependentLookupCandidates(), clang::Sema::AddBuiltinCandidate(), clang::ASTUnresolvedSet::addDecl(), clang::UnresolvedSetImpl::addDecl(), clang::Sema::BuildAnonymousStructUnionMemberReference(), clang::Sema::BuildCallToMemberFunction(), clang::Sema::BuildCXXMemberCallExpr(), clang::Sema::CheckConstructorAccess(), clang::Sema::CheckDestructorAccess(), clang::Sema::CheckFriendAccess(), checkMemberDecomposition(), clang::Sema::CheckVarTemplateId(), ComputeSelectedDestructor(), clang::MemberExpr::CreateImplicit(), clang::Sema::DeduceTemplateSpecializationFromInitializer(), clang::Sema::DiagnoseEmptyLookup(), clang::Sema::FindAllocationFunctions(), findDecomposableBaseClass(), clang::getConstructorInfo(), clang::MemberExpr::getFoundDecl(), getPatternForClassTemplateSpecialization(), clang::Sema::HandleDependentAccessCheck(), clang::SemaOpenMP::isOpenMPCapturedDecl(), clang::Sema::IsSimplyAccessible(), clang::Sema::LookupSpecialMember(), clang::Sema::PerformContextualImplicitConversion(), processImplicitMapsWithDefaultMappers(), clang::SemaCodeCompletion::ProduceCallSignatureHelp(), clang::SemaCodeCompletion::ProduceConstructorSignatureHelp(), clang::TreeTransform< Derived >::RebuildMemberExpr(), clang::TemplateDeclInstantiator::SubstDefaultedFunction(), TryTypoCorrectionForCall(), clang::ASTDeclReader::VisitFunctionDecl(), and clang::ASTNodeImporter::VisitMemberExpr().

◆ makeLazy()

static DeclAccessPair clang::DeclAccessPair::makeLazy ( uint64_t  ID,
AccessSpecifier  AS 
)
inlinestatic

Definition at line 50 of file DeclAccessPair.h.

References ID.

Referenced by clang::ASTUnresolvedSet::addLazyDecl().

◆ operator NamedDecl *()

clang::DeclAccessPair::operator NamedDecl * ( ) const
inline

Definition at line 77 of file DeclAccessPair.h.

References getDecl().

◆ operator->()

NamedDecl * clang::DeclAccessPair::operator-> ( ) const
inline

Definition at line 78 of file DeclAccessPair.h.

References getDecl().

◆ set()

void clang::DeclAccessPair::set ( NamedDecl D,
AccessSpecifier  AS 
)
inline

Definition at line 73 of file DeclAccessPair.h.

Referenced by make(), setAccess(), and setDecl().

◆ setAccess()

void clang::DeclAccessPair::setAccess ( AccessSpecifier  AS)
inline

Definition at line 70 of file DeclAccessPair.h.

References getDecl(), and set().

◆ setDecl()

void clang::DeclAccessPair::setDecl ( NamedDecl D)
inline

Definition at line 67 of file DeclAccessPair.h.

References getAccess(), and set().


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