/external/clang/lib/CodeGen/ |
D | CodeGenTypes.h | 47 class RecordDecl; variable 162 SmallVector<const RecordDecl *, 8> DeferredRecords; 205 const CGRecordLayout &getCGRecordLayout(const RecordDecl*); 289 CGRecordLayout *ComputeRecordLayout(const RecordDecl *D, 294 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty, 300 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
|
D | CGRecordLayoutBuilder.cpp | 96 CGRecordLowering(CodeGenTypes &Types, const RecordDecl *D, bool Packed); 147 bool isZeroInitializable(const RecordDecl *RD) { in isZeroInitializable() 164 void accumulateBitFields(RecordDecl::field_iterator Field, 165 RecordDecl::field_iterator FieldEnd); 185 const RecordDecl *D; 206 CGRecordLowering::CGRecordLowering(CodeGenTypes &Types, const RecordDecl *D, … in CGRecordLowering() 339 for (RecordDecl::field_iterator Field = D->field_begin(), in accumulateFields() 343 RecordDecl::field_iterator Start = Field; in accumulateFields() 356 CGRecordLowering::accumulateBitFields(RecordDecl::field_iterator Field, in accumulateBitFields() 357 RecordDecl::field_iterator FieldEnd) { in accumulateBitFields() [all …]
|
D | CodeGenTypes.cpp | 48 void CodeGenTypes::addRecordTypeName(const RecordDecl *RD, in addRecordTypeName() 107 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked); 114 isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT, in isSafeToConvert() 115 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument 156 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument 177 static bool isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT) { in isSafeToConvert() 181 llvm::SmallPtrSet<const RecordDecl*, 16> AlreadyChecked; in isSafeToConvert() 260 const RecordDecl *RD = cast<RecordDecl>(TD); in UpdateCompletedType() 633 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType() 698 CodeGenTypes::getCGRecordLayout(const RecordDecl *RD) { in getCGRecordLayout()
|
D | CGDebugInfo.h | 193 const RecordDecl* RD = nullptr); 201 const RecordDecl* RD); 205 llvm::DIType RecordTy, const RecordDecl *RD); 206 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile F, 304 void completeType(const RecordDecl *RD); 305 void completeRequiredType(const RecordDecl *RD); 306 void completeClassData(const RecordDecl *RD); 390 CollectAnonRecordDecls(const RecordDecl *RD, llvm::DIFile Unit, 408 StringRef getClassName(const RecordDecl *RD);
|
D | CodeGenTBAA.cpp | 179 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in CollectFields() 191 for (RecordDecl::field_iterator i = RD->field_begin(), in CollectFields() 230 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in isTBAAPathStruct() 250 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in getTBAAStructTypeInfo() 255 for (RecordDecl::field_iterator i = RD->field_begin(), in getTBAAStructTypeInfo()
|
D | CGDebugInfo.cpp | 160 if (const RecordDecl *RDecl = dyn_cast<RecordDecl>(Context)) in getContextDescriptor() 232 StringRef CGDebugInfo::getClassName(const RecordDecl *RD) { in getClassName() 624 static llvm::dwarf::Tag getTagForRecord(const RecordDecl *RD) { in getTagForRecord() 643 const RecordDecl *RD = Ty->getDecl(); in getOrCreateRecordFwdDecl() 653 const RecordDecl *D = RD->getDefinition(); in getOrCreateRecordFwdDecl() 822 static unsigned getAccessFlag(AccessSpecifier Access, const RecordDecl *RD) { in getAccessFlag() 848 llvm::DIFile tunit, llvm::DIScope scope, const RecordDecl *RD) { in createFieldType() 879 RecordDecl::field_iterator Field = CXXDecl->field_begin(); in CollectRecordLambdaFields() 919 const RecordDecl *RD) { in CreateRecordStaticField() 950 const RecordDecl *RD) { in CollectRecordNormalField() [all …]
|
D | ModuleBuilder.cpp | 192 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) in HandleTagDeclRequiredDefinition()
|
/external/clang/tools/libclang/ |
D | CXType.cpp | 758 static long long visitRecordForValidation(const RecordDecl *RD) { in visitRecordForValidation() 767 if (const RecordDecl *Child = ChildType->getDecl()) { in visitRecordForValidation() 781 const RecordDecl *RD = in validateFieldParentType() 782 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC)); in validateFieldParentType() 816 const RecordDecl *RD = in clang_Type_getOffsetOf() 817 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC)); in clang_Type_getOffsetOf() 820 RecordDecl::lookup_result Res = RD->lookup(FieldName); in clang_Type_getOffsetOf() 913 const CXXRecordDecl *RecordDecl = T->getAsCXXRecordDecl(); in clang_Type_getNumTemplateArguments() local 914 if (!RecordDecl) in clang_Type_getNumTemplateArguments() 917 dyn_cast<ClassTemplateSpecializationDecl>(RecordDecl); in clang_Type_getNumTemplateArguments() [all …]
|
/external/lldb/source/Expression/ |
D | ASTStructExtractor.cpp | 71 RecordDecl *struct_decl = NULL; in ExtractFromFunctionDecl() 86 RecordDecl *candidate_record_decl = dyn_cast<RecordDecl>(candidate_decl); in ExtractFromFunctionDecl() 128 RecordDecl::decl_iterator decl_iterator; in ExtractFromTopLevelDecl()
|
D | ClangASTSource.cpp | 1414 DeclFromUser <RecordDecl> origin_base_record(origin_base_record_type->getDecl()); in ExtractBaseOffsets() 1438 ClangASTSource::layoutRecordType(const RecordDecl *record, in layoutRecordType() 1462 DeclFromParser <const RecordDecl> parser_record(record); in layoutRecordType() 1463 DeclFromUser <const RecordDecl> origin_record(parser_record.GetOrigin(m_ast_importer)); in layoutRecordType() 1472 …ClangASTContext::GetCompleteDecl(&origin_record->getASTContext(), const_cast<RecordDecl*>(origin_r… in layoutRecordType() 1481 …for (RecordDecl::field_iterator fi = origin_record->field_begin(), fe = origin_record->field_end(); in layoutRecordType() 1521 for (RecordDecl::field_iterator fi = record->field_begin(), fe = record->field_end(); in layoutRecordType() 1543 DeclFromParser <RecordDecl> base_record(base_record_type->getDecl()); in layoutRecordType()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | CastSizeChecker.cpp | 55 const RecordDecl *RD = RT->getDecl(); in evenFlexibleArraySize() 56 RecordDecl::field_iterator Iter(RD->field_begin()); in evenFlexibleArraySize() 57 RecordDecl::field_iterator End(RD->field_end()); in evenFlexibleArraySize()
|
D | LLVMConventionsChecker.cpp | 67 static bool IsClangType(const RecordDecl *RD) { in IsClangType() 71 static bool IsClangDecl(const RecordDecl *RD) { in IsClangDecl() 75 static bool IsClangStmt(const RecordDecl *RD) { in IsClangStmt() 79 static bool IsClangAttr(const RecordDecl *RD) { in IsClangAttr() 253 const RecordDecl *RD = RT->getDecl()->getDefinition(); in Visit()
|
/external/clang/lib/AST/ |
D | Decl.cpp | 879 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember() 1401 } else if (const RecordDecl *RD = dyn_cast<RecordDecl>(*I)) { in printQualifiedName() 3343 const RecordDecl *RD = getParent(); in getFieldIndex() 3563 RecordDecl::RecordDecl(Kind DK, TagKind TK, const ASTContext &C, in RecordDecl() function in RecordDecl 3566 RecordDecl *PrevDecl) in RecordDecl() 3576 RecordDecl *RecordDecl::Create(const ASTContext &C, TagKind TK, DeclContext *DC, in Create() 3578 IdentifierInfo *Id, RecordDecl* PrevDecl) { in Create() 3579 RecordDecl *R = new (C, DC) RecordDecl(Record, TK, C, DC, in Create() 3587 RecordDecl *RecordDecl::CreateDeserialized(const ASTContext &C, unsigned ID) { in CreateDeserialized() 3588 RecordDecl *R = in CreateDeserialized() [all …]
|
D | RecordLayoutBuilder.cpp | 673 void Layout(const RecordDecl *D); 677 void LayoutFields(const RecordDecl *D); 1233 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in InitializeLayout() 1262 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) in InitializeLayout() 1280 void RecordLayoutBuilder::Layout(const RecordDecl *D) { in Layout() 1352 void RecordLayoutBuilder::LayoutFields(const RecordDecl *D) { in LayoutFields() 1843 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in FinishLayout() 2071 static bool isMsLayout(const RecordDecl* D) { in isMsLayout() 2177 void layout(const RecordDecl *RD); 2180 void initializeLayout(const RecordDecl *RD); [all …]
|
D | ASTImporter.cpp | 108 bool ImportDefinition(RecordDecl *From, RecordDecl *To, 124 bool IsStructuralMatch(RecordDecl *FromRecord, RecordDecl *ToRecord, 139 Decl *VisitRecordDecl(RecordDecl *D); 846 RecordDecl *Owner2 = cast<RecordDecl>(Field2->getDeclContext()); in IsStructurallyEquivalent() 853 RecordDecl *D1 = Field1->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent() 854 RecordDecl *D2 = Field2->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent() 926 static Optional<unsigned> findAnonymousStructOrUnionIndex(RecordDecl *Anon) { in findAnonymousStructOrUnionIndex() 930 RecordDecl *Owner = dyn_cast<RecordDecl>(Anon->getDeclContext()); in findAnonymousStructOrUnionIndex() 951 RecordDecl *D1, RecordDecl *D2) { in IsStructurallyEquivalent() 1072 RecordDecl::field_iterator Field2 = D2->field_begin(), in IsStructurallyEquivalent() [all …]
|
D | ExternalASTSource.cpp | 46 const RecordDecl *Record, uint64_t &Size, uint64_t &Alignment, in layoutRecordType()
|
/external/lldb/include/lldb/Symbol/ |
D | ClangExternalASTSourceCallbacks.h | 38 const clang::RecordDecl *Record, 126 layoutRecordType(const clang::RecordDecl *Record,
|
D | ClangASTContext.h | 231 GetIndexForRecordBase (const clang::RecordDecl *record_decl, 314 RecordHasFields (const clang::RecordDecl *record_decl);
|
/external/clang/include/clang/AST/ |
D | Decl.h | 2381 const RecordDecl *getParent() const { in getParent() 2382 return cast<RecordDecl>(getDeclContext()); in getParent() 2385 RecordDecl *getParent() { in getParent() 2386 return cast<RecordDecl>(getDeclContext()); in getParent() 3181 class RecordDecl : public TagDecl { 3208 RecordDecl(Kind DK, TagKind TK, const ASTContext &C, DeclContext *DC, 3210 IdentifierInfo *Id, RecordDecl *PrevDecl); 3213 static RecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC, 3215 IdentifierInfo *Id, RecordDecl* PrevDecl = nullptr); 3216 static RecordDecl *CreateDeserialized(const ASTContext &C, unsigned ID); [all …]
|
D | ASTContext.h | 151 mutable llvm::DenseMap<const RecordDecl*, const ASTRecordLayout*> 240 mutable RecordDecl *CFConstantStringTypeDecl; 265 mutable RecordDecl *BlockDescriptorType; 271 mutable RecordDecl *BlockDescriptorExtendedType; 858 RecordDecl *buildImplicitRecord(StringRef Name, 859 RecordDecl::TagKind TK = TTK_Struct) const; 1105 QualType getRecordType(const RecordDecl *Decl) const; 1717 const ASTRecordLayout &getASTRecordLayout(const RecordDecl *D) const; 1718 const ASTRecordLayout *BuildMicrosoftASTRecordLayout(const RecordDecl *D) const; 1725 void DumpRecordLayout(const RecordDecl *RD, raw_ostream &OS, [all …]
|
/external/lldb/source/Symbol/ |
D | ClangASTType.cpp | 697 const RecordDecl *record_decl = record_type->getDecl(); in IsPolymorphicClass() 1399 const RecordDecl *record_decl = record_type->getDecl(); in GetTypeClass() 2048 const RecordDecl *record_decl = record_type->getDecl(); in GetNumChildren() 2080 RecordDecl::field_iterator field, field_end; in GetNumChildren() 2374 RecordDecl *record_decl = record_type->getDecl(); in GetNumFields() 2378 RecordDecl::field_iterator field, field_end; in GetNumFields() 2664 const RecordDecl *record_decl = record_type->getDecl(); in GetFieldAtIndex() 2666 RecordDecl::field_iterator field, field_end; in GetFieldAtIndex() 2942 const RecordDecl *record_decl = record_type->getDecl(); in GetChildClangTypeAtIndex() 2996 RecordDecl::field_iterator field, field_end; in GetChildClangTypeAtIndex() [all …]
|
/external/clang/include/clang/Frontend/ |
D | LayoutOverrideSource.h | 51 layoutRecordType(const RecordDecl *Record,
|
/external/clang/lib/Frontend/ |
D | LayoutOverrideSource.cpp | 156 LayoutOverrideSource::layoutRecordType(const RecordDecl *Record, in layoutRecordType() 173 for (RecordDecl::field_iterator F = Record->field_begin(), in layoutRecordType()
|
/external/clang/unittests/ASTMatchers/Dynamic/ |
D | RegistryTest.cpp | 246 Matcher<Decl> RecordDecl = constructMatcher( in TEST_F() local 253 EXPECT_FALSE(matches("int Foo;", RecordDecl)); in TEST_F() 254 EXPECT_TRUE(matches("class Foo {};", RecordDecl)); in TEST_F() 255 EXPECT_FALSE(matches("void Foo(){};", RecordDecl)); in TEST_F()
|
/external/lldb/include/lldb/Expression/ |
D | ClangASTSource.h | 159 layoutRecordType(const clang::RecordDecl *Record, 281 layoutRecordType(const clang::RecordDecl *Record, in layoutRecordType()
|