Lines Matching refs:CXXRecordDecl
75 CXXRecordDecl::DefinitionData::DefinitionData(CXXRecordDecl *D) in DefinitionData()
115 CXXBaseSpecifier *CXXRecordDecl::DefinitionData::getBasesSlowCase() const { in getBasesSlowCase()
119 CXXBaseSpecifier *CXXRecordDecl::DefinitionData::getVBasesSlowCase() const { in getVBasesSlowCase()
123 CXXRecordDecl::CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, in CXXRecordDecl() function in CXXRecordDecl
126 CXXRecordDecl *PrevDecl) in CXXRecordDecl()
131 CXXRecordDecl *CXXRecordDecl::Create(const ASTContext &C, TagKind TK, in Create()
134 CXXRecordDecl *PrevDecl, in Create()
136 auto *R = new (C, DC) CXXRecordDecl(CXXRecord, TK, C, DC, StartLoc, IdLoc, Id, in Create()
146 CXXRecordDecl *
147 CXXRecordDecl::CreateLambda(const ASTContext &C, DeclContext *DC, in CreateLambda()
151 auto *R = new (C, DC) CXXRecordDecl(CXXRecord, TTK_Class, C, DC, Loc, Loc, in CreateLambda()
163 CXXRecordDecl *
164 CXXRecordDecl::CreateDeserialized(const ASTContext &C, unsigned ID) { in CreateDeserialized()
165 auto *R = new (C, ID) CXXRecordDecl( in CreateDeserialized()
175 static bool hasRepeatedBaseClass(const CXXRecordDecl *StartRD) { in hasRepeatedBaseClass()
176 llvm::SmallPtrSet<const CXXRecordDecl*, 8> SeenBaseTypes; in hasRepeatedBaseClass()
177 SmallVector<const CXXRecordDecl*, 8> WorkList = {StartRD}; in hasRepeatedBaseClass()
179 const CXXRecordDecl *RD = WorkList.pop_back_val(); in hasRepeatedBaseClass()
183 if (const CXXRecordDecl *B = BaseSpec.getType()->getAsCXXRecordDecl()) { in hasRepeatedBaseClass()
194 CXXRecordDecl::setBases(CXXBaseSpecifier const * const *Bases, in setBases()
230 cast<CXXRecordDecl>(BaseType->castAs<RecordType>()->getDecl()); in setBases()
307 if (CXXRecordDecl *VBaseDecl = VBase.getType()->getAsCXXRecordDecl()) in setBases()
493 unsigned CXXRecordDecl::getODRHash() const { in getODRHash()
509 void CXXRecordDecl::addedClassSubobject(CXXRecordDecl *Subobj) { in addedClassSubobject()
561 bool CXXRecordDecl::hasConstexprDestructor() const { in hasConstexprDestructor()
566 bool CXXRecordDecl::hasAnyDependentBases() const { in hasAnyDependentBases()
570 return !forallBases([](const CXXRecordDecl *) { return true; }); in hasAnyDependentBases() argument
573 bool CXXRecordDecl::isTriviallyCopyable() const { in isTriviallyCopyable()
590 void CXXRecordDecl::markedVirtualFunctionPure() { in markedVirtualFunctionPure()
596 bool CXXRecordDecl::hasSubobjectAtOffsetZeroOfEmptyBaseType( in hasSubobjectAtOffsetZeroOfEmptyBaseType()
597 ASTContext &Ctx, const CXXRecordDecl *XFirst) { in hasSubobjectAtOffsetZeroOfEmptyBaseType()
601 llvm::SmallPtrSet<const CXXRecordDecl*, 8> Bases; in hasSubobjectAtOffsetZeroOfEmptyBaseType()
602 llvm::SmallPtrSet<const CXXRecordDecl*, 8> M; in hasSubobjectAtOffsetZeroOfEmptyBaseType()
603 SmallVector<const CXXRecordDecl*, 8> WorkList; in hasSubobjectAtOffsetZeroOfEmptyBaseType()
606 auto Visit = [&](const CXXRecordDecl *RD) -> bool { in hasSubobjectAtOffsetZeroOfEmptyBaseType()
619 bool RDIsBase = !forallBases([&](const CXXRecordDecl *Base) -> bool { in hasSubobjectAtOffsetZeroOfEmptyBaseType()
643 const CXXRecordDecl *X = WorkList.pop_back_val(); in hasSubobjectAtOffsetZeroOfEmptyBaseType()
676 bool CXXRecordDecl::lambdaIsDefaultConstructibleAndAssignable() const { in lambdaIsDefaultConstructibleAndAssignable()
694 void CXXRecordDecl::addedMember(Decl *D) { in addedMember()
1063 if (CXXRecordDecl *FieldType = T->getAsCXXRecordDecl()) { in addedMember()
1112 auto *FieldRec = cast<CXXRecordDecl>(RecordTy->getDecl()); in addedMember()
1362 void CXXRecordDecl::addedSelectedDestructor(CXXDestructorDecl *DD) { in addedSelectedDestructor()
1367 void CXXRecordDecl::addedEligibleSpecialMemberFunction(const CXXMethodDecl *MD, in addedEligibleSpecialMemberFunction()
1410 void CXXRecordDecl::finishedDefaultedOrDeletedMember(CXXMethodDecl *D) { in finishedDefaultedOrDeletedMember()
1446 void CXXRecordDecl::setCaptures(ASTContext &Context, in setCaptures()
1448 CXXRecordDecl::LambdaDefinitionData &Data = getLambdaData(); in setCaptures()
1467 void CXXRecordDecl::setTrivialForCallFlags(CXXMethodDecl *D) { in setTrivialForCallFlags()
1484 bool CXXRecordDecl::isCLike() const { in isCLike()
1494 bool CXXRecordDecl::isGenericLambda() const { in isGenericLambda()
1508 static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { in getLambdaCallOperatorHelper()
1520 FunctionTemplateDecl* CXXRecordDecl::getDependentLambdaCallOperator() const { in getDependentLambdaCallOperator()
1525 CXXMethodDecl *CXXRecordDecl::getLambdaCallOperator() const { in getLambdaCallOperator()
1537 CXXMethodDecl* CXXRecordDecl::getLambdaStaticInvoker() const { in getLambdaStaticInvoker()
1544 getLambdaStaticInvokers(const CXXRecordDecl &RD) { in getLambdaStaticInvokers()
1557 CXXMethodDecl *CXXRecordDecl::getLambdaStaticInvoker(CallingConv CC) const { in getLambdaStaticInvoker()
1572 void CXXRecordDecl::getCaptureFields( in getCaptureFields()
1591 CXXRecordDecl::getGenericLambdaTemplateParameterList() const { in getGenericLambdaTemplateParameterList()
1600 CXXRecordDecl::getLambdaExplicitTemplateParameters() const { in getLambdaExplicitTemplateParameters()
1614 Decl *CXXRecordDecl::getLambdaContextDecl() const { in getLambdaContextDecl()
1620 void CXXRecordDecl::setDeviceLambdaManglingNumber(unsigned Num) const { in setDeviceLambdaManglingNumber()
1626 unsigned CXXRecordDecl::getDeviceLambdaManglingNumber() const { in getDeviceLambdaManglingNumber()
1654 ASTContext &Context, const CXXRecordDecl *Record, bool InVirtual, in CollectVisibleConversions()
1667 CXXRecordDecl::conversion_iterator ConvI = Record->conversion_begin(); in CollectVisibleConversions()
1668 CXXRecordDecl::conversion_iterator ConvE = Record->conversion_end(); in CollectVisibleConversions()
1673 for (CXXRecordDecl::conversion_iterator I = ConvI; I != ConvE; ++I) { in CollectVisibleConversions()
1687 = CXXRecordDecl::MergeAccess(Access, I.getAccess()); in CollectVisibleConversions()
1703 = CXXRecordDecl::MergeAccess(Access, I.getAccessSpecifier()); in CollectVisibleConversions()
1706 auto *Base = cast<CXXRecordDecl>(RT->getDecl()); in CollectVisibleConversions()
1717 const CXXRecordDecl *Record, in CollectVisibleConversions()
1733 CXXRecordDecl::conversion_iterator ConvI = Record->conversion_begin(); in CollectVisibleConversions()
1734 CXXRecordDecl::conversion_iterator ConvE = Record->conversion_end(); in CollectVisibleConversions()
1744 CollectVisibleConversions(Context, cast<CXXRecordDecl>(RT->getDecl()), in CollectVisibleConversions()
1759 llvm::iterator_range<CXXRecordDecl::conversion_iterator>
1760 CXXRecordDecl::getVisibleConversionFunctions() const { in getVisibleConversionFunctions()
1778 void CXXRecordDecl::removeConversion(const NamedDecl *ConvDecl) { in removeConversion()
1803 CXXRecordDecl *CXXRecordDecl::getInstantiatedFromMemberClass() const { in getInstantiatedFromMemberClass()
1805 return cast<CXXRecordDecl>(MSInfo->getInstantiatedFrom()); in getInstantiatedFromMemberClass()
1810 MemberSpecializationInfo *CXXRecordDecl::getMemberSpecializationInfo() const { in getMemberSpecializationInfo()
1815 CXXRecordDecl::setInstantiationOfMemberClass(CXXRecordDecl *RD, in setInstantiationOfMemberClass()
1824 ClassTemplateDecl *CXXRecordDecl::getDescribedClassTemplate() const { in getDescribedClassTemplate()
1828 void CXXRecordDecl::setDescribedClassTemplate(ClassTemplateDecl *Template) { in setDescribedClassTemplate()
1832 TemplateSpecializationKind CXXRecordDecl::getTemplateSpecializationKind() const{ in getTemplateSpecializationKind()
1843 CXXRecordDecl::setTemplateSpecializationKind(TemplateSpecializationKind TSK) { in setTemplateSpecializationKind()
1857 const CXXRecordDecl *CXXRecordDecl::getTemplateInstantiationPattern() const { in getTemplateInstantiationPattern()
1859 [](const CXXRecordDecl *D) -> const CXXRecordDecl * { in getTemplateInstantiationPattern()
1890 const CXXRecordDecl *RD = this; in getTemplateInstantiationPattern()
1902 CXXDestructorDecl *CXXRecordDecl::getDestructor() const { in getDestructor()
1931 bool CXXRecordDecl::isInterfaceLike() const { in isInterfaceLike()
1982 void CXXRecordDecl::completeDefinition() { in completeDefinition()
1986 void CXXRecordDecl::completeDefinition(CXXFinalOverriderMap *FinalOverriders) { in completeDefinition()
2027 bool CXXRecordDecl::mayBeAbstract() const { in mayBeAbstract()
2034 cast<CXXRecordDecl>(B.getType()->castAs<RecordType>()->getDecl()); in mayBeAbstract()
2042 bool CXXRecordDecl::isEffectivelyFinal() const { in isEffectivelyFinal()
2135 CXXMethodDecl::getCorrespondingMethodDeclaredInClass(const CXXRecordDecl *RD, in getCorrespondingMethodDeclaredInClass()
2166 CXXMethodDecl::getCorrespondingMethodInClass(const CXXRecordDecl *RD, in getCorrespondingMethodInClass()
2192 const auto *Base = cast<CXXRecordDecl>(RT->getDecl()); in getCorrespondingMethodInClass()
2201 CXXMethodDecl::Create(ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc, in Create()
2244 const CXXRecordDecl *BestDynamicDecl = Base->getBestDynamicClassType(); in getDevirtualizedMethod()
2455 const CXXRecordDecl *Decl) { in getThisObjectType()
2461 const CXXRecordDecl *Decl) { in getThisType()
2468 const CXXRecordDecl *Decl) { in getThisObjectType()
2504 const CXXRecordDecl *P = getParent(); in isLambdaStaticInvoker()
2586 ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc, in CXXConstructorDecl()
2626 ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc, in Create()
2760 ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc, in Create()
2793 ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc, in Create()
3031 CXXRecordDecl *ConstructorUsingShadowDecl::getNominatedBaseClass() const { in getNominatedBaseClass()
3348 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in isValidStructGUID()