Home
last modified time | relevance | path

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

12345678

/openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp78 } else if (const auto *RecordDecl = dyn_cast<CXXRecordDecl>(FoundDecl)) { in Find() local
79 handleCXXRecordDecl(RecordDecl); in Find()
116 void handleCXXRecordDecl(const CXXRecordDecl *RecordDecl) { in handleCXXRecordDecl() argument
117 if (!RecordDecl->getDefinition()) { in handleCXXRecordDecl()
118 USRSet.insert(getUSRForDecl(RecordDecl)); in handleCXXRecordDecl()
121 RecordDecl = RecordDecl->getDefinition(); in handleCXXRecordDecl()
123 dyn_cast<ClassTemplateSpecializationDecl>(RecordDecl)) in handleCXXRecordDecl()
125 addUSRsOfCtorDtors(RecordDecl); in handleCXXRecordDecl()
157 const auto* RecordDecl = RD->getDefinition(); in addUSRsOfCtorDtors() local
160 if (!RecordDecl) { in addUSRsOfCtorDtors()
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DRecord.h36 const RecordDecl *Decl;
51 const RecordDecl *getDecl() const { return Decl; } in getDecl()
63 const Base *getBase(const RecordDecl *FD) const;
65 const Base *getVirtualBase(const RecordDecl *RD) const;
100 Record(const RecordDecl *, BaseList &&Bases, FieldList &&Fields,
108 const RecordDecl *Decl;
117 llvm::DenseMap<const RecordDecl *, Base *> BaseMap;
121 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
114 Record *getOrCreateRecord(const RecordDecl *RD);
206 llvm::DenseMap<const RecordDecl *, Record *> Records;
H A DDescriptor.h156 const RecordDecl *asRecordDecl() const { in asRecordDecl()
157 return dyn_cast_if_present<RecordDecl>(asDecl()); in asRecordDecl()
H A DProgram.cpp217 Record *Program::getOrCreateRecord(const RecordDecl *RD) { in getOrCreateRecord()
240 auto GetBaseDesc = [this](const RecordDecl *BD, Record *BR) -> Descriptor * { in getOrCreateRecord()
256 const RecordDecl *BD = Spec.getType()->castAs<RecordType>()->getDecl(); in getOrCreateRecord()
268 const RecordDecl *BD = Spec.getType()->castAs<RecordType>()->getDecl(); in getOrCreateRecord()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenTypes.h38 class RecordDecl; variable
93 SmallVector<const RecordDecl *, 8> DeferredRecords;
157 const CGRecordLayout &getCGRecordLayout(const RecordDecl*);
272 std::unique_ptr<CGRecordLayout> ComputeRecordLayout(const RecordDecl *D,
277 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
283 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
300 bool isZeroInitializable(const RecordDecl *RD);
H A DCGDebugInfo.h295 std::optional<TemplateArgs> GetTemplateArgs(const RecordDecl *) const;
300 llvm::DINodeArray CollectCXXTemplateParams(const RecordDecl *TS,
310 const RecordDecl *RD = nullptr,
317 const RecordDecl *RD = nullptr) {
325 const RecordDecl *RD);
334 const RecordDecl *RD);
338 llvm::DIType *RecordTy, const RecordDecl *RD);
341 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F,
560 void completeType(const RecordDecl *RD);
561 void completeRequiredType(const RecordDecl *RD);
[all …]
H A DCGRecordLayoutBuilder.cpp95 CGRecordLowering(CodeGenTypes &Types, const RecordDecl *D, bool Packed);
170 bool isZeroInitializable(const RecordDecl *RD) { in isZeroInitializable()
187 void accumulateBitFields(RecordDecl::field_iterator Field,
188 RecordDecl::field_iterator FieldEnd);
209 const RecordDecl *D;
230 CGRecordLowering::CGRecordLowering(CodeGenTypes &Types, const RecordDecl *D, in CGRecordLowering()
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()
394 RecordDecl::field_iterator FieldEnd) { in accumulateBitFields()
[all …]
H A DCodeGenTypes.cpp49 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()
844 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType()
908 CodeGenTypes::getCGRecordLayout(const RecordDecl *RD) { in getCGRecordLayout()
[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()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DNoUncountedMembersChecker.cpp59 bool VisitRecordDecl(const RecordDecl *RD) { in checkASTDecl()
69 void visitRecordDecl(const RecordDecl *RD) const { in visitRecordDecl()
89 bool shouldSkipDecl(const RecordDecl *RD) const { in shouldSkipDecl()
125 const RecordDecl *ClassCXXRD) const { in reportBug()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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
118 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;
/openbsd-src/gnu/llvm/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);
/openbsd-src/gnu/llvm/clang/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h43 bool VisitRecordDecl(const RecordDecl *Decl);
62 const RecordDecl::field_range Fields);
/openbsd-src/gnu/llvm/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()
1374 void ItaniumRecordLayoutBuilder::Layout(const RecordDecl *D) { in Layout()
1446 void ItaniumRecordLayoutBuilder::LayoutFields(const RecordDecl *D) { in LayoutFields()
2016 const RecordDecl *RD = RT->getDecl(); in LayoutField()
2122 if (const RecordDecl *RD = D->getParent()) { in LayoutField()
2187 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in FinishLayout()
2546 void layout(const RecordDecl *RD);
[all …]
H A DDecl.cpp987 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember()
1735 } else if (const auto *RD = dyn_cast<RecordDecl>(DC)) { in printNestedNameSpecifier()
4339 const RecordDecl *RD = RT->getDecl()->getDefinition(); in isZeroSize()
4366 const RecordDecl *RD = getParent()->getDefinition(); in getFieldIndex()
4694 RecordDecl::RecordDecl(Kind DK, TagKind TK, const ASTContext &C, in RecordDecl() function in RecordDecl
4697 RecordDecl *PrevDecl) in RecordDecl()
4717 RecordDecl *RecordDecl::Create(const ASTContext &C, TagKind TK, DeclContext *DC, in Create()
4719 IdentifierInfo *Id, RecordDecl* PrevDecl) { in Create()
4720 RecordDecl *R = new (C, DC) RecordDecl(Record, TK, C, DC, in Create()
4728 RecordDecl *RecordDecl::CreateDeserialized(const ASTContext &C, unsigned ID) { in CreateDeserialized()
[all …]
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCXType.cpp190 if (const auto *RecordDecl = Type->getAsCXXRecordDecl()) { in GetTemplateArguments() local
192 dyn_cast<ClassTemplateSpecializationDecl>(RecordDecl); in GetTemplateArguments()
987 static long long visitRecordForValidation(const RecordDecl *RD) { in visitRecordForValidation()
996 if (const RecordDecl *Child = ChildType->getDecl()) { in visitRecordForValidation()
1010 const RecordDecl *RD = in validateFieldParentType()
1011 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC)); in validateFieldParentType()
1045 const RecordDecl *RD = in clang_Type_getOffsetOf()
1046 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC)); in clang_Type_getOffsetOf()
1049 RecordDecl::lookup_result Res = RD->lookup(FieldName); in clang_Type_getOffsetOf()
1258 const RecordDecl *RD = in clang_Type_visitFields()
[all …]

12345678