Home
last modified time | relevance | path

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

1234567

/freebsd-13.1/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()
159 const auto* RecordDecl = RD->getDefinition(); in addUSRsOfCtorDtors() local
162 if (!RecordDecl) { in addUSRsOfCtorDtors()
167 for (const auto *CtorDecl : RecordDecl->ctors()) in addUSRsOfCtorDtors()
170 if (RecordDecl->hasUserDeclaredConstructor()) in addUSRsOfCtorDtors()
171 for (const auto *D : RecordDecl->decls()) in addUSRsOfCtorDtors()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DRecord.h34 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 DRecord.cpp14 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()
H A DProgram.h29 class RecordDecl; variable
98 Record *getOrCreateRecord(const RecordDecl *RD);
182 llvm::DenseMap<const RecordDecl *, Record *> Records;
H A DDescriptor.h123 const RecordDecl *asRecordDecl() const { in asRecordDecl()
124 return dyn_cast_or_null<RecordDecl>(asDecl()); in asRecordDecl()
H A DProgram.cpp207 Record *Program::getOrCreateRecord(const RecordDecl *RD) { in getOrCreateRecord()
225 auto GetBaseDesc = [this](const RecordDecl *BD, Record *BR) -> Descriptor * { in getOrCreateRecord()
241 const RecordDecl *BD = Spec.getType()->castAs<RecordType>()->getDecl(); in getOrCreateRecord()
253 const RecordDecl *BD = Spec.getType()->castAs<RecordType>()->getDecl(); in getOrCreateRecord()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypes.h43 class RecordDecl; variable
98 SmallVector<const RecordDecl *, 8> DeferredRecords;
160 const CGRecordLayout &getCGRecordLayout(const RecordDecl*);
275 std::unique_ptr<CGRecordLayout> ComputeRecordLayout(const RecordDecl *D,
280 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
286 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
303 bool isZeroInitializable(const RecordDecl *RD);
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;
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 DCodeGenTypes.cpp48 void CodeGenTypes::addRecordTypeName(const RecordDecl *RD, in addRecordTypeName()
121 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked);
128 isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT, in isSafeToConvert()
129 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument
170 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument
193 static bool isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT) { in isSafeToConvert()
197 llvm::SmallPtrSet<const RecordDecl*, 16> AlreadyChecked; in isSafeToConvert()
276 const RecordDecl *RD = cast<RecordDecl>(TD); in UpdateCompletedType()
874 CodeGenTypes::getCGRecordLayout(const RecordDecl *RD) { in getCGRecordLayout()
912 const RecordDecl *RD = RT->getDecl(); in isZeroInitializable()
[all …]
H A DCGDebugInfo.h299 const RecordDecl *RD = nullptr);
305 const RecordDecl *RD = nullptr) {
313 const RecordDecl *RD);
322 const RecordDecl *RD);
329 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F,
534 void completeType(const RecordDecl *RD);
535 void completeRequiredType(const RecordDecl *RD);
536 void completeClassData(const RecordDecl *RD);
537 void completeClass(const RecordDecl *RD);
687 CollectAnonRecordDecls(const RecordDecl *RD, llvm::DIFile *Unit,
[all …]
H A DCodeGenTBAA.cpp101 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in isValidBaseType()
284 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in CollectFields()
296 for (RecordDecl::field_iterator i = RD->field_begin(), in CollectFields()
336 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in getBaseTypeInfoHelper()
/freebsd-13.1/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-13.1/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-13.1/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-13.1/contrib/llvm-project/clang/include/clang/CodeGen/
H A DSwiftCallingConv.h65 void addTypedData(const RecordDecl *record, CharUnits begin);
66 void addTypedData(const RecordDecl *record, CharUnits begin,
166 bool mustPassRecordIndirectly(CodeGenModule &CGM, const RecordDecl *record);
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DASTStructuralEquivalence.h30 class RecordDecl; variable
118 findUntaggedStructOrUnionIndex(RecordDecl *Anon);
H A DASTMutationListener.h36 class RecordDecl; variable
148 const RecordDecl *Record) {} in AddedAttributeToRecord()
H A DDecl.h69 class RecordDecl; variable
3014 const RecordDecl *getParent() const { in getParent()
3015 return dyn_cast<RecordDecl>(getDeclContext()); in getParent()
3018 RecordDecl *getParent() { in getParent()
3846 class RecordDecl : public TagDecl {
3885 RecordDecl *getPreviousDecl() { in getPreviousDecl()
3886 return cast_or_null<RecordDecl>( in getPreviousDecl()
3889 const RecordDecl *getPreviousDecl() const { in getPreviousDecl()
3893 RecordDecl *getMostRecentDecl() { in getMostRecentDecl()
3896 const RecordDecl *getMostRecentDecl() const { in getMostRecentDecl()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DRecordLayoutBuilder.cpp710 void Layout(const RecordDecl *D);
714 void LayoutFields(const RecordDecl *D);
1314 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in InitializeLayout()
1353 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) in InitializeLayout()
1991 const RecordDecl *RD = RT->getDecl(); in LayoutField()
2136 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in FinishLayout()
2495 void layout(const RecordDecl *RD);
2498 void initializeLayout(const RecordDecl *RD);
2512 void layoutFields(const RecordDecl *RD);
2519 void finalizeLayout(const RecordDecl *RD);
[all …]
H A DDecl.cpp4490 RecordDecl::RecordDecl(Kind DK, TagKind TK, const ASTContext &C, in RecordDecl() function in RecordDecl
4493 RecordDecl *PrevDecl) in RecordDecl()
4511 RecordDecl *RecordDecl::Create(const ASTContext &C, TagKind TK, DeclContext *DC, in Create()
4514 RecordDecl *R = new (C, DC) RecordDecl(Record, TK, C, DC, in Create()
4522 RecordDecl *RecordDecl::CreateDeserialized(const ASTContext &C, unsigned ID) { in CreateDeserialized()
4523 RecordDecl *R = in CreateDeserialized()
4535 bool RecordDecl::isLambda() const { in isLambda()
4541 bool RecordDecl::isCapturedRecord() const { in isCapturedRecord()
4545 void RecordDecl::setCapturedRecord() { in setCapturedRecord()
4564 RecordDecl::field_iterator RecordDecl::field_begin() const { in field_begin()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Frontend/
H A DLayoutOverrideSource.h50 layoutRecordType(const RecordDecl *Record,
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DLayoutOverrideSource.cpp155 LayoutOverrideSource::layoutRecordType(const RecordDecl *Record, in layoutRecordType()
172 for (RecordDecl::field_iterator F = Record->field_begin(), in layoutRecordType()

1234567