Home
last modified time | relevance | path

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

12345678

/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp79 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 …]
/freebsd-14.2/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;
106 Record(const RecordDecl *, BaseList &&Bases, FieldList &&Fields,
114 const RecordDecl *Decl;
123 llvm::DenseMap<const RecordDecl *, Base *> BaseMap;
127 llvm::DenseMap<const RecordDecl *, Base *> VirtualBaseMap;
H A DRecord.cpp14 Record::Record(const RecordDecl *Decl, BaseList &&SrcBases, in Record()
36 const Record::Base *Record::getBase(const RecordDecl *FD) const { in getBase()
46 const RecordDecl *RD = T->getAs<RecordType>()->getDecl(); in getBase()
50 const Record::Base *Record::getVirtualBase(const RecordDecl *FD) const { in getVirtualBase()
H A DProgram.h29 class RecordDecl; variable
114 Record *getOrCreateRecord(const RecordDecl *RD);
208 llvm::DenseMap<const RecordDecl *, Record *> Records;
H A DProgram.cpp221 Record *Program::getOrCreateRecord(const RecordDecl *RD) { in getOrCreateRecord()
242 auto GetBaseDesc = [this](const RecordDecl *BD, Record *BR) -> Descriptor * { in getOrCreateRecord()
258 const RecordDecl *BD = Spec.getType()->castAs<RecordType>()->getDecl(); in getOrCreateRecord()
270 const RecordDecl *BD = Spec.getType()->castAs<RecordType>()->getDecl(); in getOrCreateRecord()
H A DDescriptor.h162 const RecordDecl *asRecordDecl() const { in asRecordDecl()
163 return dyn_cast_if_present<RecordDecl>(asDecl()); in asRecordDecl()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypes.h38 class RecordDecl; variable
152 const CGRecordLayout &getCGRecordLayout(const RecordDecl*);
265 std::unique_ptr<CGRecordLayout> ComputeRecordLayout(const RecordDecl *D,
270 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
276 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
293 bool isZeroInitializable(const RecordDecl *RD);
H A DCGDebugInfo.h313 llvm::DINodeArray CollectCXXTemplateParams(const RecordDecl *TS,
323 const RecordDecl *RD = nullptr,
330 const RecordDecl *RD = nullptr) {
338 const RecordDecl *RD);
363 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F,
581 void completeType(const RecordDecl *RD);
582 void completeRequiredType(const RecordDecl *RD);
583 void completeClassData(const RecordDecl *RD);
584 void completeClass(const RecordDecl *RD);
742 CollectAnonRecordDecls(const RecordDecl *RD, llvm::DIFile *Unit,
[all …]
H A DCGRecordLayoutBuilder.cpp170 bool isZeroInitializable(const RecordDecl *RD) { in isZeroInitializable()
187 void accumulateBitFields(RecordDecl::field_iterator Field,
188 RecordDecl::field_iterator FieldEnd);
209 const RecordDecl *D;
379 for (RecordDecl::field_iterator Field = D->field_begin(), in accumulateFields()
383 RecordDecl::field_iterator Start = Field; in accumulateFields()
404 CGRecordLowering::accumulateBitFields(RecordDecl::field_iterator Field, in accumulateBitFields()
411 RecordDecl::field_iterator Run = FieldEnd; in accumulateBitFields()
963 RecordDecl::field_iterator it = D->field_begin(); in ComputeRecordLayout()
1033 const RecordDecl *RD = it->first->getParent(); in print()
[all …]
H A DCodeGenTypes.cpp50 void CodeGenTypes::addRecordTypeName(const RecordDecl *RD, in addRecordTypeName()
188 const RecordDecl *RD = cast<RecordDecl>(TD); in UpdateCompletedType()
731 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType()
774 CodeGenTypes::getCGRecordLayout(const RecordDecl *RD) { in getCGRecordLayout()
812 const RecordDecl *RD = RT->getDecl(); in isZeroInitializable()
824 bool CodeGenTypes::isZeroInitializable(const RecordDecl *RD) { in isZeroInitializable()
H A DCodeGenTBAA.cpp101 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in isValidBaseType()
287 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in CollectFields()
299 for (RecordDecl::field_iterator i = RD->field_begin(), in CollectFields()
339 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in getBaseTypeInfoHelper()
/freebsd-14.2/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-14.2/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.h119 void SetRecordLayout(clang::RecordDecl *decl, const LayoutInfo &layout);
122 const clang::RecordDecl *record_decl, uint64_t &bit_size,
453 typedef llvm::DenseMap<const clang::RecordDecl *, LayoutInfo>
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DRandstruct.h25 class RecordDecl; variable
29 bool randomizeStructureLayout(const ASTContext &Context, RecordDecl *RD,
H A DASTStructuralEquivalence.h30 class RecordDecl; variable
122 findUntaggedStructOrUnionIndex(RecordDecl *Anon);
H A DASTMutationListener.h36 class RecordDecl; variable
148 const RecordDecl *Record) {} in AddedAttributeToRecord()
H A DODRDiagsEmitter.h51 bool diagnoseMismatch(const RecordDecl *FirstRecord,
52 const RecordDecl *SecondRecord) const;
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/AST/
H A DRecordLayoutBuilder.cpp710 void Layout(const RecordDecl *D);
714 void LayoutFields(const RecordDecl *D);
1316 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in InitializeLayout()
1355 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) in InitializeLayout()
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()
2562 void layout(const RecordDecl *RD);
2565 void initializeLayout(const RecordDecl *RD);
2579 void layoutFields(const RecordDecl *RD);
[all …]
H A DDecl.cpp4936 RecordDecl::RecordDecl(Kind DK, TagKind TK, const ASTContext &C, in RecordDecl() function in RecordDecl
4959 RecordDecl *RecordDecl::Create(const ASTContext &C, TagKind TK, DeclContext *DC, in Create()
4962 RecordDecl *R = new (C, DC) RecordDecl(Record, TK, C, DC, in Create()
4970 RecordDecl *RecordDecl::CreateDeserialized(const ASTContext &C, unsigned ID) { in CreateDeserialized()
4971 RecordDecl *R = new (C, ID) in CreateDeserialized()
4983 bool RecordDecl::isLambda() const { in isLambda()
4989 bool RecordDecl::isCapturedRecord() const { in isCapturedRecord()
4993 void RecordDecl::setCapturedRecord() { in setCapturedRecord()
5012 RecordDecl::field_iterator RecordDecl::field_begin() const { in field_begin()
5024 void RecordDecl::completeDefinition() { in completeDefinition()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DMips.cpp147 const RecordDecl *RD = RT->getDecl(); in HandleAggregates()
157 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in HandleAggregates()
250 const RecordDecl *RD = RT->getDecl(); in returnAggregateInRegs()
264 RecordDecl::field_iterator b = RD->field_begin(), e = RD->field_end(); in returnAggregateInRegs()

12345678