Lines Matching refs:Bases
2831 MutableArrayRef<CXXBaseSpecifier *> Bases) { in AttachBaseSpecifiers() argument
2832 if (Bases.empty()) in AttachBaseSpecifiers()
2848 for (unsigned idx = 0; idx < Bases.size(); ++idx) { in AttachBaseSpecifiers()
2850 = Context.getCanonicalType(Bases[idx]->getType()); in AttachBaseSpecifiers()
2858 Diag(Bases[idx]->getBeginLoc(), diag::err_duplicate_base_class) in AttachBaseSpecifiers()
2859 << KnownBase->getType() << Bases[idx]->getSourceRange(); in AttachBaseSpecifiers()
2863 Context.Deallocate(Bases[idx]); in AttachBaseSpecifiers()
2868 KnownBase = Bases[idx]; in AttachBaseSpecifiers()
2869 Bases[NumGoodBases++] = Bases[idx]; in AttachBaseSpecifiers()
2874 if (Bases.size() > 1) in AttachBaseSpecifiers()
2896 Class->setBases(Bases.data(), NumGoodBases); in AttachBaseSpecifiers()
2901 QualType BaseType = Bases[idx]->getType(); in AttachBaseSpecifiers()
2920 Diag(Bases[idx]->getBeginLoc(), diag::warn_inaccessible_base_class) in AttachBaseSpecifiers()
2922 << Bases[idx]->getSourceRange(); in AttachBaseSpecifiers()
2924 assert(Bases[idx]->isVirtual()); in AttachBaseSpecifiers()
2929 Context.Deallocate(Bases[idx]); in AttachBaseSpecifiers()
2936 MutableArrayRef<CXXBaseSpecifier *> Bases) { in ActOnBaseSpecifiers() argument
2937 if (!ClassDecl || Bases.empty()) in ActOnBaseSpecifiers()
2941 AttachBaseSpecifiers(cast<CXXRecordDecl>(ClassDecl), Bases); in ActOnBaseSpecifiers()
3274 std::map<CXXRecordDecl*, NamedDecl*> Bases; in CheckShadowInheritedFields() local
3279 if (Bases.find(Base) != Bases.end()) in CheckShadowInheritedFields()
3285 assert(Bases.find(Base) == Bases.end()); in CheckShadowInheritedFields()
3286 Bases[Base] = Field; in CheckShadowInheritedFields()
3300 auto It = Bases.find(Base); in CheckShadowInheritedFields()
3302 if (It == Bases.end()) in CheckShadowInheritedFields()
3311 Bases.erase(It); in CheckShadowInheritedFields()
9236 bool visit(BasesToVisit Bases) { in visit()
9239 if (Bases == VisitPotentiallyConstructedBases) in visit()
9240 Bases = RD->isAbstract() ? VisitNonVirtualBases : VisitAllBases; in visit()
9243 if ((Bases == VisitDirectBases || !B.isVirtual()) && in visit()
9247 if (Bases == VisitAllBases) in visit()
13334 llvm::SmallPtrSet<const CXXRecordDecl *, 4> Bases; in CheckUsingDeclQualifier() local
13335 auto Collect = [&Bases](const CXXRecordDecl *Base) { in CheckUsingDeclQualifier()
13336 Bases.insert(Base); in CheckUsingDeclQualifier()
13346 auto IsNotBase = [&Bases](const CXXRecordDecl *Base) { in CheckUsingDeclQualifier()
13347 return !Bases.count(Base); in CheckUsingDeclQualifier()
13352 if (Bases.count(cast<CXXRecordDecl>(NamedContext)) || in CheckUsingDeclQualifier()