Home
last modified time | relevance | path

Searched refs:getAsCXXRecordDecl (Results 1 – 25 of 193) sorted by relevance

12345678

/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DTypeTraits.cpp22 auto *Record = Type->getAsCXXRecordDecl(); in classHasTrivialCopyAndDestroy()
29 auto *Record = Type->getAsCXXRecordDecl(); in hasDeletedCopyConstructor()
153 auto *Record = Type->getAsCXXRecordDecl(); in hasNonTrivialMoveConstructor()
159 auto *Record = Type->getAsCXXRecordDecl(); in hasNonTrivialMoveAssignment()
DExceptionAnalyzer.cpp50 const auto *DerivedClass = DerivedType->getAsCXXRecordDecl(); in isBaseOf()
51 const auto *BaseClass = BaseType->getAsCXXRecordDecl(); in isBaseOf()
/external/llvm-project/clang/lib/Analysis/
DConstructionContext.cpp54 if (!BTE && !(MTE->getType().getCanonicalType()->getAsCXXRecordDecl() in createMaterializedTemporaryFromLayers()
112 ->getAsCXXRecordDecl()->hasTrivialDestructor()); in createBoundTemporaryFromLayers()
122 ->getAsCXXRecordDecl()->hasTrivialDestructor()); in createBoundTemporaryFromLayers()
155 ->getAsCXXRecordDecl()->hasTrivialDestructor()); in createBoundTemporaryFromLayers()
193 assert(BTE->getType().getCanonicalType()->getAsCXXRecordDecl() in createFromLayers()
/external/llvm-project/clang/lib/AST/
DASTImporterLookupTable.cpp59 LT.add(RTy->getAsCXXRecordDecl()); in VisitFriendDecl()
61 LT.add(SpecTy->getAsCXXRecordDecl()); in VisitFriendDecl()
64 if (SubstTy->getAsCXXRecordDecl()) in VisitFriendDecl()
65 LT.add(SubstTy->getAsCXXRecordDecl()); in VisitFriendDecl()
DRecordLayoutBuilder.cpp190 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in ComputeEmptySubobjectSizes()
216 const CXXRecordDecl *MemberDecl = RT->getAsCXXRecordDecl(); in ComputeEmptySubobjectSizes()
395 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
405 const CXXRecordDecl *VBaseDecl = Base.getType()->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
438 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in CanPlaceFieldSubobjectAtOffset()
448 const CXXRecordDecl *RD = RT->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
506 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
516 const CXXRecordDecl *VBaseDecl = Base.getType()->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
540 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) { in UpdateEmptyFieldSubobjects()
552 const CXXRecordDecl *RD = RT->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
[all …]
DComparisonCategories.cpp50 auto *Record = VD->getType()->getAsCXXRecordDecl(); in hasValidIntValue()
128 auto *RD = Ty->getAsCXXRecordDecl(); in lookupInfoForType()
DVTableBuilder.cpp233 VirtualBase = VBaseType->getAsCXXRecordDecl(); in ComputeBaseOffset()
245 const CXXRecordDecl *Base = Element.Base->getType()->getAsCXXRecordDecl(); in ComputeBaseOffset()
347 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in ComputeBaseOffsets()
383 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in dump()
732 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in AddVCallOffsets()
753 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in AddVBaseOffsets()
1751 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in LayoutSecondaryVTables()
1825 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in DeterminePrimaryVirtualBases()
1854 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in LayoutVTablesForVirtualBases()
2348 RD->vbases_begin()->getType()->getAsCXXRecordDecl(); in computeVTableRelatedInformation()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DParentVirtualCallCheck.cpp33 auto *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in isParentOf()
44 const auto *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in getParentsByGrandParent()
117 const auto *CastToType = CastToTypePtr->getAsCXXRecordDecl(); in check()
DVirtualNearMissCheck.cpp71 const CXXRecordDecl *DRD = DTy->getAsCXXRecordDecl(); in checkOverridingFunctionReturnType()
72 const CXXRecordDecl *BRD = BTy->getAsCXXRecordDecl(); in checkOverridingFunctionReturnType()
237 if (const auto *BaseRD = BaseSpec.getType()->getAsCXXRecordDecl()) { in check()
DCopyConstructorInitCheck.cpp58 BaseType->getAsCXXRecordDecl()->getDefinition(); in check()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp189 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in ComputeEmptySubobjectSizes()
215 const CXXRecordDecl *MemberDecl = RT->getAsCXXRecordDecl(); in ComputeEmptySubobjectSizes()
394 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
404 const CXXRecordDecl *VBaseDecl = Base.getType()->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
437 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) in CanPlaceFieldSubobjectAtOffset()
447 const CXXRecordDecl *RD = RT->getAsCXXRecordDecl(); in CanPlaceFieldSubobjectAtOffset()
500 const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
509 const CXXRecordDecl *VBaseDecl = Base.getType()->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
532 if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) { in UpdateEmptyFieldSubobjects()
544 const CXXRecordDecl *RD = RT->getAsCXXRecordDecl(); in UpdateEmptyFieldSubobjects()
[all …]
DVTableBuilder.cpp234 VirtualBase = VBaseType->getAsCXXRecordDecl(); in ComputeBaseOffset()
246 const CXXRecordDecl *Base = Element.Base->getType()->getAsCXXRecordDecl(); in ComputeBaseOffset()
348 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in ComputeBaseOffsets()
384 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in dump()
725 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in AddVCallOffsets()
746 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in AddVBaseOffsets()
1746 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in LayoutSecondaryVTables()
1820 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in DeterminePrimaryVirtualBases()
1849 const CXXRecordDecl *BaseDecl = B.getType()->getAsCXXRecordDecl(); in LayoutVTablesForVirtualBases()
2320 RD->vbases_begin()->getType()->getAsCXXRecordDecl(); in computeVTableRelatedInformation()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DStore.cpp224 const CXXRecordDecl *RD = TVR->getValueType()->getAsCXXRecordDecl(); in regionMatchesCXXRecordType()
230 Expected = Ty->getAsCXXRecordDecl(); in regionMatchesCXXRecordType()
271 BaseDecl = BaseType->getAsCXXRecordDecl(); in evalDerivedToBase()
289 return TVR->getValueType()->getAsCXXRecordDecl(); in getCXXRecordType()
306 const CXXRecordDecl *TargetClass = TargetType->getAsCXXRecordDecl(); in evalDynamicCast()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DStore.cpp238 const CXXRecordDecl *RD = TVR->getValueType()->getAsCXXRecordDecl(); in regionMatchesCXXRecordType()
244 Expected = Ty->getAsCXXRecordDecl(); in regionMatchesCXXRecordType()
282 BaseDecl = BaseType->getAsCXXRecordDecl(); in evalDerivedToBase()
309 return TVR->getValueType()->getAsCXXRecordDecl(); in getCXXRecordType()
326 const CXXRecordDecl *TargetClass = TargetType->getAsCXXRecordDecl(); in attemptDownCast()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseTransparentFunctorsCheck.cpp106 ParentArgType->getAsCXXRecordDecl() == in check()
107 Functor->getAsType()->getAsCXXRecordDecl()) in check()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUniqueptrResetReleaseCheck.cpp62 const CXXRecordDecl *LeftDeleter = LeftDeleterType->getAsCXXRecordDecl(); in areDeletersCompatible()
63 const CXXRecordDecl *RightDeleter = RightDeleterType->getAsCXXRecordDecl(); in areDeletersCompatible()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
DUncountedLocalVarsChecker.cpp60 if (auto *CXXRD = T->getAsCXXRecordDecl()) { in isRefcountedStringsHack()
195 MaybeGuardianArgType->getAsCXXRecordDecl(); in visitVarDecl()
/external/llvm-project/clang/lib/Index/
DIndexTypeSourceInfo.cpp67 if (auto *CD = TL.getType()->getAsCXXRecordDecl()) { in VisitTypedefTypeLoc()
159 T->getTemplateName(), TL.getTemplateNameLoc(), T->getAsCXXRecordDecl(), in VisitTemplateSpecializationTypeLoc()
189 T->getTemplateName(), TL.getTemplateNameLoc(), T->getAsCXXRecordDecl(), in VisitDeducedTemplateSpecializationTypeLoc()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProTypeMemberInitCheck.cpp39 if (const CXXRecordDecl *R = F->getType()->getAsCXXRecordDecl()) in forEachField()
190 : Init->getBaseClass()->getAsCXXRecordDecl(); in computeInsertions()
334 if (const CXXRecordDecl *ClassDecl = Type->getAsCXXRecordDecl()) { in isEmpty()
507 BasesToInit.erase(Init->getBaseClass()->getAsCXXRecordDecl()); in checkMissingBaseClassInitializer()
DProTypeStaticCastDowncastCheck.cpp34 SourceDecl = SourceType->getAsCXXRecordDecl(); in check()
DProTypeCstyleCastCheck.cpp55 SourceDecl = SourceType->getAsCXXRecordDecl(); in check()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DMoveConstructorInitCheck.cpp57 const auto *RD = QT->getAsCXXRecordDecl(); in check()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
DUninitializedObjectChecker.cpp85 assert(T->getAsCXXRecordDecl()); in BaseClass()
96 Out << BaseClassT->getAsCXXRecordDecl()->getName() << "::"; in printNode()
467 if (R && !R->getValueType()->getAsCXXRecordDecl()) in getConstructedRegion()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DCastValueChecker.cpp109 CastInfo ? CastInfo->to()->getAsCXXRecordDecl()->getNameAsString() in getNoteTag()
165 CastToTy->getAsCXXRecordDecl() ? in getNoteTag()
166 CastToTy->getAsCXXRecordDecl()->getNameAsString() : in getNoteTag()
DDeleteWithNonVirtualDtorChecker.cpp73 const auto *BaseClass = BaseClassRegion->getValueType()->getAsCXXRecordDecl(); in checkPreStmt()

12345678