Home
last modified time | relevance | path

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

12345678

/openbsd/gnu/llvm/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 …]
/openbsd/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/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.h300 llvm::DINodeArray CollectCXXTemplateParams(const RecordDecl *TS,
310 const RecordDecl *RD = nullptr,
317 const RecordDecl *RD = nullptr) {
325 const RecordDecl *RD);
341 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F,
560 void completeType(const RecordDecl *RD);
561 void completeRequiredType(const RecordDecl *RD);
562 void completeClassData(const RecordDecl *RD);
563 void completeClass(const RecordDecl *RD);
721 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;
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.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()
908 CodeGenTypes::getCGRecordLayout(const RecordDecl *RD) { in getCGRecordLayout()
946 const RecordDecl *RD = RT->getDecl(); in isZeroInitializable()
[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/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/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/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/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/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/gnu/llvm/clang/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h43 bool VisitRecordDecl(const RecordDecl *Decl);
62 const RecordDecl::field_range Fields);
/openbsd/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()
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);
2549 void initializeLayout(const RecordDecl *RD);
2563 void layoutFields(const RecordDecl *RD);
[all …]
H A DDecl.cpp4694 RecordDecl::RecordDecl(Kind DK, TagKind TK, const ASTContext &C, in RecordDecl() function in RecordDecl
4717 RecordDecl *RecordDecl::Create(const ASTContext &C, TagKind TK, DeclContext *DC, 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()
4729 RecordDecl *R = in CreateDeserialized()
4741 bool RecordDecl::isLambda() const { in isLambda()
4747 bool RecordDecl::isCapturedRecord() const { in isCapturedRecord()
4751 void RecordDecl::setCapturedRecord() { in setCapturedRecord()
4770 RecordDecl::field_iterator RecordDecl::field_begin() const { in field_begin()
4779 void RecordDecl::completeDefinition() { in completeDefinition()
[all …]
/openbsd/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