Home
last modified time | relevance | path

Searched refs:CXXRD (Results 1 – 25 of 40) sorted by relevance

12

/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DPaddingChecker.cpp85 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in visitRecord() local
86 if (CXXRD->field_empty() && CXXRD->getNumBases() == 1) in visitRecord()
87 return visitRecord(CXXRD->bases().begin()->getType()->getAsRecordDecl(), in visitRecord()
150 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RD)) { in shouldSkipDecl() local
155 if (!CXXRD->field_empty() && CXXRD->getNumBases() != 0) in shouldSkipDecl()
157 if (CXXRD->field_empty() && CXXRD->getNumBases() != 1) in shouldSkipDecl()
160 if (CXXRD->getNumVBases() != 0) in shouldSkipDecl()
164 if (CXXRD->getTypeForDecl()->isDependentType()) in shouldSkipDecl()
166 if (CXXRD->getTypeForDecl()->isInstantiationDependentType()) in shouldSkipDecl()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
DUncountedLocalVarsChecker.cpp60 if (auto *CXXRD = T->getAsCXXRecordDecl()) { in isRefcountedStringsHack() local
61 if (safeClass(safeGetName(CXXRD))) in isRefcountedStringsHack()
65 if (auto *CXXRD = T->getPointeeCXXRecordDecl()) { in isRefcountedStringsHack() local
66 if (safeClass(safeGetName(CXXRD))) in isRefcountedStringsHack()
DNoUncountedMembersChecker.cpp115 auto CXXRD = llvm::dyn_cast_or_null<CXXRecordDecl>(RD); in shouldSkipDecl() local
116 if (CXXRD) in shouldSkipDecl()
117 return isRefCounted(CXXRD); in shouldSkipDecl()
DPtrTypesSemantics.cpp131 if (auto *CXXRD = T->getPointeeCXXRecordDecl()) { in isUncountedPtr() local
132 return isUncounted(CXXRD); in isUncountedPtr()
/external/clang/lib/Index/
DIndexTypeSourceInfo.cpp194 if (auto CXXRD = dyn_cast<CXXRecordDecl>(D)) { in indexTagDecl() local
195 for (const auto &I : CXXRD->bases()) { in indexTagDecl()
196 indexTypeSourceInfo(I.getTypeSourceInfo(), CXXRD, CXXRD, /*isBase=*/true); in indexTagDecl()
DIndexBody.cpp98 if (auto *CXXRD = BaseTy->getPointeeCXXRecordDecl()) in getRolesForRef() local
100 CXXRD); in getRolesForRef()
/external/clang/lib/StaticAnalyzer/Checkers/
DPaddingChecker.cpp134 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RD)) { in shouldSkipDecl() local
137 if (CXXRD->getNumBases() != 0) in shouldSkipDecl()
140 if (CXXRD->getNumVBases() != 0) in shouldSkipDecl()
144 if (CXXRD->getTypeForDecl()->isDependentType()) in shouldSkipDecl()
146 if (CXXRD->getTypeForDecl()->isInstantiationDependentType()) in shouldSkipDecl()
/external/llvm-project/clang-tools-extra/clang-reorder-fields/
DReorderFieldsAction.cpp280 const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD); in HandleTranslationUnit() local
281 if (CXXRD) in HandleTranslationUnit()
282 for (const auto *C : CXXRD->ctors()) in HandleTranslationUnit()
292 if (!CXXRD || CXXRD->isAggregate()) in HandleTranslationUnit()
/external/llvm-project/clang/lib/Index/
DIndexTypeSourceInfo.cpp304 if (auto CXXRD = dyn_cast<CXXRecordDecl>(D)) { in indexTagDecl() local
305 for (const auto &I : CXXRD->bases()) { in indexTagDecl()
306 indexTypeSourceInfo(I.getTypeSourceInfo(), CXXRD, CXXRD, /*isBase=*/true); in indexTagDecl()
DIndexBody.cpp102 if (auto *CXXRD = BaseTy->getPointeeCXXRecordDecl()) in getRolesForRef() local
104 CXXRD); in getRolesForRef()
/external/llvm-project/clang-tools-extra/clangd/
DXRefs.cpp1469 static void fillSuperTypes(const CXXRecordDecl &CXXRD, ASTContext &ASTCtx, in fillSuperTypes() argument
1477 auto *Pattern = CXXRD.getDescribedTemplate() ? &CXXRD : nullptr; in fillSuperTypes()
1484 for (const CXXRecordDecl *ParentDecl : typeParents(&CXXRD)) { in fillSuperTypes()
1546 std::vector<const CXXRecordDecl *> typeParents(const CXXRecordDecl *CXXRD) { in typeParents() argument
1551 if (auto *CTSD = dyn_cast<ClassTemplateSpecializationDecl>(CXXRD)) { in typeParents()
1553 CXXRD = CTSD->getSpecializedTemplate()->getTemplatedDecl(); in typeParents()
1557 if (!CXXRD->hasDefinition()) in typeParents()
1560 for (auto Base : CXXRD->bases()) { in typeParents()
1591 const CXXRecordDecl *CXXRD = findRecordTypeAt(AST, Pos); in getTypeHierarchy() local
1592 if (!CXXRD) in getTypeHierarchy()
[all …]
DXRefs.h102 std::vector<const CXXRecordDecl *> typeParents(const CXXRecordDecl *CXXRD);
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
DUninitializedObjectChecker.cpp352 const auto *CXXRD = dyn_cast<CXXRecordDecl>(RD); in isNonUnionUninit() local
353 if (!CXXRD) in isNonUnionUninit()
356 for (const CXXBaseSpecifier &BaseSpec : CXXRD->bases()) { in isNonUnionUninit()
/external/clang/lib/CodeGen/
DCGExprAgg.cpp1191 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(record)) { in VisitInitListExpr() local
1192 assert(E->getNumInits() >= CXXRD->getNumBases() && in VisitInitListExpr()
1194 for (auto &Base : CXXRD->bases()) { in VisitInitListExpr()
1198 Dest.getAddress(), CXXRD, BaseRD, in VisitInitListExpr()
1355 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(SD)) in GetNumNonZeroBytesInInit() local
1356 while (ILEElement != CXXRD->getNumBases()) in GetNumNonZeroBytesInInit()
DTargetInfo.cpp452 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in isEmptyRecord() local
453 for (const auto &I : CXXRD->bases()) in isEmptyRecord()
483 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) { in isSingleElementStruct() local
484 for (const auto &I : CXXRD->bases()) { in isSingleElementStruct()
1176 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) { in canExpandIndirectArgument() local
1180 if (!CXXRD->isCLike()) in canExpandIndirectArgument()
1184 if (CXXRD->isDynamicClass()) in canExpandIndirectArgument()
1187 for (const CXXBaseSpecifier &Base : CXXRD->bases()) { in canExpandIndirectArgument()
1322 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in isRecordWithSSEVectorType() local
1323 for (const auto &I : CXXRD->bases()) in isRecordWithSSEVectorType()
[all …]
DCGExprConstant.cpp375 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in Build() local
376 if (CXXRD->getNumBases()) in Build()
1143 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in Build() local
1144 if (CXXRD->getNumBases()) in Build()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp3160 auto CXXRD = dyn_cast<CXXRecordDecl>(RD); in DumpRecordLayout() local
3166 if (CXXRD && CXXRD->isEmpty()) in DumpRecordLayout()
3173 if (CXXRD) { in DumpRecordLayout()
3179 if (CXXRD->isDynamicClass() && !PrimaryBase && !isMsLayout(C)) { in DumpRecordLayout()
3190 for (const CXXBaseSpecifier &Base : CXXRD->bases()) { in DumpRecordLayout()
3249 if (CXXRD && IncludeVirtualBases) { in DumpRecordLayout()
3253 for (const CXXBaseSpecifier &Base : CXXRD->vbases()) { in DumpRecordLayout()
3276 if (CXXRD && !isMsLayout(C)) in DumpRecordLayout()
3280 if (CXXRD) { in DumpRecordLayout()
DDecl.cpp3579 if (const auto *CXXRD = dyn_cast<CXXRecordDecl>(this)) in getDefinition() local
3580 return CXXRD->getDefinition(); in getDefinition()
3820 const auto *CXXRD = dyn_cast<CXXRecordDecl>(this); in mayInsertExtraPadding() local
3823 if (!CXXRD || CXXRD->isExternCContext()) in mayInsertExtraPadding()
3825 else if (CXXRD->hasAttr<PackedAttr>()) in mayInsertExtraPadding()
3827 else if (CXXRD->isUnion()) in mayInsertExtraPadding()
3829 else if (CXXRD->isTriviallyCopyable()) in mayInsertExtraPadding()
3831 else if (CXXRD->hasTrivialDestructor()) in mayInsertExtraPadding()
3833 else if (CXXRD->isStandardLayout()) in mayInsertExtraPadding()
/external/llvm-project/clang/lib/AST/
DRecordLayoutBuilder.cpp3449 auto CXXRD = dyn_cast<CXXRecordDecl>(RD); in DumpRecordLayout() local
3455 if (CXXRD && CXXRD->isEmpty()) in DumpRecordLayout()
3462 if (CXXRD) { in DumpRecordLayout()
3468 if (CXXRD->isDynamicClass() && !PrimaryBase && !isMsLayout(C)) { in DumpRecordLayout()
3479 for (const CXXBaseSpecifier &Base : CXXRD->bases()) { in DumpRecordLayout()
3538 if (CXXRD && IncludeVirtualBases) { in DumpRecordLayout()
3542 for (const CXXBaseSpecifier &Base : CXXRD->vbases()) { in DumpRecordLayout()
3565 if (CXXRD && !isMsLayout(C)) in DumpRecordLayout()
3571 if (CXXRD) { in DumpRecordLayout()
DDecl.cpp4161 const auto *CXXRD = cast<CXXRecordDecl>(RD); in isZeroSize() local
4162 if (!CXXRD->isEmpty()) in isZeroSize()
4288 if (const auto *CXXRD = dyn_cast<CXXRecordDecl>(this)) in getDefinition() local
4289 return CXXRD->getDefinition(); in getDefinition()
4592 const auto *CXXRD = dyn_cast<CXXRecordDecl>(this); in mayInsertExtraPadding() local
4595 if (!CXXRD || CXXRD->isExternCContext()) in mayInsertExtraPadding()
4597 else if (CXXRD->hasAttr<PackedAttr>()) in mayInsertExtraPadding()
4599 else if (CXXRD->isUnion()) in mayInsertExtraPadding()
4601 else if (CXXRD->isTriviallyCopyable()) in mayInsertExtraPadding()
4603 else if (CXXRD->hasTrivialDestructor()) in mayInsertExtraPadding()
[all …]
/external/llvm-project/clang/lib/CodeGen/
DCGExprAgg.cpp1641 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(record)) { in VisitInitListExpr() local
1642 assert(E->getNumInits() >= CXXRD->getNumBases() && in VisitInitListExpr()
1644 for (auto &Base : CXXRD->bases()) { in VisitInitListExpr()
1648 Dest.getAddress(), CXXRD, BaseRD, in VisitInitListExpr()
1655 CGF.getOverlapForBaseInit(CXXRD, BaseRD, Base.isVirtual())); in VisitInitListExpr()
1899 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(SD)) in GetNumNonZeroBytesInInit() local
1900 while (ILEElement != CXXRD->getNumBases()) in GetNumNonZeroBytesInInit()
DTargetInfo.cpp551 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in isEmptyRecord() local
552 for (const auto &I : CXXRD->bases()) in isEmptyRecord()
582 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) { in isSingleElementStruct() local
583 for (const auto &I : CXXRD->bases()) { in isSingleElementStruct()
1442 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) { in canExpandIndirectArgument() local
1446 if (!CXXRD->isCLike()) in canExpandIndirectArgument()
1450 if (CXXRD->isDynamicClass()) in canExpandIndirectArgument()
1453 if (!addBaseAndFieldSizes(getContext(), CXXRD, Size)) in canExpandIndirectArgument()
1575 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in isRecordWithSIMDVectorType() local
1576 for (const auto &I : CXXRD->bases()) in isRecordWithSIMDVectorType()
[all …]
DCGDebugInfo.cpp1049 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in getOrCreateRecordFwdDecl() local
1050 if (!CXXRD->hasDefinition() || in getOrCreateRecordFwdDecl()
1051 (CXXRD->hasDefinition() && !CXXRD->isTrivial())) in getOrCreateRecordFwdDecl()
2261 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in completeClassData() local
2262 if (CXXRD->isDynamicClass() && in completeClassData()
2263 CGM.getVTableLinkage(CXXRD) == in completeClassData()
2265 !isClassOrMethodDLLImport(CXXRD)) in completeClassData()
3365 if (auto CXXRD = dyn_cast<CXXRecordDecl>(RD)) { in CreateLimitedType() local
3366 if (CGM.getCXXABI().getRecordArgABI(CXXRD) == CGCXXABI::RAA_Indirect) in CreateLimitedType()
3372 if (!CXXRD->isTrivial()) in CreateLimitedType()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaInit.cpp800 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RDecl)) { in FillInEmptyInitializations() local
801 for (auto &Base : CXXRD->bases()) { in FillInEmptyInitializations()
986 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(structDecl)) in numStructUnionElements() local
987 InitializableMembers += CXXRD->getNumBases(); in numStructUnionElements()
1015 if (CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(ParentRD)) in isIdiomaticBraceElisionEntity() local
1016 if (CXXRD->getNumBases()) in isIdiomaticBraceElisionEntity()
1099 auto *CXXRD = T->getAsCXXRecordDecl(); in CheckImplicitInitList() local
1100 if (!VerifyOnly && CXXRD && CXXRD->hasUserDeclaredConstructor()) { in CheckImplicitInitList()
1240 auto *CXXRD = T->getAsCXXRecordDecl(); in CheckExplicitInitList() local
1241 if (CXXRD && CXXRD->hasUserDeclaredConstructor()) { in CheckExplicitInitList()
[all …]
/external/clang/tools/libclang/
DCXIndexDataConsumer.cpp636 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(D)) in handleTagDecl() local
637 return handleCXXRecordDecl(CXXRD, D); in handleTagDecl()

12