/openbsd/gnu/llvm/clang/lib/Tooling/Refactoring/Rename/ |
H A D | USRFindingAction.cpp | 79 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 D | Record.h | 36 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 D | Record.cpp | 14 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 D | Program.h | 29 class RecordDecl; variable 114 Record *getOrCreateRecord(const RecordDecl *RD); 206 llvm::DenseMap<const RecordDecl *, Record *> Records;
|
H A D | Descriptor.h | 156 const RecordDecl *asRecordDecl() const { in asRecordDecl() 157 return dyn_cast_if_present<RecordDecl>(asDecl()); in asRecordDecl()
|
H A D | Program.cpp | 217 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 D | CodeGenTypes.h | 38 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 D | CGDebugInfo.h | 300 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 D | CGRecordLayoutBuilder.cpp | 170 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 D | CodeGenTypes.cpp | 49 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 D | CodeGenTBAA.cpp | 101 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 D | NoUncountedMembersChecker.cpp | 59 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 D | ASTStructExtractor.cpp | 60 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 D | PaddingChecker.cpp | 53 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 D | LLVMConventionsChecker.cpp | 65 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 D | CastSizeChecker.cpp | 56 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 D | Randstruct.h | 25 class RecordDecl; variable 29 bool randomizeStructureLayout(const ASTContext &Context, RecordDecl *RD,
|
H A D | ASTStructuralEquivalence.h | 30 class RecordDecl; variable 118 findUntaggedStructOrUnionIndex(RecordDecl *Anon);
|
H A D | ASTMutationListener.h | 36 class RecordDecl; variable 148 const RecordDecl *Record) {} in AddedAttributeToRecord()
|
H A D | ODRDiagsEmitter.h | 51 bool diagnoseMismatch(const RecordDecl *FirstRecord, 52 const RecordDecl *SecondRecord) const;
|
/openbsd/gnu/llvm/clang/include/clang/CodeGen/ |
H A D | SwiftCallingConv.h | 64 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 D | ExtractAPIVisitor.h | 43 bool VisitRecordDecl(const RecordDecl *Decl); 62 const RecordDecl::field_range Fields);
|
/openbsd/gnu/llvm/clang/lib/AST/ |
H A D | RecordLayoutBuilder.cpp | 710 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 D | Decl.cpp | 4694 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 D | CXType.cpp | 190 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 …]
|