Home | History | Annotate | Download | only in Sema

Lines Matching refs:decl

37 /// Returns true on error (when the previous member decl access specifier
38 /// is different from the new member decl access specifier).
553 assert(isa<FunctionDecl>(Friend) && "unknown friend decl kind");
1095 // Easy case: the decl's natural access determined its path access.
1124 Decl *ImmediateChild;
1131 ImmediateChild = cast<Decl>(DC);
1422 void Sema::HandleDelayedAccessCheck(DelayedDiagnostic &DD, Decl *decl) {
1428 DeclContext *DC = decl->getDeclContext();
1429 if (FunctionDecl *fn = dyn_cast<FunctionDecl>(decl)) {
1431 } else if (FunctionTemplateDecl *fnt = dyn_cast<FunctionTemplateDecl>(decl)) {
1449 Decl *NamingD = FindInstantiatedDecl(Loc, DD.getAccessNamingClass(),
1452 Decl *TargetD = FindInstantiatedDecl(Loc, DD.getAccessTarget(),
1519 bool Sema::isSpecialMemberAccessibleForDeletion(CXXMethodDecl *decl,
1525 AccessTarget entity(Context, AccessTarget::Member, decl->getParent(),
1526 DeclAccessPair::make(decl, access), objectType);
1775 /// Checks access to Decl from the given class. The check will take access
1778 /// \param Decl the declaration to check if it can be accessed
1780 /// \return true if the Decl is accessible from the Class, false otherwise.
1781 bool Sema::IsSimplyAccessible(NamedDecl *Decl, DeclContext *Ctx) {
1783 if (!Decl->isCXXClassMember())
1788 DeclAccessPair::make(Decl, Decl->getAccess()),
1797 if (ObjCIvarDecl *Ivar = dyn_cast<ObjCIvarDecl>(Decl)) {