Lines Matching refs:DeclaringClass
73 CXXRecordDecl *DeclaringClass = cast<CXXRecordDecl>(DC); in FindDeclaringClass() local
74 while (DeclaringClass->isAnonymousStructOrUnion()) in FindDeclaringClass()
75 DeclaringClass = cast<CXXRecordDecl>(DeclaringClass->getDeclContext()); in FindDeclaringClass()
76 return DeclaringClass; in FindDeclaringClass()
223 return DeclaringClass; in getDeclaringClass()
244 DeclaringClass = FindDeclaringClass(getTargetDecl()); in initialize()
246 DeclaringClass = getBaseClass(); in initialize()
247 DeclaringClass = DeclaringClass->getCanonicalDecl(); in initialize()
253 const CXXRecordDecl *DeclaringClass; member
1121 CXXRecordDecl *DeclaringClass = FindDeclaringClass(D); in diagnoseBadDirectAccess() local
1123 if (D->getDeclContext() == DeclaringClass) in diagnoseBadDirectAccess()
1127 while (DC->getParent() != DeclaringClass) in diagnoseBadDirectAccess()
1135 for (const auto *I : DeclaringClass->decls()) { in diagnoseBadDirectAccess()
1263 const CXXRecordDecl *DeclaringClass = Entity.getDeclaringClass(); in DiagnoseBadAccess() local
1270 << S.Context.getTypeDeclType(DeclaringClass); in DiagnoseBadAccess()
1354 const CXXRecordDecl *DeclaringClass = Entity.getDeclaringClass(); in IsAccessible() local
1357 switch (HasAccess(S, EC, DeclaringClass, FinalAccess, Entity)) { in IsAccessible()
1371 if (DeclaringClass == NamingClass) in IsAccessible()