| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | RandstructTest.cpp | 42 static RecordDecl *getRecordDeclFromAST(const ASTContext &C, in getRecordDeclFromAST() 44 RecordDecl *RD = FirstDeclMatcher<RecordDecl>().match( in getRecordDeclFromAST() 49 static std::vector<std::string> getFieldNamesFromRecord(const RecordDecl *RD) { in getFieldNamesFromRecord() 81 const RecordDecl *LHSRD = in recordsEqual() 83 const RecordDecl *RHSRD = in recordsEqual() 135 long declCount(const RecordDecl *RD) { in declCount() 137 return isa<FieldDecl>(D) || isa<RecordDecl>(D); in declCount() 167 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST() 415 const RecordDecl *RD = in TEST() 427 const RecordDecl *RD = in TEST() [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRFindingAction.cpp | 79 handleCXXRecordDecl(RecordDecl); in Find() 117 if (!RecordDecl->getDefinition()) { in handleCXXRecordDecl() 118 USRSet.insert(getUSRForDecl(RecordDecl)); in handleCXXRecordDecl() 121 RecordDecl = RecordDecl->getDefinition(); in handleCXXRecordDecl() 125 addUSRsOfCtorDtors(RecordDecl); in handleCXXRecordDecl() 157 const auto* RecordDecl = RD->getDefinition(); in addUSRsOfCtorDtors() local 160 if (!RecordDecl) { in addUSRsOfCtorDtors() 165 for (const auto *CtorDecl : RecordDecl->ctors()) in addUSRsOfCtorDtors() 168 if (RecordDecl->hasUserDeclaredConstructor()) in addUSRsOfCtorDtors() 169 for (const auto *D : RecordDecl->decls()) in addUSRsOfCtorDtors() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Record.h | 34 const RecordDecl *Decl; 49 const RecordDecl *getDecl() const { return Decl; } in getDecl() 59 const Base *getBase(const RecordDecl *FD) const; 61 const Base *getVirtualBase(const RecordDecl *RD) const; 89 Record(const RecordDecl *, BaseList &&Bases, FieldList &&Fields, 97 const RecordDecl *Decl; 106 llvm::DenseMap<const RecordDecl *, Base *> BaseMap; 110 llvm::DenseMap<const RecordDecl *, Base *> VirtualBaseMap;
|
| H A D | Record.cpp | 14 Record::Record(const RecordDecl *Decl, BaseList &&SrcBases, in Record() 36 const Record::Base *Record::getBase(const RecordDecl *FD) const { in getBase() 42 const Record::Base *Record::getVirtualBase(const RecordDecl *FD) const { in getVirtualBase()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | DanglingHandleCheck.cpp | 25 handleFrom(const ast_matchers::internal::Matcher<RecordDecl> &IsAHandle, in handleFrom() 36 const ast_matchers::internal::Matcher<RecordDecl> &IsAHandle) { in handleFromTemporaryValue() 47 ast_matchers::internal::Matcher<RecordDecl> isASequence() { in isASequence() 52 ast_matchers::internal::Matcher<RecordDecl> isASet() { in isASet() 57 ast_matchers::internal::Matcher<RecordDecl> isAMap() { in isAMap() 63 const ast_matchers::internal::Matcher<RecordDecl> &IsAHandle) { in makeContainerMatcher()
|
| H A D | ForwardDeclarationNamespaceCheck.cpp | 50 if (const auto *RecordDecl = in check() local 52 StringRef DeclName = RecordDecl->getName(); in check() 53 if (RecordDecl->isThisDeclarationADefinition()) { in check() 54 DeclNameToDefinitions[DeclName].push_back(RecordDecl); in check() 60 DeclNameToDeclarations[DeclName].push_back(RecordDecl); in check()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenTypes.h | 38 class RecordDecl; variable 93 SmallVector<const RecordDecl *, 8> DeferredRecords; 156 const CGRecordLayout &getCGRecordLayout(const RecordDecl*); 271 std::unique_ptr<CGRecordLayout> ComputeRecordLayout(const RecordDecl *D, 276 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty, 282 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD); 299 bool isZeroInitializable(const RecordDecl *RD);
|
| H A D | CGDebugInfo.h | 296 Optional<TemplateArgs> GetTemplateArgs(const RecordDecl *) const; 301 llvm::DINodeArray CollectCXXTemplateParams(const RecordDecl *TS, 311 const RecordDecl *RD = nullptr, 318 const RecordDecl *RD = nullptr) { 326 const RecordDecl *RD); 342 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F, 561 void completeType(const RecordDecl *RD); 562 void completeRequiredType(const RecordDecl *RD); 563 void completeClassData(const RecordDecl *RD); 564 void completeClass(const RecordDecl *RD); [all …]
|
| H A D | CGRecordLayoutBuilder.cpp | 170 bool isZeroInitializable(const RecordDecl *RD) { in isZeroInitializable() 187 void accumulateBitFields(RecordDecl::field_iterator Field, 188 RecordDecl::field_iterator FieldEnd); 209 const RecordDecl *D; 373 for (RecordDecl::field_iterator Field = D->field_begin(), in accumulateFields() 377 RecordDecl::field_iterator Start = Field; in accumulateFields() 393 CGRecordLowering::accumulateBitFields(RecordDecl::field_iterator Field, in accumulateBitFields() 400 RecordDecl::field_iterator Run = FieldEnd; in accumulateBitFields() 951 RecordDecl::field_iterator it = D->field_begin(); in ComputeRecordLayout() 1021 const RecordDecl *RD = it->first->getParent(); in print() [all …]
|
| H A D | CodeGenTypes.cpp | 49 void CodeGenTypes::addRecordTypeName(const RecordDecl *RD, in addRecordTypeName() 130 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked); 137 isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT, in isSafeToConvert() 138 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument 179 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument 202 static bool isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT) { in isSafeToConvert() 206 llvm::SmallPtrSet<const RecordDecl*, 16> AlreadyChecked; in isSafeToConvert() 285 const RecordDecl *RD = cast<RecordDecl>(TD); in UpdateCompletedType() 908 CodeGenTypes::getCGRecordLayout(const RecordDecl *RD) { in getCGRecordLayout() 946 const RecordDecl *RD = RT->getDecl(); in isZeroInitializable() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | TypeTraits.cpp | 51 bool recordIsTriviallyDefaultConstructible(const RecordDecl &RecordDecl, in recordIsTriviallyDefaultConstructible() argument 53 const auto *ClassDecl = dyn_cast<CXXRecordDecl>(&RecordDecl); in recordIsTriviallyDefaultConstructible() 59 if (RecordDecl.isInvalidDecl()) in recordIsTriviallyDefaultConstructible()
|
| H A D | TypeTraits.h | 28 bool recordIsTriviallyDefaultConstructible(const RecordDecl &RecordDecl,
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | NoUncountedMembersChecker.cpp | 58 bool VisitRecordDecl(const RecordDecl *RD) { in checkASTDecl() 68 void visitRecordDecl(const RecordDecl *RD) const { in visitRecordDecl() 88 bool shouldSkipDecl(const RecordDecl *RD) const { in shouldSkipDecl() 124 const RecordDecl *ClassCXXRD) const { in reportBug()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTStructExtractor.cpp | 60 RecordDecl *struct_decl = nullptr; in ExtractFromFunctionDecl() 73 RecordDecl *candidate_record_decl = dyn_cast<RecordDecl>(candidate_decl); in ExtractFromFunctionDecl() 115 RecordDecl::decl_iterator decl_iterator; in ExtractFromTopLevelDecl()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PaddingChecker.cpp | 53 bool VisitRecordDecl(const RecordDecl *RD) { in checkASTDecl() 72 void visitRecord(const RecordDecl *RD, uint64_t PadMultiplier = 1) const { in visitRecord() 131 bool shouldSkipDecl(const RecordDecl *RD) const { in shouldSkipDecl() 190 static CharUnits calculateBaselinePad(const RecordDecl *RD, in calculateBaselinePad() 232 calculateOptimalPad(const RecordDecl *RD, const ASTContext &ASTContext, in calculateOptimalPad() 311 const RecordDecl *RD, CharUnits BaselinePad, CharUnits OptimalPad, in reportRecord()
|
| H A D | LLVMConventionsChecker.cpp | 65 static bool IsClangType(const RecordDecl *RD) { in IsClangType() 69 static bool IsClangDecl(const RecordDecl *RD) { in IsClangDecl() 73 static bool IsClangStmt(const RecordDecl *RD) { in IsClangStmt() 77 static bool IsClangAttr(const RecordDecl *RD) { in IsClangAttr() 250 const RecordDecl *RD = RT->getDecl()->getDefinition(); in Visit()
|
| H A D | CastSizeChecker.cpp | 56 const RecordDecl *RD = RT->getDecl(); in evenFlexibleArraySize() 57 RecordDecl::field_iterator Iter(RD->field_begin()); in evenFlexibleArraySize() 58 RecordDecl::field_iterator End(RD->field_end()); in evenFlexibleArraySize()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | Randstruct.h | 25 class RecordDecl; variable 29 bool randomizeStructureLayout(const ASTContext &Context, RecordDecl *RD,
|
| H A D | ASTStructuralEquivalence.h | 30 class RecordDecl; variable 118 findUntaggedStructOrUnionIndex(RecordDecl *Anon);
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | attr-swift_bridge.m | 4 // CHECK: RecordDecl {{.*}} struct S 10 // CHECK: RecordDecl {{.*}} struct S definition
|
| /llvm-project-15.0.7/polly/lib/External/isl/interface/ |
| H A D | generator.h | 84 RecordDecl *type; 151 generator(SourceManager &SM, set<RecordDecl *> &exported_types, 159 void add_subclass(RecordDecl *decl, const string &name, 161 void add_class(RecordDecl *decl);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-reorder-fields/ |
| H A D | ReorderFieldsAction.cpp | 36 static const RecordDecl *findDefinition(StringRef RecordName, in findDefinition() 50 return selectFirst<RecordDecl>("recordDecl", Results); in findDefinition() 57 getNewFieldsOrder(const RecordDecl *Definition, in getNewFieldsOrder() 125 const RecordDecl *Definition, ArrayRef<unsigned> NewFieldsOrder, in reorderFieldsInDefinition() 268 const RecordDecl *RD = findDefinition(RecordName, Context); in HandleTranslationUnit()
|
| /llvm-project-15.0.7/clang/include/clang/CodeGen/ |
| H A D | SwiftCallingConv.h | 64 void addTypedData(const RecordDecl *record, CharUnits begin); 65 void addTypedData(const RecordDecl *record, CharUnits begin, 165 bool mustPassRecordIndirectly(CodeGenModule &CGM, const RecordDecl *record);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-doc/ |
| H A D | Serialize.cpp | 217 static RecordDecl *getDeclForType(const QualType &T) { in getDeclForType() 218 if (const RecordDecl *D = T->getAsRecordDecl()) in getDeclForType() 274 static void parseFields(RecordInfo &I, const RecordDecl *D, bool PublicOnly, in parseFields() 288 } else if (const auto *N = dyn_cast<RecordDecl>(T)) { in parseFields() 315 } else if (const auto *N = dyn_cast<RecordDecl>(T)) { in parseParameters() 340 } else if (const RecordDecl *P = getDeclForType(B.getType())) in parseBases() 371 } else if (const auto *N = dyn_cast<RecordDecl>(DC)) in populateParentNamespaces() 385 if ((Namespaces.empty() && isa<RecordDecl>(D)) || in populateParentNamespaces() 425 else if (isa<RecordDecl>(T)) in populateFunctionInfo() 517 emitInfo(const RecordDecl *D, const FullComment *FC, int LineNumber, in emitInfo()
|
| /llvm-project-15.0.7/lldb/unittests/TestingSupport/Symbol/ |
| H A D | ClangTestUtils.h | 58 clang::RecordDecl *record_decl = nullptr; 66 llvm::cast<clang::RecordDecl>(ClangUtil::GetAsTagDecl(record_type)); in SourceASTWithRecord()
|