Lines Matching refs:CXXRecordDecl
68 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base) const { in isDerivedFrom()
74 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base, in isDerivedFrom()
79 Paths.setOrigin(const_cast<CXXRecordDecl*>(this)); in isDerivedFrom()
81 const CXXRecordDecl *BaseDecl = Base->getCanonicalDecl(); in isDerivedFrom()
89 bool CXXRecordDecl::isVirtuallyDerivedFrom(const CXXRecordDecl *Base) const { in isVirtuallyDerivedFrom()
99 Paths.setOrigin(const_cast<CXXRecordDecl*>(this)); in isVirtuallyDerivedFrom()
101 const CXXRecordDecl *BaseDecl = Base->getCanonicalDecl(); in isVirtuallyDerivedFrom()
109 bool CXXRecordDecl::isProvablyNotDerivedFrom(const CXXRecordDecl *Base) const { in isProvablyNotDerivedFrom()
110 const CXXRecordDecl *TargetDecl = Base->getCanonicalDecl(); in isProvablyNotDerivedFrom()
111 return forallBases([TargetDecl](const CXXRecordDecl *Base) { in isProvablyNotDerivedFrom()
117 CXXRecordDecl::isCurrentInstantiation(const DeclContext *CurContext) const { in isCurrentInstantiation()
127 bool CXXRecordDecl::forallBases(ForallBasesCallback BaseMatches) const { in forallBases()
128 SmallVector<const CXXRecordDecl*, 8> Queue; in forallBases()
130 const CXXRecordDecl *Record = this; in forallBases()
137 CXXRecordDecl *Base = in forallBases()
138 cast_or_null<CXXRecordDecl>(Ty->getDecl()->getDefinition()); in forallBases()
159 const CXXRecordDecl *Record, in lookupInBases()
160 CXXRecordDecl::BaseMatchesCallback BaseMatches, in lookupInBases()
228 ScratchPath.Access = CXXRecordDecl::MergeAccess(AccessToHere, in lookupInBases()
247 CXXRecordDecl *BaseRecord; in lookupInBases()
254 BaseRecord = cast<CXXRecordDecl>(RT->getDecl()); in lookupInBases()
270 BaseRecord = cast<CXXRecordDecl>( in lookupInBases()
307 bool CXXRecordDecl::lookupInBases(BaseMatchesCallback BaseMatches, in lookupInBases()
335 CXXRecordDecl *VBase = nullptr; in lookupInBases()
337 VBase = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases()
346 CXXRecordDecl *HidingClass = nullptr; in lookupInBases()
349 HidingClass = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases()
363 bool CXXRecordDecl::FindBaseClass(const CXXBaseSpecifier *Specifier, in FindBaseClass()
365 const CXXRecordDecl *BaseRecord) { in FindBaseClass()
372 bool CXXRecordDecl::FindVirtualBaseClass(const CXXBaseSpecifier *Specifier, in FindVirtualBaseClass()
374 const CXXRecordDecl *BaseRecord) { in FindVirtualBaseClass()
387 static bool findOrdinaryMember(const CXXRecordDecl *RD, CXXBasePath &Path, in findOrdinaryMember()
397 bool CXXRecordDecl::hasMemberName(DeclarationName Name) const { in hasMemberName()
420 return findOrdinaryMember(cast<CXXRecordDecl>(RT->getDecl()), Path, Name); in findOrdinaryMemberInDependentClasses()
426 CXXRecordDecl *RD = TD->getTemplatedDecl(); in findOrdinaryMemberInDependentClasses()
432 std::vector<const NamedDecl *> CXXRecordDecl::lookupDependentName( in lookupDependentName()
493 llvm::DenseMap<const CXXRecordDecl *, unsigned> SubobjectCount;
496 llvm::DenseMap<const CXXRecordDecl *, CXXFinalOverriderMap *> VirtualOverriders;
503 void Collect(const CXXRecordDecl *RD, bool VirtualBase,
504 const CXXRecordDecl *InVirtualSubobject,
510 void FinalOverriderCollector::Collect(const CXXRecordDecl *RD, in Collect()
512 const CXXRecordDecl *InVirtualSubobject, in Collect()
517 = ++SubobjectCount[cast<CXXRecordDecl>(RD->getCanonicalDecl())]; in Collect()
521 const CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(RT->getDecl()); in Collect()
633 for (llvm::DenseMap<const CXXRecordDecl *, CXXFinalOverriderMap *>::iterator in ~FinalOverriderCollector()
641 CXXRecordDecl::getFinalOverriders(CXXFinalOverriderMap &FinalOverriders) const { in getFinalOverriders()
681 AddIndirectPrimaryBases(const CXXRecordDecl *RD, ASTContext &Context, in AddIndirectPrimaryBases()
692 const CXXRecordDecl *BaseDecl = in AddIndirectPrimaryBases()
693 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in AddIndirectPrimaryBases()
704 CXXRecordDecl::getIndirectPrimaryBases(CXXIndirectPrimaryBaseSet& Bases) const { in getIndirectPrimaryBases()
714 const CXXRecordDecl *BaseDecl = in getIndirectPrimaryBases()
715 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in getIndirectPrimaryBases()