Home
last modified time | relevance | path

Searched refs:RecordDecl (Results 1 – 25 of 186) sorted by relevance

12345678

/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DRecord.h37 const RecordDecl *Decl;
52 const RecordDecl *getDecl() const { return Decl; } in getDecl()
64 const Base *getBase(const RecordDecl *FD) const;
68 const Base *getVirtualBase(const RecordDecl *RD) const;
109 Record(const RecordDecl *, BaseList &&Bases, FieldList &&Fields,
117 const RecordDecl *Decl;
126 llvm::DenseMap<const RecordDecl *, const Base *> BaseMap;
130 llvm::DenseMap<const RecordDecl *, Base *> VirtualBaseMap;
H A DRecord.cpp15 Record::Record(const RecordDecl *Decl, BaseList &&SrcBases, in Record()
45 const Record::Base *Record::getBase(const RecordDecl *FD) const { in getBase()
53 const RecordDecl *RD = RT->getDecl(); in getBase()
59 const Record::Base *Record::getVirtualBase(const RecordDecl *FD) const { in getVirtualBase()
H A DContext.h107 unsigned collectBaseOffset(const RecordDecl *BaseDecl,
108 const RecordDecl *DerivedDecl) const;
110 const Record *getRecord(const RecordDecl *D) const;
H A DContext.cpp276 unsigned Context::collectBaseOffset(const RecordDecl *BaseDecl, in collectBaseOffset()
277 const RecordDecl *DerivedDecl) const { in collectBaseOffset()
281 const RecordDecl *CurDecl = DerivedDecl; in collectBaseOffset()
307 const Record *Context::getRecord(const RecordDecl *D) const { in getRecord()
H A DMemberPointer.cpp38 const RecordDecl *FieldParent = FD->getParent(); in toPointer()
48 if (const RecordDecl *BaseDecl = Base.getDeclPtr().getRecord()->getDecl(); in toPointer()
H A DProgram.h29 class RecordDecl; variable
115 Record *getOrCreateRecord(const RecordDecl *RD);
210 llvm::DenseMap<const RecordDecl *, Record *> Records;
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypes.h38 class RecordDecl; variable
169 const CGRecordLayout &getCGRecordLayout(const RecordDecl*);
282 std::unique_ptr<CGRecordLayout> ComputeRecordLayout(const RecordDecl *D,
287 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
293 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
310 bool isZeroInitializable(const RecordDecl *RD);
H A DCGRecordLayoutBuilder.cpp95 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 DCGDebugInfo.h313 std::optional<TemplateArgs> GetTemplateArgs(const RecordDecl *) const;
318 llvm::DINodeArray CollectCXXTemplateParams(const RecordDecl *TS,
328 const RecordDecl *RD = nullptr,
335 const RecordDecl *RD = nullptr) {
343 const RecordDecl *RD);
349 llvm::ArrayRef<llvm::Metadata *> PreviousFieldsDI, const RecordDecl *RD);
366 const RecordDecl *RD);
370 llvm::DIType *RecordTy, const RecordDecl *RD);
373 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F,
597 void completeType(const RecordDecl *RD);
[all …]
H A DABIInfoImpl.cpp147 const RecordDecl *UD = UT->getDecl(); in useFirstFieldIfTransparentUnion()
297 const RecordDecl *RD = RT->getDecl(); in isEmptyRecord()
329 const RecordDecl *RD = RT->getDecl(); in isEmptyRecordForLayout()
353 const RecordDecl *RD = RT->getDecl(); in isSingleElementStruct()
472 const RecordDecl *RD = RT->getDecl(); in isRecordWithSIMDVectorType()
H A DCodeGenTypes.cpp51 void CodeGenTypes::addRecordTypeName(const RecordDecl *RD, in addRecordTypeName()
244 const RecordDecl *RD = cast<RecordDecl>(TD); in UpdateCompletedType()
792 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType()
835 CodeGenTypes::getCGRecordLayout(const RecordDecl *RD) { in getCGRecordLayout()
873 const RecordDecl *RD = RT->getDecl(); in isZeroInitializable()
885 bool CodeGenTypes::isZeroInitializable(const RecordDecl *RD) { in isZeroInitializable()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DNoUncountedMembersChecker.cpp58 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()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTStructExtractor.cpp60 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 DClangASTImporter.cpp292 RecordDecl *from_record_decl = dyn_cast<RecordDecl>(from); in NewDeclImported()
600 DeclFromUser<RecordDecl> origin_base_record( in ExtractBaseOffsets()
629 const RecordDecl *record, uint64_t &size, uint64_t &alignment, in importRecordLayoutFromOrigin()
646 DeclFromParser<const RecordDecl> parser_record(record); in importRecordLayoutFromOrigin()
647 DeclFromUser<const RecordDecl> origin_record(parser_record.GetOrigin(*this)); in importRecordLayoutFromOrigin()
658 const_cast<RecordDecl *>(origin_record.decl)); in importRecordLayoutFromOrigin()
660 clang::RecordDecl *definition = origin_record.decl->getDefinition(); in importRecordLayoutFromOrigin()
669 for (RecordDecl::field_iterator fi = origin_record->field_begin(), in importRecordLayoutFromOrigin()
711 for (RecordDecl::field_iterator fi = record->field_begin(), in importRecordLayoutFromOrigin()
732 DeclFromParser<RecordDecl> base_record(base_record_type->getDecl()); in importRecordLayoutFromOrigin()
[all …]
H A DClangASTImporter.h120 void SetRecordLayout(clang::RecordDecl *decl, const LayoutInfo &layout);
123 const clang::RecordDecl *record_decl, uint64_t &bit_size,
145 const clang::RecordDecl *record, uint64_t &size, uint64_t &alignment,
475 typedef llvm::DenseMap<const clang::RecordDecl *, LayoutInfo>
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp53 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 DLLVMConventionsChecker.cpp65 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 DCastSizeChecker.cpp56 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 DRandstruct.h25 class RecordDecl; variable
29 bool randomizeStructureLayout(const ASTContext &Context, RecordDecl *RD,
H A DASTMutationListener.h37 class RecordDecl; variable
150 const RecordDecl *Record) {} in AddedAttributeToRecord()
H A DODRDiagsEmitter.h51 bool diagnoseMismatch(const RecordDecl *FirstRecord,
52 const RecordDecl *SecondRecord) const;
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DSwiftCallingConv.h64 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 DSemaBPF.cpp175 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/AST/
H A DRecordLayoutBuilder.cpp717 void Layout(const RecordDecl *D);
721 void LayoutFields(const RecordDecl *D);
1323 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in InitializeLayout()
1362 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) in InitializeLayout()
1381 void ItaniumRecordLayoutBuilder::Layout(const RecordDecl *D) { in Layout()
1453 void ItaniumRecordLayoutBuilder::LayoutFields(const RecordDecl *D) { in LayoutFields()
2022 const RecordDecl *RD = RT->getDecl(); in LayoutField()
2128 if (const RecordDecl *RD = D->getParent()) { in LayoutField()
2193 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in FinishLayout()
2574 void layout(const RecordDecl *RD);
[all …]
H A DDecl.cpp958 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember()
1766 } else if (const auto *RD = dyn_cast<RecordDecl>(DC)) { in printNestedNameSpecifier()
4608 const RecordDecl *RD = RT->getDecl()->getDefinition(); in isZeroSize()
4644 const RecordDecl *RD = getParent()->getDefinition(); in getFieldIndex()
4984 RecordDecl::RecordDecl(Kind DK, TagKind TK, const ASTContext &C, in RecordDecl() function in RecordDecl
4987 RecordDecl *PrevDecl) in RecordDecl()
5007 RecordDecl *RecordDecl::Create(const ASTContext &C, TagKind TK, DeclContext *DC, in Create()
5009 IdentifierInfo *Id, RecordDecl* PrevDecl) { in Create()
5010 RecordDecl *R = new (C, DC) RecordDecl(Record, TK, C, DC, in Create()
5018 RecordDecl *RecordDecl::CreateDeserialized(const ASTContext &C, in CreateDeserialized()
[all …]

12345678