|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/AST/TypeLoc.h 722 RecordDecl *getDecl() const { return getTypePtr()->getDecl(); }
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h 654 static yes& test(Inner *I, decltype(I->getDecl()) * = nullptr);
tools/clang/lib/ARCMigrate/ObjCMT.cpp 1075 if (!RecordTy->getDecl()->isCompleteDefinition())
tools/clang/lib/AST/APValue.cpp 655 const RecordDecl *RD = Ty->castAs<RecordType>()->getDecl();
tools/clang/lib/AST/ASTContext.cpp 1707 const ASTRecordLayout &layout = getASTRecordLayout(RT->getDecl());
2123 const RecordDecl *RD = RT->getDecl();
2220 const RecordDecl *RD = RT->getDecl();
2418 const RecordDecl *RD = Ty->castAs<RecordType>()->getDecl();
2446 Context, Base.getType()->castAs<RecordType>()->getDecl());
2537 const RecordDecl *Record = Ty->castAs<RecordType>()->getDecl();
6071 CFConstantStringTagDecl = TagType->getDecl();
6884 if (RTy->getDecl()->getIdentifier() == &Idents.get("objc_class")) {
6889 if (RTy->getDecl()->getIdentifier() == &Idents.get("objc_object")) {
6945 RecordDecl *RDecl = cast<RecordType>(CT)->getDecl();
8610 RecordDecl *UD = UT->getDecl();
tools/clang/lib/AST/ASTDiagnostic.cpp 1083 dyn_cast<ClassTemplateSpecializationDecl>(RT->getDecl());
tools/clang/lib/AST/ASTImporter.cpp 1346 Expected<RecordDecl *> ToDeclOrErr = import(T->getDecl());
1560 if (RT && RT->getDecl() == D) {
tools/clang/lib/AST/ASTStructuralEquivalence.cpp 953 RecordDecl *D1 = Field1->getType()->castAs<RecordType>()->getDecl();
954 RecordDecl *D2 = Field2->getType()->castAs<RecordType>()->getDecl();
1646 const RecordDecl *RecDecl = RecType->getDecl();
tools/clang/lib/AST/CXXInheritance.cpp 166 cast_or_null<CXXRecordDecl>(Ty->getDecl()->getDefinition());
287 BaseRecord = cast<CXXRecordDecl>(RT->getDecl());
304 BaseSpec.getType()->castAs<RecordType>()->getDecl());
370 VBase = cast<CXXRecordDecl>(Record->getDecl());
382 HidingClass = cast<CXXRecordDecl>(Record->getDecl());
401 return Specifier->getType()->castAs<RecordType>()->getDecl()
411 Specifier->getType()->castAs<RecordType>()->getDecl()
419 Specifier->getType()->castAs<RecordType>()->getDecl();
449 Specifier->getType()->castAs<RecordType>()->getDecl();
462 return findOrdinaryMember(RT->getDecl(), Path, Name);
478 Specifier->getType()->castAs<RecordType>()->getDecl();
493 Specifier->getType()->castAs<RecordType>()->getDecl();
509 Specifier->getType()->castAs<RecordType>()->getDecl();
611 const CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(RT->getDecl());
781 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
803 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
tools/clang/lib/AST/Decl.cpp 3947 return Record->getDecl()->isAnonymousStructOrUnion();
3976 const RecordDecl *RD = RT->getDecl()->getDefinition();
4445 RT->getDecl()->findFirstNamedDataMember())
tools/clang/lib/AST/DeclCXX.cpp 222 cast<CXXRecordDecl>(BaseType->castAs<RecordType>()->getDecl());
1099 auto *FieldRec = cast<CXXRecordDecl>(RecordTy->getDecl());
1569 auto *Base = cast<CXXRecordDecl>(RT->getDecl());
1607 CollectVisibleConversions(Context, cast<CXXRecordDecl>(RT->getDecl()),
1913 cast<CXXRecordDecl>(B.getType()->castAs<RecordType>()->getDecl());
2030 const auto *Base = cast<CXXRecordDecl>(RT->getDecl());
tools/clang/lib/AST/DeclarationName.cpp 125 OS << *ClassRec->getDecl();
182 OS << *Rec->getDecl();
tools/clang/lib/AST/Expr.cpp 72 Decl *D = Ty->getDecl();
89 cast<CXXRecordDecl>(E->getType()->castAs<RecordType>()->getDecl());
1963 auto RD = unionType->castAs<RecordType>()->getDecl();
3208 RecordDecl *RD = ILE->getType()->castAs<RecordType>()->getDecl();
3766 UT && UT->getDecl()->hasAttr<TransparentUnionAttr>())
tools/clang/lib/AST/ExprCXX.cpp 845 cast<CXXRecordDecl>(SrcType->castAs<RecordType>()->getDecl());
851 cast<CXXRecordDecl>(DestType->castAs<RecordType>()->getDecl());
tools/clang/lib/AST/ExprConstant.cpp 2197 RecordDecl *RD = Type->castAs<RecordType>()->getDecl();
3318 RecordDecl *RD = ObjType->castAs<RecordType>()->getDecl();
7039 assert(BaseTy->castAs<RecordType>()->getDecl()->getCanonicalDecl() ==
7231 assert(BaseTy->castAs<RecordType>()->getDecl()->getCanonicalDecl() ==
8836 const RecordDecl *RD = T->castAs<RecordType>()->getDecl();
8899 const RecordDecl *RD = E->getType()->castAs<RecordType>()->getDecl();
9077 RecordDecl *Record = E->getType()->castAs<RecordType>()->getDecl();
11979 RecordDecl *RD = RT->getDecl();
12001 RecordDecl *RD = RT->getDecl();
12012 Result += RL.getBaseClassOffset(cast<CXXRecordDecl>(BaseRT->getDecl()));
tools/clang/lib/AST/InheritViz.cpp 94 static_cast<const CXXRecordDecl *>(Type->castAs<RecordType>()->getDecl());
tools/clang/lib/AST/Interp/ByteCodeExprGen.cpp 508 return getRecord(RecordTy->getDecl());
tools/clang/lib/AST/Interp/EvalEmitter.cpp 119 if (RT->getDecl()->isUnion()) {
tools/clang/lib/AST/Interp/Program.cpp 241 const RecordDecl *BD = Spec.getType()->castAs<RecordType>()->getDecl();
253 const RecordDecl *BD = Spec.getType()->castAs<RecordType>()->getDecl();
301 if (auto *Record = getOrCreateRecord(RT->getDecl()))
tools/clang/lib/AST/ItaniumCXXABI.cpp 47 assert(RT->getDecl()->isUnion() && "RecordType is expected to be a union.");
48 if (const FieldDecl *FD = RT->getDecl()->findFirstNamedDataMember()) {
tools/clang/lib/AST/ItaniumMangle.cpp 1327 const RecordDecl *RD = VD->getType()->castAs<RecordType>()->getDecl();
3471 if (!RT->getDecl()->isAnonymousStructOrUnion())
4686 return mangleSubstitution(RT->getDecl());
4734 dyn_cast<ClassTemplateSpecializationDecl>(RT->getDecl());
4850 addSubstitution(RT->getDecl());
tools/clang/lib/AST/JSONNodeDumper.cpp 313 cast<CXXRecordDecl>(Base->getType()->castAs<RecordType>()->getDecl());
tools/clang/lib/AST/MicrosoftMangle.cpp 2569 mangleName(T->getClass()->castAs<RecordType>()->getDecl());
2573 mangleName(T->getClass()->castAs<RecordType>()->getDecl());
tools/clang/lib/AST/ODRHash.cpp 739 const IdentifierInfo *RecordII = RecordT->getDecl()->getIdentifier();
tools/clang/lib/AST/QualTypeNames.cpp 155 dyn_cast<ClassTemplateSpecializationDecl>(TSTRecord->getDecl())) {
tools/clang/lib/AST/RecordLayoutBuilder.cpp 2458 auto const &Layout = Context.getASTRecordLayout(RT->getDecl());
3368 DumpRecordLayout(OS, RT->getDecl(), C, FieldOffset, IndentLevel,
tools/clang/lib/AST/TextNodeDumper.cpp 640 cast<CXXRecordDecl>(Base->getType()->castAs<RecordType>()->getDecl());
tools/clang/lib/AST/Type.cpp 78 ND = ty->castAs<RecordType>()->getDecl();
491 return RT->getDecl()->isClass();
497 return RT->getDecl()->isStruct();
503 return RT->getDecl()->hasAttr<ObjCBoxableAttr>();
509 return RT->getDecl()->isInterface();
515 RecordDecl *RD = RT->getDecl();
529 return RT->getDecl()->isUnion();
576 if (RT->getDecl()->isStruct())
582 if (!RT->getDecl()->isStruct())
595 if (RT->getDecl()->isUnion())
601 if (!RT->getDecl()->isUnion())
1683 return dyn_cast<CXXRecordDecl>(RT->getDecl());
2092 if (const auto *ClassDecl = dyn_cast<CXXRecordDecl>(Record->getDecl()))
2133 RecordDecl *Rec = cast<RecordType>(CanonicalType)->getDecl();
2232 dyn_cast<CXXRecordDecl>(cast<RecordType>(CanonicalType)->getDecl()))
2271 if (const auto *ClassDecl = dyn_cast<CXXRecordDecl>(RT->getDecl())) {
2314 if (const auto *ClassDecl = dyn_cast<CXXRecordDecl>(RT->getDecl())) {
2347 if (RT->getDecl()->isNonTrivialToPrimitiveDefaultInitialize())
2363 if (RT->getDecl()->isNonTrivialToPrimitiveCopy())
2429 if (const auto *ClassDecl = dyn_cast<CXXRecordDecl>(RT->getDecl()))
2466 if (const auto *ClassDecl = dyn_cast<CXXRecordDecl>(RT->getDecl()))
2505 if (const auto *ClassDecl = dyn_cast<CXXRecordDecl>(RT->getDecl())) {
3304 RecordTypeList[NextToCheckIndex]->getDecl()->fields()) {
4129 const RecordDecl *RD = RT->getDecl();
tools/clang/lib/AST/TypePrinter.cpp 1224 printTag(T->getDecl(), OS);
tools/clang/lib/AST/VTTBuilder.cpp 68 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
94 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
158 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
tools/clang/lib/AST/VTableBuilder.cpp 315 cast<CXXRecordDecl>(cast<RecordType>(CanDerivedReturnType)->getDecl());
318 cast<CXXRecordDecl>(cast<RecordType>(CanBaseReturnType)->getDecl());
tools/clang/lib/Analysis/ThreadSafety.cpp 1231 if (const auto *RD = RT->getDecl())
tools/clang/lib/CodeGen/CGBlocks.cpp 394 const auto *record = cast<CXXRecordDecl>(recordType->getDecl());
tools/clang/lib/CodeGen/CGBuiltin.cpp 1400 RecordDecl *RD = RType->castAs<RecordType>()->getDecl()->getDefinition();
tools/clang/lib/CodeGen/CGCXX.cpp 83 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
285 const auto *RD = cast<CXXRecordDecl>(RT->getDecl());
tools/clang/lib/CodeGen/CGCXXABI.cpp 50 cast<CXXRecordDecl>(MPT->getClass()->castAs<RecordType>()->getDecl());
tools/clang/lib/CodeGen/CGCall.cpp 912 const RecordDecl *RD = RT->getDecl();
3095 type->castAs<RecordType>()->getDecl()->isParamDestroyedInCallee() &&
3580 type->castAs<RecordType>()->getDecl()->isParamDestroyedInCallee()) {
tools/clang/lib/CodeGen/CGClass.cpp 165 cast<CXXRecordDecl>(Base->getType()->castAs<RecordType>()->getDecl());
284 (*Start)->getType()->castAs<RecordType>()->getDecl());
543 cast<CXXRecordDecl>(BaseType->castAs<RecordType>()->getDecl());
1251 cast<CXXRecordDecl>(BaseType->castAs<RecordType>()->getDecl());
1361 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
1371 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
1391 CXXRecordDecl *FieldClassDecl = cast<CXXRecordDecl>(RT->getDecl());
1821 cast<CXXRecordDecl>(Base.getType()->castAs<RecordType>()->getDecl());
1874 if (RT && RT->getDecl()->isAnonymousStructOrUnion()) continue;
2021 const CXXRecordDecl *record = cast<CXXRecordDecl>(rtype->getDecl());
2537 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
2680 const CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(ClassTy->getDecl());
tools/clang/lib/CodeGen/CGDebugInfo.cpp 975 const RecordDecl *RD = Ty->getDecl();
1706 cast<CXXRecordDecl>(BI.getType()->castAs<RecordType>()->getDecl());
2219 RecordDecl *RD = Ty->getDecl();
2232 RecordDecl *RD = Ty->getDecl();
2254 RegionMap[Ty->getDecl()].reset(FwdDecl);
2276 RegionMap.erase(Ty->getDecl());
2285 RegionMap[Ty->getDecl()].reset(FwdDecl);
3110 RecordDecl *RD = Ty->getDecl();
3184 RegionMap[Ty->getDecl()].reset(RealDecl);
3981 const RecordDecl *RD = RT->getDecl();
4368 GVE = CollectAnonRecordDecls(RT->getDecl(), Unit, LineNo, LinkageName,
4412 const RecordDecl *RD = T->castAs<RecordType>()->getDecl();
tools/clang/lib/CodeGen/CGDecl.cpp 1453 const auto *RD = RecordTy->getDecl();
2400 Ty->castAs<RecordType>()->getDecl()->isParamDestroyedInCallee()) {
tools/clang/lib/CodeGen/CGExpr.cpp 322 auto *ClassDecl = cast<CXXRecordDecl>(RT->getDecl());
1394 if (const auto *RD = dyn_cast<CXXRecordDecl>(RT->getDecl()))
4367 auto *DerivedClassDecl = cast<CXXRecordDecl>(DerivedClassTy->getDecl());
4387 auto *DerivedClassDecl = cast<CXXRecordDecl>(DerivedClassTy->getDecl());
tools/clang/lib/CodeGen/CGExprAgg.cpp 237 RecordDecl *Record = RecordTy->getDecl();
396 RecordDecl *Record = E->getType()->castAs<RecordType>()->getDecl();
1495 RecordDecl *record = E->getType()->castAs<RecordType>()->getDecl();
1765 RecordDecl *SD = RT->getDecl();
1817 const CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
1924 CXXRecordDecl *Record = cast<CXXRecordDecl>(RT->getDecl());
1996 RecordDecl *Record = RecordTy->getDecl();
2005 if (RecordTy->getDecl()->hasObjectMember()) {
tools/clang/lib/CodeGen/CGExprCXX.cpp 174 return cast<CXXRecordDecl>(Ty->getDecl());
424 cast<CXXRecordDecl>(MPT->getClass()->castAs<RecordType>()->getDecl());
1188 if (RType->getDecl()->isStruct()) {
1190 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RType->getDecl()))
1192 for (auto *Field : RType->getDecl()->fields())
1877 CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
tools/clang/lib/CodeGen/CGExprConstant.cpp 662 RecordDecl *RD = ILE->getType()->castAs<RecordType>()->getDecl();
842 RecordDecl *RD = Type->castAs<RecordType>()->getDecl();
865 const RecordDecl *RD = ValTy->castAs<RecordType>()->getDecl();
1263 HasFlexibleArray = RT->getDecl()->hasFlexibleArrayMember();
1274 const CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
2213 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
2250 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
2316 return ::EmitNullConstant(*this, RT->getDecl(), /*complete object*/ true);
tools/clang/lib/CodeGen/CGExprScalar.cpp 2674 RecordDecl *RD = CurrentType->castAs<RecordType>()->getDecl();
2707 RecordDecl *RD = CurrentType->castAs<RecordType>()->getDecl();
2715 CXXRecordDecl *BaseRD = cast<CXXRecordDecl>(BaseRT->getDecl());
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp 41 const RecordDecl *RD = QT->castAs<RecordType>()->getDecl();
443 SourceLocation Loc = QT->castAs<RecordType>()->getDecl()->getLocation();
tools/clang/lib/CodeGen/CGObjC.cpp 907 HasStrong = recordType->getDecl()->hasObjectMember();
tools/clang/lib/CodeGen/CGObjCMac.cpp 2603 const RecordDecl *RD = RT->getDecl();
3473 for (auto field : recType->getDecl()->fields()) {
5166 const RecordDecl *RD = RT->getDecl();
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 5122 if (!SharedsTy->getAsStructureType()->getDecl()->field_empty()) {
5153 (*FI)->getType()->getAsUnionType()->getDecl();
tools/clang/lib/CodeGen/CodeGenFunction.cpp 1135 if (const auto *ClassDecl = dyn_cast<CXXRecordDecl>(RT->getDecl()))
1623 if (cast<CXXRecordDecl>(RT->getDecl())->isEmpty())
tools/clang/lib/CodeGen/CodeGenFunction.h 2315 const RecordDecl *RD = cast<RecordDecl>(RT->getDecl());
tools/clang/lib/CodeGen/CodeGenModule.cpp 2567 if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl()))
4149 const RecordDecl *RD = RT->getDecl();
tools/clang/lib/CodeGen/CodeGenTBAA.cpp 100 const RecordDecl *RD = TTy->getDecl()->getDefinition();
246 const RecordDecl *RD = TTy->getDecl()->getDefinition();
298 const RecordDecl *RD = TTy->getDecl()->getDefinition();
tools/clang/lib/CodeGen/CodeGenTypes.cpp 138 if (!isSafeToConvert(I.getType()->castAs<RecordType>()->getDecl(), CGT,
165 return isSafeToConvert(RT->getDecl(), CGT, AlreadyChecked);
219 return isSafeToConvert(RT->getDecl(), *this);
324 ConvertRecordDeclType(RT->getDecl());
328 ConvertRecordDeclType(RT->getDecl());
388 return ConvertRecordDeclType(RT->getDecl());
747 ConvertRecordDeclType(I.getType()->castAs<RecordType>()->getDecl());
813 const RecordDecl *RD = RT->getDecl();
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp 584 cast<CXXRecordDecl>(MPT->getClass()->castAs<RecordType>()->getDecl());
1181 cast<CXXRecordDecl>(ElementType->castAs<RecordType>()->getDecl());
1266 CXXRecordDecl *Record = cast<CXXRecordDecl>(RecordTy->getDecl());
1384 cast<CXXRecordDecl>(SrcRecordTy->castAs<RecordType>()->getDecl());
1450 cast<CXXRecordDecl>(SrcRecordTy->castAs<RecordType>()->getDecl());
3051 const CXXRecordDecl *RD = cast<CXXRecordDecl>(RecordTy->getDecl());
3082 return !RecordTy->getDecl()->isCompleteDefinition();
3139 cast<CXXRecordDecl>(Base->getType()->castAs<RecordType>()->getDecl());
3212 cast<CXXRecordDecl>(cast<RecordType>(Ty)->getDecl());
3306 const CXXRecordDecl *RD = cast<CXXRecordDecl>(Record->getDecl());
3456 cast<CXXRecordDecl>(cast<RecordType>(Ty)->getDecl());
3603 cast<CXXRecordDecl>(Base->getType()->castAs<RecordType>()->getDecl());
3702 cast<CXXRecordDecl>(Base.getType()->castAs<RecordType>()->getDecl());
tools/clang/lib/CodeGen/SwiftCallingConv.cpp 68 addTypedData(recType->getDecl(), begin);
800 auto record = recordType->getDecl();
807 lowering.addTypedData(recordType->getDecl(), CharUnits::Zero(), layout);
tools/clang/lib/CodeGen/TargetInfo.cpp 141 const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl());
143 if (!RT->getDecl()->canPassInRegisters())
163 if (!isa<CXXRecordDecl>(RT->getDecl()) &&
164 !RT->getDecl()->canPassInRegisters()) {
176 const RecordDecl *UD = UT->getDecl();
502 if (isa<CXXRecordDecl>(RT->getDecl()))
515 const RecordDecl *RD = RT->getDecl();
544 const RecordDecl *RD = RT->getDecl();
1274 for (const auto *FD : RT->getDecl()->fields()) {
1344 const RecordDecl *RD = RT->getDecl();
1421 if (RT->getDecl()->hasFlexibleArrayMember())
1472 const RecordDecl *RD = RT->getDecl();
1669 if (RT && RT->getDecl()->hasFlexibleArrayMember())
2796 const RecordDecl *RD = RT->getDecl();
2813 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
3066 const RecordDecl *RD = RT->getDecl();
3075 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
3551 if (RT->getDecl()->hasFlexibleArrayMember())
3555 if (auto CXXRD = dyn_cast<CXXRecordDecl>(RT->getDecl())) {
3570 for (const auto *FD : RT->getDecl()->fields()) {
3949 if (RT->getDecl()->hasFlexibleArrayMember())
4607 const RecordDecl *RD = RT->getDecl();
6015 const RecordDecl *RD = RT->getDecl();
6217 const RecordDecl *RD = RT->getDecl();
6383 const RecordDecl *RD = RT->getDecl();
6632 const RecordDecl *RD = RT->getDecl();
6866 const RecordDecl *RD = RT->getDecl();
7059 const RecordDecl *RD = RT->getDecl();
7155 const RecordDecl *RD = RT->getDecl();
7628 if (RT && RT->getDecl()->hasFlexibleArrayMember())
7732 const RecordDecl *RD = RT->getDecl();
7781 const RecordDecl *RD = RT->getDecl();
7848 const RecordDecl *RD = RT->getDecl();
8554 if (RT && RT->getDecl()->hasFlexibleArrayMember())
8963 const RecordDecl *RD = RT->getDecl()->getDefinition();
9391 const RecordDecl *RD = RTy->getDecl();
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 855 RecordDecl *RD = IvarT->castAs<RecordType>()->getDecl();
3639 RecordDecl *RD = Type->castAs<RecordType>()->getDecl();
3734 TD = Type->castAs<RecordType>()->getDecl();
5755 RecordDecl *RD = VD->getType()->castAs<RecordType>()->getDecl();
7496 RecordDecl *RD = IvarT->castAs<RecordType>()->getDecl();
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 4853 RecordDecl *RD = VD->getType()->castAs<RecordType>()->getDecl();
tools/clang/lib/Sema/SemaAccess.cpp 302 RD = cast<CXXRecordDecl>(RT->getDecl());
426 return MatchesFriend(S, EC, cast<CXXRecordDecl>(RT->getDecl()));
655 RD = cast<CXXRecordDecl>(RT->getDecl());
1756 CXXRecordDecl *NamingClass = cast<CXXRecordDecl>(RT->getDecl());
1837 BaseD = cast<CXXRecordDecl>(Base->castAs<RecordType>()->getDecl());
1838 DerivedD = cast<CXXRecordDecl>(Derived->castAs<RecordType>()->getDecl());
tools/clang/lib/Sema/SemaCUDA.cpp 310 CXXRecordDecl *BaseClassDecl = cast<CXXRecordDecl>(BaseType->getDecl());
353 CXXRecordDecl *FieldRecDecl = cast<CXXRecordDecl>(FieldType->getDecl());
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp 34 CXXRecordDecl *Record = cast<CXXRecordDecl>(RecordTy->getDecl());
133 return RecordT->getDecl();
tools/clang/lib/Sema/SemaCast.cpp 837 const RecordDecl *SrcDecl = SrcRecord->getDecl()->getDefinition();
2643 if (DestRecordTy && DestRecordTy->getDecl()->isUnion()) {
2644 RecordDecl *RD = DestRecordTy->getDecl();
tools/clang/lib/Sema/SemaChecking.cpp 4121 if (UT->getDecl()->hasAttr<TransparentUnionAttr>())
7906 const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl());
7916 if (S.LookupQualifiedName(R, RT->getDecl()))
9421 for (const FieldDecl *FD : FT->castAs<RecordType>()->getDecl()->fields())
9463 for (const FieldDecl *FD : FT->castAs<RecordType>()->getDecl()->fields())
9740 RT->getDecl()->isNonTrivialToPrimitiveDefaultInitialize()) {
9746 RT->getDecl()->isNonTrivialToPrimitiveCopy()) {
14359 cast<RecordType>(T1)->getDecl(),
14360 cast<RecordType>(T2)->getDecl());
14687 RecordDecl *RD = BaseType->castAs<RecordType>()->getDecl();
tools/clang/lib/Sema/SemaCodeComplete.cpp 3174 Record = cast<CXXRecordDecl>(RecordTy->getDecl());
4757 Record->getDecl(),
tools/clang/lib/Sema/SemaDecl.cpp 4531 Record = RT->getDecl();
4533 Record = UT->getDecl();
7806 Specifier->getType()->castAs<RecordType>()->getDecl();
8452 const RecordDecl *OrigRecDecl = RecTy->getDecl();
8454 VisitStack.push_back(RecTy->getDecl());
8481 RD = FieldRecTy->castAs<RecordType>()->getDecl();
11354 const RecordDecl *RD = QT->castAs<RecordType>()->getDecl();
11419 const RecordDecl *RD = QT->castAs<RecordType>()->getDecl();
11485 const RecordDecl *RD = QT->castAs<RecordType>()->getDecl();
12222 CXXRecordDecl *CXXRecord = cast<CXXRecordDecl>(Record->getDecl());
16129 CXXRecordDecl* RDecl = cast<CXXRecordDecl>(RT->getDecl());
16186 CXXRecordDecl *RDecl = cast<CXXRecordDecl>(RT->getDecl());
16548 if (Record && FDTTy->getDecl()->hasFlexibleArrayMember()) {
16574 if (Record && FDTTy->getDecl()->hasObjectMember())
16576 if (Record && FDTTy->getDecl()->hasVolatileMember())
16608 BaseType->castAs<RecordType>()->getDecl()->hasObjectMember())
16639 if (RT->getDecl()->getArgPassingRestrictions() ==
tools/clang/lib/Sema/SemaDeclAttr.cpp 175 const RecordDecl *RD = RT->getDecl();
473 const RecordDecl *Record = RT->getDecl();
551 return Ty.castAs<RecordType>()->getDecl()->hasAttr<AttrType>();
574 return checkRecordDeclForAttr<CapabilityAttr>(RT->getDecl());
1418 if (UT && UT->getDecl()->hasAttr<TransparentUnionAttr>()) {
1419 RecordDecl *UD = UT->getDecl();
3488 RD = TD->getUnderlyingType()->getAsUnionType()->getDecl();
tools/clang/lib/Sema/SemaDeclCXX.cpp 1948 const RecordDecl *RD = Field->getType()->castAs<RecordType>()->getDecl();
2489 RecordDecl *BaseDecl = BaseType->castAs<RecordType>()->getDecl();
2666 const CXXRecordDecl *RD = cast<CXXRecordDecl>(Record->getDecl());
5121 const RecordDecl *RD = RT->getDecl();
5395 CXXRecordDecl *FieldClassDecl = cast<CXXRecordDecl>(RT->getDecl());
5433 CXXRecordDecl *BaseClassDecl = cast<CXXRecordDecl>(RT->getDecl());
5465 CXXRecordDecl *BaseClassDecl = cast<CXXRecordDecl>(RT->getDecl());
6749 CXXRecordDecl *BaseClassDecl = cast<CXXRecordDecl>(BaseType->getDecl());
6769 CXXRecordDecl *FieldRecDecl = cast<CXXRecordDecl>(RecordTy->getDecl());
8209 Specifier->getType()->castAs<RecordType>()->getDecl();
8358 !cast<CXXRecordDecl>(RT->getDecl())->canPassInRegisters()) {
9661 dyn_cast<ClassTemplateSpecializationDecl>(RT->getDecl());
11221 auto *BaseClass = cast<CXXRecordDecl>(RT->getDecl());
11246 visitClassSubobject(cast<CXXRecordDecl>(RT->getDecl()), FD,
12051 E->castAs<RecordType>()->getDecl()->hasObjectMember();
12128 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(RecordTy->getDecl());
13582 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(Record->getDecl());
14543 RecordDecl *RD = RT->getDecl();
15779 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
15827 CXXRecordDecl *RD = cast<CXXRecordDecl>(RecordTy->getDecl());
tools/clang/lib/Sema/SemaDeclObjC.cpp 3192 RecordDecl *left = cast<RecordType>(lt)->getDecl();
3193 RecordDecl *right = cast<RecordType>(rt)->getDecl();
3804 return (RecordTy && RecordTy->getDecl()->hasFlexibleArrayMember());
3850 if (RecordTy->getDecl()->hasFlexibleArrayMember()) {
tools/clang/lib/Sema/SemaExceptionSpec.cpp 1061 if (!cast<CXXRecordDecl>(RT->getDecl())->isPolymorphic())
1160 const CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
tools/clang/lib/Sema/SemaExpr.cpp 7402 if (LHSRT->getDecl() == RHSRT->getDecl())
7402 if (LHSRT->getDecl() == RHSRT->getDecl())
8497 if (!UT || !UT->getDecl()->hasAttr<TransparentUnionAttr>())
8501 RecordDecl *UD = UT->getDecl();
11651 RecordTypeList[NextToCheckIndex]->getDecl()->fields()) {
13931 RecordDecl *RD = RC->getDecl();
15775 if (VTTy->getDecl()->hasFlexibleArrayMember()) {
17047 CXXRecordDecl *Record = cast<CXXRecordDecl>(DestroyedRec->getDecl());
tools/clang/lib/Sema/SemaExprCXX.cpp 298 = dyn_cast<ClassTemplateSpecializationDecl>(Record->getDecl())) {
478 CXXRecordDecl *RecordD = cast<CXXRecordDecl>(RecordT->getDecl());
1611 S.LookupQualifiedName(ops, record->getDecl());
2470 cast<CXXRecordDecl>(AllocElemType->castAs<RecordType>()->getDecl());
3331 PointeeRD = cast<CXXRecordDecl>(RT->getDecl());
4472 CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
5107 if (lhsRecord && lhsRecord->getDecl()->isUnion())
5109 if (rhsRecord && rhsRecord->getDecl()->isUnion())
5123 return cast<CXXRecordDecl>(rhsRecord->getDecl())
5124 ->isDerivedFrom(cast<CXXRecordDecl>(lhsRecord->getDecl()));
6485 CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
tools/clang/lib/Sema/SemaExprMember.cpp 596 : Record(RTy->getDecl()) {
622 if (BSTy->getDecl()->containsDecl(ND))
649 RecordDecl *RDecl = RTy->getDecl();
1009 : BaseType->castAs<RecordType>()->getDecl());
tools/clang/lib/Sema/SemaExprObjC.cpp 3651 if (RecordDecl *RD = RT->getDecl()->getMostRecentDecl())
tools/clang/lib/Sema/SemaInit.cpp 648 if (!RType->getDecl()->isUnion())
770 const RecordDecl *RDecl = RType->getDecl();
977 RecordDecl *structDecl = DeclType->castAs<RecordType>()->getDecl();
1007 Entity.getParent()->getType()->castAs<RecordType>()->getDecl();
1267 RecordDecl *RD = DeclType->castAs<RecordType>()->getDecl();
1998 RecordDecl *structDecl = DeclType->castAs<RecordType>()->getDecl();
2010 RecordDecl *RD = DeclType->castAs<RecordType>()->getDecl();
2085 RecordDecl *RD = DeclType->castAs<RecordType>()->getDecl();
2497 DeclContext::lookup_result Lookup = RT->getDecl()->lookup(FieldName);
2531 FieldInitializerValidatorCCC CCC(RT->getDecl());
2535 Sema::CTK_ErrorRecovery, RT->getDecl())) {
2553 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RT->getDecl()))
2558 for (auto *FI : RT->getDecl()->fields()) {
2573 if (RT->getDecl()->isUnion()) {
2625 (*NextField == RT->getDecl()->field_end() ||
2629 for (auto FI = RT->getDecl()->field_begin();
2630 FI != RT->getDecl()->field_end(); ++FI) {
2633 if (*NextField != RT->getDecl()->field_end() &&
2758 if (RT->getDecl()->isUnion())
4033 = cast<CXXRecordDecl>(DestRecordType->getDecl());
4502 CXXRecordDecl *T1RecordDecl = cast<CXXRecordDecl>(T1RecordType->getDecl());
4525 if (T1RecordType && T1RecordType->getDecl()->isInvalidDecl())
4533 CXXRecordDecl *T2RecordDecl = cast<CXXRecordDecl>(T2RecordType->getDecl());
4570 if (T2RecordType && T2RecordType->getDecl()->isInvalidDecl())
5023 if (CXXRecordDecl *ClassDecl = dyn_cast<CXXRecordDecl>(RT->getDecl())) {
5150 = cast<CXXRecordDecl>(DestRecordType->getDecl());
5187 = cast<CXXRecordDecl>(SourceRecordType->getDecl());
6113 Class = cast<CXXRecordDecl>(Record->getDecl());
6270 S.LookupConstructors(cast<CXXRecordDecl>(Record->getDecl()));
8119 = S.LookupDestructor(cast<CXXRecordDecl>(Record->getDecl()));
9030 ->getDecl();
9045 S.Diag(Record->getDecl()->getLocation(),
9047 << S.Context.getTagDeclType(Record->getDecl());
tools/clang/lib/Sema/SemaLookup.cpp 2133 RecordDecl *BaseRecord = Specifier->getType()->castAs<RecordType>()->getDecl();
2510 BaseSpec.getType()->castAs<RecordType>()->getDecl());
2791 CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(BaseType->getDecl());
2863 cast<CXXRecordDecl>(cast<RecordType>(T)->getDecl());
3857 RD = Record->getDecl();
tools/clang/lib/Sema/SemaObjCProperty.cpp 1304 if (RecordTy && RecordTy->getDecl()->hasFlexibleArrayMember()) {
tools/clang/lib/Sema/SemaOpenMP.cpp12876 TyRec->getDecl()->getDefinition()) {
12878 SemaRef.LookupQualifiedName(Lookup, TyRec->getDecl());
tools/clang/lib/Sema/SemaOverload.cpp 1979 if (!UT || !UT->getDecl()->hasAttr<TransparentUnionAttr>())
1982 RecordDecl *UD = UT->getDecl();
3363 = dyn_cast<CXXRecordDecl>(ToRecordType->getDecl())) {
3432 = dyn_cast<CXXRecordDecl>(FromRecordType->getDecl())) {
4471 = dyn_cast<CXXRecordDecl>(T2->castAs<RecordType>()->getDecl());
5904 cast<CXXRecordDecl>(RecordTy->getDecl())->getVisibleConversionFunctions();
7103 = cast<CXXRecordDecl>(ImplicitParamType->castAs<RecordType>()->getDecl());
7454 if (!T1Rec->getDecl()->getDefinition())
7458 LookupQualifiedName(Operators, T1Rec->getDecl());
7801 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(TyRec->getDecl());
7870 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(TyRec->getDecl());
13618 LookupQualifiedName(R, Record->getDecl());
13646 cast<CXXRecordDecl>(Record->getDecl())->getVisibleConversionFunctions();
13894 LookupQualifiedName(R, BaseRecord->getDecl());
tools/clang/lib/Sema/SemaPseudoObject.cpp 1090 for (NamedDecl *D : cast<CXXRecordDecl>(RecordTy->getDecl())
tools/clang/lib/Sema/SemaStmt.cpp 3422 auto *R = dyn_cast<CXXRecordDecl>(RT->getDecl());
tools/clang/lib/Sema/SemaStmtAsm.cpp 813 if (!LookupQualifiedName(FieldResult, RT->getDecl()))
825 const ASTRecordLayout &RL = Context.getASTRecordLayout(RT->getDecl());
857 if (!LookupQualifiedName(FieldResult, RT->getDecl()))
tools/clang/lib/Sema/SemaTemplate.cpp 3606 RecordDecl *D = RT->getDecl();
5617 return VisitTagDecl(T->getDecl());
tools/clang/lib/Sema/SemaTemplateDeduction.cpp 586 = dyn_cast<ClassTemplateSpecializationDecl>(RecordArg->getDecl());
1835 CXXRecordDecl *Next = cast<CXXRecordDecl>(NextT->getDecl());
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp 5510 ParentDC = Tag->getDecl();
tools/clang/lib/Sema/SemaType.cpp 2198 if (EltTy->getDecl()->hasFlexibleArrayMember())
3710 RecordDecl *recordDecl = recordType->getDecl();
8201 const CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
tools/clang/lib/Sema/TreeTransform.h 5817 T->getDecl()));
5823 Record != T->getDecl()) {
10685 CXXRecordDecl *Record = cast<CXXRecordDecl>(RecordT->getDecl());
10755 CXXRecordDecl *Record = cast<CXXRecordDecl>(DestroyedRec->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp 209 const RecordDecl *RD = RT->getDecl()->getDefinition();
tools/clang/lib/StaticAnalyzer/Checkers/CastSizeChecker.cpp 54 const RecordDecl *RD = RT->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp 204 CXXRecordDecl *baseD = cast<CXXRecordDecl>(baseT->getDecl());
250 const RecordDecl *RD = RT->getDecl()->getDefinition();
tools/clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp 114 if (!UT || !UT->getDecl()->hasAttr<TransparentUnionAttr>())
tools/clang/lib/StaticAnalyzer/Checkers/PaddingChecker.cpp 128 visitRecord(RT->getDecl(), Elts);
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp 110 const RecordDecl *RD = RT->getDecl();
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp 2111 const RecordDecl *RD = R->getValueType()->castAs<RecordType>()->getDecl();
2380 const RecordDecl *RD = RT->getDecl();
tools/clang/tools/extra/clang-doc/Serialize.cpp 444 cast_or_null<CXXRecordDecl>(Ty->getDecl()->getDefinition())) {
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp 167 return RT->getDecl();
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp 93 BaseRecordType->getDecl()->getDefinition()))
tools/clang/tools/extra/clang-tidy/fuchsia/MultipleInheritanceCheck.cpp 76 const RecordDecl *D = Ty->getDecl()->getDefinition();
109 const auto *Base = cast<CXXRecordDecl>(Ty->getDecl()->getDefinition());
118 const auto *Base = cast<CXXRecordDecl>(Ty->getDecl()->getDefinition());
tools/clang/tools/extra/clang-tidy/google/ExplicitConstructorCheck.cpp 81 dyn_cast<ClassTemplateSpecializationDecl>(RT->getDecl()))
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp 51 TL.getAs<RecordTypeLoc>().getTypePtr()->getDecl()->getName()))
tools/clang/tools/extra/clang-tidy/utils/TypeTraits.cpp 131 return recordIsTriviallyDefaultConstructible(*RT->getDecl(), Context);
tools/clang/tools/extra/clangd/refactor/tweaks/ExpandAutoType.cpp 86 dyn_cast<RecordType>(*DeducedType)->getDecl()->isLambda()) {
tools/clang/tools/libclang/CXIndexDataConsumer.cpp 353 BaseD = RT->getDecl();
tools/clang/tools/libclang/CXType.cpp 509 D = Record->getDecl();
972 if (const RecordDecl *Child = ChildType->getDecl()) {
tools/clang/unittests/AST/ASTImporterTest.cpp 245 return cast<RecordType>(ET->getNamedType().getTypePtr())->getDecl();
4480 return cast<RecordType>(Ty)->getDecl();
tools/clang/unittests/AST/StructuralEquivalenceTest.cpp 562 return cast<RecordType>(ET->getNamedType().getTypePtr())->getDecl();
675 RecordDecl *RA = cast<RecordType>(FA->getType().getTypePtr())->getDecl();
679 RecordDecl *RB = cast<RecordType>(FB->getType().getTypePtr())->getDecl();
708 RecordDecl *RA = cast<RecordType>(FA->getType().getTypePtr())->getDecl();
714 RecordDecl *RA1 = cast<RecordType>(FA1->getType().getTypePtr())->getDecl();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp 1707 origin_base_record_type->getDecl());
1842 DeclFromParser<RecordDecl> base_record(base_record_type->getDecl());
tools/lldb/source/Symbol/ClangASTContext.cpp 174 specifier->getType()->getAs<clang::RecordType>()->getDecl())) {
1742 base_class->getType()->getAs<RecordType>()->getDecl());
2571 return llvm::cast<clang::RecordType>(qual_type)->getDecl();
2796 if (const clang::RecordDecl *record_decl = record_type->getDecl()) {
3085 const clang::RecordDecl *record_decl = record_type->getDecl();
3647 const clang::RecordDecl *record_decl = record_type->getDecl();
4318 const clang::RecordDecl *record_decl = record_type->getDecl();
4541 const clang::RecordDecl *record_decl = record_type->getDecl();
4630 const clang::RecordDecl *record_decl = record_type->getDecl();
4900 tdecl = rt->getDecl();
5541 const clang::RecordDecl *record_decl = record_type->getDecl();
5559 ->getDecl());
5825 clang::RecordDecl *record_decl = record_type->getDecl();
5974 const clang::RecordDecl *record_decl = record_type->getDecl();
6235 ->getDecl());
6358 ->getDecl());
6612 const clang::RecordDecl *record_decl = record_type->getDecl();
6632 base_class->getType()->getAs<clang::RecordType>()->getDecl());
6640 base_class->getType()->getAs<clang::RecordType>()->getDecl());
7160 const clang::RecordDecl *record_decl = record_type->getDecl();
7228 ->getDecl());
7432 const clang::RecordDecl *record_decl = record_type->getDecl();
7451 ->getDecl());
7833 return record_type->getDecl();
7987 clang::RecordDecl *field_record_decl = field_record_type->getDecl();
9020 const clang::RecordDecl *record_decl = record_type->getDecl();
9039 base_class->getType()->getAs<clang::RecordType>()->getDecl());
9708 const clang::RecordDecl *record_decl = record_type->getDecl();