| /freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRFindingAction.cpp | 71 } else if (const auto *RecordDecl = dyn_cast<CXXRecordDecl>(FoundDecl)) { in Find() local 72 handleCXXRecordDecl(RecordDecl); in Find() 109 void handleCXXRecordDecl(const CXXRecordDecl *RecordDecl) { in handleCXXRecordDecl() argument 110 if (!RecordDecl->getDefinition()) { in handleCXXRecordDecl() 111 USRSet.insert(getUSRForDecl(RecordDecl)); in handleCXXRecordDecl() 114 RecordDecl = RecordDecl->getDefinition(); in handleCXXRecordDecl() 116 dyn_cast<ClassTemplateSpecializationDecl>(RecordDecl)) in handleCXXRecordDecl() 118 addUSRsOfCtorDtors(RecordDecl); in handleCXXRecordDecl() 150 const auto* RecordDecl = RD->getDefinition(); in addUSRsOfCtorDtors() local 153 if (!RecordDecl) { in addUSRsOfCtorDtors() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Record.h | 38 const RecordDecl *Decl; 53 const RecordDecl *getDecl() const { return Decl; } in getDecl() 67 const Base *getBase(const RecordDecl *FD) const; 71 const Base *getVirtualBase(const RecordDecl *RD) const; 112 Record(const RecordDecl *, BaseList &&Bases, FieldList &&Fields, 120 const RecordDecl *Decl; 129 llvm::DenseMap<const RecordDecl *, const Base *> BaseMap; 133 llvm::DenseMap<const RecordDecl *, Base *> VirtualBaseMap;
|
| H A D | Record.cpp | 15 Record::Record(const RecordDecl *Decl, BaseList &&SrcBases, in Record() 46 const Record::Base *Record::getBase(const RecordDecl *FD) const { in getBase() 54 const RecordDecl *RD = RT->getDecl(); in getBase() 60 const Record::Base *Record::getVirtualBase(const RecordDecl *FD) const { in getVirtualBase()
|
| H A D | MemberPointer.cpp | 40 const RecordDecl *FieldParent = FD->getParent(); in toPointer() 47 if (const RecordDecl *BaseDecl = Base.getDeclPtr().getRecord()->getDecl(); in toPointer() 56 const RecordDecl *FieldParent = F->getParent(); in toPointer()
|
| H A D | Context.h | 110 unsigned collectBaseOffset(const RecordDecl *BaseDecl, 111 const RecordDecl *DerivedDecl) const; 113 const Record *getRecord(const RecordDecl *D) const;
|
| H A D | Program.h | 29 class RecordDecl; variable 115 Record *getOrCreateRecord(const RecordDecl *RD); 223 llvm::DenseMap<const RecordDecl *, Record *> Records;
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenTypes.h | 72 llvm::SmallVector<const clang::RecordDecl *, 8> deferredRecords; 113 mlir::Type convertRecordDeclType(const clang::RecordDecl *recordDecl); 116 computeRecordLayout(const clang::RecordDecl *rd, cir::RecordType *ty); 118 std::string getRecordTypeName(const clang::RecordDecl *, 121 const CIRGenRecordLayout &getCIRGenRecordLayout(const clang::RecordDecl *rd); 167 bool isZeroInitializable(const RecordDecl *rd);
|
| H A D | CIRGenRecordLayoutBuilder.cpp | 62 CIRRecordLowering(CIRGenTypes &cirGenTypes, const RecordDecl *recordDecl, 86 RecordDecl::field_iterator 87 accumulateBitFields(RecordDecl::field_iterator field, 88 RecordDecl::field_iterator fieldEnd); 113 bool isZeroInitializable(const RecordDecl *rd) { in isZeroInitializable() 181 const RecordDecl *recordDecl; 208 const RecordDecl *recordDecl, bool packed) in CIRRecordLowering() 301 RecordDecl::field_iterator 302 CIRRecordLowering::accumulateBitFields(RecordDecl::field_iterator field, in accumulateBitFields() 303 RecordDecl::field_iterator fieldEnd) { in accumulateBitFields() [all …]
|
| H A D | CIRGenTypes.cpp | 94 std::string CIRGenTypes::getRecordTypeName(const clang::RecordDecl *recordDecl, in getRecordTypeName() 128 llvm::SmallPtrSetImpl<const RecordDecl *> &alreadyChecked); 134 isSafeToConvert(const RecordDecl *rd, CIRGenTypes &cgt, in isSafeToConvert() 135 llvm::SmallPtrSetImpl<const RecordDecl *> &alreadyChecked) { in isSafeToConvert() 178 llvm::SmallPtrSetImpl<const RecordDecl *> &alreadyChecked) { in isSafeToConvert() 200 static bool isSafeToConvert(const RecordDecl *rd, CIRGenTypes &cgt) { in isSafeToConvert() 205 llvm::SmallPtrSet<const RecordDecl *, 16> alreadyChecked; in isSafeToConvert() 210 mlir::Type CIRGenTypes::convertRecordDeclType(const clang::RecordDecl *rd) { in convertRecordDeclType() 518 CIRGenTypes::getCIRGenRecordLayout(const RecordDecl *rd) { in getCIRGenRecordLayout() 551 const RecordDecl *rd = rt->getDecl(); in isZeroInitializable() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenTypes.h | 38 class RecordDecl; variable 169 const CGRecordLayout &getCGRecordLayout(const RecordDecl*); 289 std::unique_ptr<CGRecordLayout> ComputeRecordLayout(const RecordDecl *D, 294 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty, 300 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD); 317 bool isZeroInitializable(const RecordDecl *RD);
|
| H A D | CGRecordLayoutBuilder.cpp | 95 CGRecordLowering(CodeGenTypes &Types, const RecordDecl *D, bool Packed); 170 bool isZeroInitializable(const RecordDecl *RD) const { in isZeroInitializable() 187 RecordDecl::field_iterator 189 RecordDecl::field_iterator Field, 190 RecordDecl::field_iterator FieldEnd); 211 const RecordDecl *D; 232 CGRecordLowering::CGRecordLowering(CodeGenTypes &Types, const RecordDecl *D, in CGRecordLowering() 381 for (RecordDecl::field_iterator Field = D->field_begin(), in accumulateFields() 409 RecordDecl::field_iterator 411 RecordDecl::field_iterator Field, in accumulateBitFields() [all …]
|
| H A D | CGDebugInfo.h | 338 std::optional<TemplateArgs> GetTemplateArgs(const RecordDecl *) const; 343 llvm::DINodeArray CollectCXXTemplateParams(const RecordDecl *TS, 353 const RecordDecl *RD = nullptr, 360 const RecordDecl *RD = nullptr) { 368 const RecordDecl *RD); 374 llvm::ArrayRef<llvm::Metadata *> PreviousFieldsDI, const RecordDecl *RD); 391 const RecordDecl *RD); 395 llvm::DIType *RecordTy, const RecordDecl *RD); 398 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F, 622 void completeType(const RecordDecl *RD); [all …]
|
| H A D | ABIInfoImpl.cpp | 141 const RecordDecl *UD = UT->getDecl(); in useFirstFieldIfTransparentUnion() 291 const RecordDecl *RD = RT->getDecl(); in isEmptyRecord() 323 const RecordDecl *RD = RT->getDecl(); in isEmptyRecordForLayout() 347 const RecordDecl *RD = RT->getDecl(); in isSingleElementStruct() 466 const RecordDecl *RD = RT->getDecl(); in isRecordWithSIMDVectorType()
|
| /freebsd/contrib/llvm-project/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()
|
| H A D | ClangASTImporter.cpp | 599 DeclFromUser<RecordDecl> origin_base_record( in ExtractBaseOffsets() 628 const RecordDecl *record, uint64_t &size, uint64_t &alignment, in importRecordLayoutFromOrigin() 645 DeclFromParser<const RecordDecl> parser_record(record); in importRecordLayoutFromOrigin() 646 DeclFromUser<const RecordDecl> origin_record(parser_record.GetOrigin(*this)); in importRecordLayoutFromOrigin() 657 const_cast<RecordDecl *>(origin_record.decl)); in importRecordLayoutFromOrigin() 659 clang::RecordDecl *definition = origin_record.decl->getDefinition(); in importRecordLayoutFromOrigin() 668 for (RecordDecl::field_iterator fi = origin_record->field_begin(), in importRecordLayoutFromOrigin() 710 for (RecordDecl::field_iterator fi = record->field_begin(), in importRecordLayoutFromOrigin() 731 DeclFromParser<RecordDecl> base_record(base_record_type->getDecl()); in importRecordLayoutFromOrigin() 753 const clang::RecordDecl *record_decl, uint64_t &bit_size, in LayoutRecordType() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PaddingChecker.cpp | 51 bool VisitRecordDecl(RecordDecl *RD) override { in checkASTDecl() 70 void visitRecord(const RecordDecl *RD, uint64_t PadMultiplier = 1) const { in visitRecord() 129 bool shouldSkipDecl(const RecordDecl *RD) const { in shouldSkipDecl() 188 static CharUnits calculateBaselinePad(const RecordDecl *RD, in calculateBaselinePad() 230 calculateOptimalPad(const RecordDecl *RD, const ASTContext &ASTContext, in calculateOptimalPad() 309 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()
|
| /freebsd/contrib/llvm-project/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 131 static UnsignedOrNone findUntaggedStructOrUnionIndex(RecordDecl *Anon);
|
| H A D | ASTMutationListener.h | 37 class RecordDecl; variable 150 const RecordDecl *Record) {} in AddedAttributeToRecord()
|
| /freebsd/contrib/llvm-project/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);
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaBPF.cpp | 175 void SemaBPF::handlePreserveAIRecord(RecordDecl *RD) { in handlePreserveAIRecord() 182 if (auto *Rec = dyn_cast<RecordDecl>(D)) in handlePreserveAIRecord() 188 auto *Rec = cast<RecordDecl>(D); in handlePreserveAccessIndexAttr()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | RawPtrRefMemberChecker.cpp | 67 bool VisitRecordDecl(const RecordDecl *RD) override { in checkASTDecl() 84 void visitRecordDecl(const RecordDecl *RD) const { in visitRecordDecl() 92 void visitMember(const FieldDecl *Member, const RecordDecl *RD) const { in visitMember() 238 bool shouldSkipDecl(const RecordDecl *RD) const { in shouldSkipDecl()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | RecordLayoutBuilder.cpp | 705 void Layout(const RecordDecl *D); 709 void LayoutFields(const RecordDecl *D); 1312 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in InitializeLayout() 1351 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) in InitializeLayout() 1370 void ItaniumRecordLayoutBuilder::Layout(const RecordDecl *D) { in Layout() 1442 void ItaniumRecordLayoutBuilder::LayoutFields(const RecordDecl *D) { in LayoutFields() 2015 const RecordDecl *RD = RT->getDecl(); in LayoutField() 2121 if (const RecordDecl *RD = D->getParent()) { in LayoutField() 2186 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in FinishLayout() 2567 void layout(const RecordDecl *RD); [all …]
|