/external/bcc/src/cc/ |
D | json_map_decl_visitor.cc | 38 bool TraverseRecordDecl(clang::RecordDecl *Decl); 39 bool VisitRecordDecl(clang::RecordDecl *Decl); 49 bool shouldSkipPadding(const RecordDecl *D); 60 bool BMapDeclVisitor::shouldSkipPadding(const RecordDecl *D) { in shouldSkipPadding() 105 bool BMapDeclVisitor::TraverseRecordDecl(RecordDecl *D) { in TraverseRecordDecl() 112 bool BMapDeclVisitor::VisitRecordDecl(RecordDecl *D) { in VisitRecordDecl()
|
/external/clang/lib/CodeGen/ |
D | CodeGenTypes.h | 46 class RecordDecl; variable 159 SmallVector<const RecordDecl *, 8> DeferredRecords; 220 const CGRecordLayout &getCGRecordLayout(const RecordDecl*); 333 CGRecordLayout *ComputeRecordLayout(const RecordDecl *D, 338 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty, 344 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD); 357 bool isZeroInitializable(const RecordDecl *RD);
|
D | CGRecordLayoutBuilder.cpp | 96 CGRecordLowering(CodeGenTypes &Types, const RecordDecl *D, bool Packed); 158 bool isZeroInitializable(const RecordDecl *RD) { in isZeroInitializable() 175 void accumulateBitFields(RecordDecl::field_iterator Field, 176 RecordDecl::field_iterator FieldEnd); 196 const RecordDecl *D; 217 CGRecordLowering::CGRecordLowering(CodeGenTypes &Types, const RecordDecl *D, … in CGRecordLowering() 317 dyn_cast_or_null<RecordDecl>(Field->getType()->getAsTagDecl())) in lowerUnion() 350 for (RecordDecl::field_iterator Field = D->field_begin(), in accumulateFields() 354 RecordDecl::field_iterator Start = Field; in accumulateFields() 367 CGRecordLowering::accumulateBitFields(RecordDecl::field_iterator Field, in accumulateBitFields() [all …]
|
D | CodeGenTypes.cpp | 47 void CodeGenTypes::addRecordTypeName(const RecordDecl *RD, in addRecordTypeName() 106 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked); 113 isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT, in isSafeToConvert() 114 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument 155 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument 178 static bool isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT) { in isSafeToConvert() 182 llvm::SmallPtrSet<const RecordDecl*, 16> AlreadyChecked; in isSafeToConvert() 261 const RecordDecl *RD = cast<RecordDecl>(TD); in UpdateCompletedType() 658 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType() 723 CodeGenTypes::getCGRecordLayout(const RecordDecl *RD) { in getCGRecordLayout() [all …]
|
D | CGDebugInfo.h | 238 const RecordDecl *RD = nullptr); 243 const RecordDecl *RD); 252 const RecordDecl *RD); 256 llvm::DIType *RecordTy, const RecordDecl *RD); 257 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F, 381 void completeType(const RecordDecl *RD); 382 void completeRequiredType(const RecordDecl *RD); 383 void completeClassData(const RecordDecl *RD); 479 CollectAnonRecordDecls(const RecordDecl *RD, llvm::DIFile *Unit, 497 StringRef getClassName(const RecordDecl *RD);
|
D | CodeGenTBAA.cpp | 182 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in CollectFields() 194 for (RecordDecl::field_iterator i = RD->field_begin(), in CollectFields() 233 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in isTBAAPathStruct() 253 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in getTBAAStructTypeInfo() 258 for (RecordDecl::field_iterator i = RD->field_begin(), in getTBAAStructTypeInfo()
|
D | CGDebugInfo.cpp | 175 if (const RecordDecl *RDecl = dyn_cast<RecordDecl>(Context)) in getContextDescriptor() 259 StringRef CGDebugInfo::getClassName(const RecordDecl *RD) { in getClassName() 701 static llvm::dwarf::Tag getTagForRecord(const RecordDecl *RD) { in getTagForRecord() 719 const RecordDecl *RD = Ty->getDecl(); in getOrCreateRecordFwdDecl() 729 const RecordDecl *D = RD->getDefinition(); in getOrCreateRecordFwdDecl() 930 static unsigned getAccessFlag(AccessSpecifier Access, const RecordDecl *RD) { in getAccessFlag() 955 const RecordDecl *RD) { in createBitFieldType() 984 const RecordDecl *RD) { in createFieldType() 1011 RecordDecl::field_iterator Field = CXXDecl->field_begin(); in CollectRecordLambdaFields() 1046 const RecordDecl *RD) { in CreateRecordStaticField() [all …]
|
D | ModuleBuilder.cpp | 246 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) in HandleTagDeclRequiredDefinition()
|
D | CGExprConstant.cpp | 78 void Build(const APValue &Val, const RecordDecl *RD, bool IsPrimaryBase, 366 RecordDecl *RD = ILE->getType()->getAs<RecordType>()->getDecl(); in Build() 379 for (RecordDecl::field_iterator Field = RD->field_begin(), in Build() 433 void ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD, in Build() 474 for (RecordDecl::field_iterator Field = RD->field_begin(), in Build() 503 RecordDecl *RD = Ty->getAs<RecordType>()->getDecl(); in Finalize() 589 const RecordDecl *RD = ValTy->castAs<RecordType>()->getDecl(); in BuildStruct() 1133 RecordDecl *RD = ExprType->getAs<RecordType>()->getDecl(); in Build() 1554 dyn_cast_or_null<RecordDecl>(Field->getType()->getAsTagDecl())) in EmitNullConstant()
|
/external/clang/tools/libclang/ |
D | CXType.cpp | 772 static long long visitRecordForValidation(const RecordDecl *RD) { in visitRecordForValidation() 781 if (const RecordDecl *Child = ChildType->getDecl()) { in visitRecordForValidation() 795 const RecordDecl *RD = in validateFieldParentType() 796 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC)); in validateFieldParentType() 830 const RecordDecl *RD = in clang_Type_getOffsetOf() 831 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC)); in clang_Type_getOffsetOf() 834 RecordDecl::lookup_result Res = RD->lookup(FieldName); in clang_Type_getOffsetOf() 927 const CXXRecordDecl *RecordDecl = T->getAsCXXRecordDecl(); in clang_Type_getNumTemplateArguments() local 928 if (!RecordDecl) in clang_Type_getNumTemplateArguments() 931 dyn_cast<ClassTemplateSpecializationDecl>(RecordDecl); in clang_Type_getNumTemplateArguments() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | PaddingChecker.cpp | 55 bool VisitRecordDecl(const RecordDecl *RD) { in checkASTDecl() 74 void visitRecord(const RecordDecl *RD, uint64_t PadMultiplier = 1) const { in visitRecord() 116 bool shouldSkipDecl(const RecordDecl *RD) const { in shouldSkipDecl() 166 static CharUnits calculateBaselinePad(const RecordDecl *RD, in calculateBaselinePad() 202 static CharUnits calculateOptimalPad(const RecordDecl *RD, in calculateOptimalPad() 274 void reportRecord(const RecordDecl *RD, CharUnits BaselinePad, in reportRecord()
|
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() 252 const RecordDecl *RD = RT->getDecl()->getDefinition(); in Visit()
|
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()
|
/external/clang/lib/AST/ |
D | RecordLayoutBuilder.cpp | 671 void Layout(const RecordDecl *D); 675 void LayoutFields(const RecordDecl *D); 1230 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in InitializeLayout() 1259 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) in InitializeLayout() 1277 void ItaniumRecordLayoutBuilder::Layout(const RecordDecl *D) { in Layout() 1348 void ItaniumRecordLayoutBuilder::LayoutFields(const RecordDecl *D) { in LayoutFields() 1870 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in FinishLayout() 2222 void layout(const RecordDecl *RD); 2225 void initializeLayout(const RecordDecl *RD); 2239 void layoutFields(const RecordDecl *RD); [all …]
|
D | Decl.cpp | 891 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember() 1443 } else if (const auto *RD = dyn_cast<RecordDecl>(DC)) { in printQualifiedName() 3482 const RecordDecl *RD = getParent(); in getFieldIndex() 3715 RecordDecl::RecordDecl(Kind DK, TagKind TK, const ASTContext &C, in RecordDecl() function in RecordDecl 3718 RecordDecl *PrevDecl) in RecordDecl() 3728 RecordDecl *RecordDecl::Create(const ASTContext &C, TagKind TK, DeclContext *DC, in Create() 3730 IdentifierInfo *Id, RecordDecl* PrevDecl) { in Create() 3731 RecordDecl *R = new (C, DC) RecordDecl(Record, TK, C, DC, in Create() 3739 RecordDecl *RecordDecl::CreateDeserialized(const ASTContext &C, unsigned ID) { in CreateDeserialized() 3740 RecordDecl *R = in CreateDeserialized() [all …]
|
D | ASTImporter.cpp | 113 bool ImportDefinition(RecordDecl *From, RecordDecl *To, 129 bool IsStructuralMatch(RecordDecl *FromRecord, RecordDecl *ToRecord, 146 Decl *VisitRecordDecl(RecordDecl *D); 952 RecordDecl *Owner2 = cast<RecordDecl>(Field2->getDeclContext()); in IsStructurallyEquivalent() 959 RecordDecl *D1 = Field1->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent() 960 RecordDecl *D2 = Field2->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent() 1032 static Optional<unsigned> findUntaggedStructOrUnionIndex(RecordDecl *Anon) { in findUntaggedStructOrUnionIndex() 1036 RecordDecl *Owner = dyn_cast<RecordDecl>(Anon->getDeclContext()); in findUntaggedStructOrUnionIndex() 1057 const RecordDecl *RecDecl = RecType->getDecl(); in findUntaggedStructOrUnionIndex() 1073 RecordDecl *D1, RecordDecl *D2) { in IsStructurallyEquivalent() [all …]
|
D | CXXInheritance.cpp | 378 RecordDecl *BaseRecord = in FindTagMember() 394 RecordDecl *BaseRecord = in FindOrdinaryMember() 411 RecordDecl *BaseRecord = in FindOMPReductionMember() 427 RecordDecl *BaseRecord = in FindNestedNameSpecifierMember()
|
D | ExternalASTSource.cpp | 67 const RecordDecl *Record, uint64_t &Size, uint64_t &Alignment, in layoutRecordType()
|
/external/clang/include/clang/AST/ |
D | ASTMutationListener.h | 35 class RecordDecl; variable 132 const RecordDecl *Record) {} in AddedAttributeToRecord()
|
D | Decl.h | 2455 const RecordDecl *getParent() const { in getParent() 2456 return cast<RecordDecl>(getDeclContext()); in getParent() 2459 RecordDecl *getParent() { in getParent() 2460 return cast<RecordDecl>(getDeclContext()); in getParent() 3253 class RecordDecl : public TagDecl { 3280 RecordDecl(Kind DK, TagKind TK, const ASTContext &C, DeclContext *DC, 3282 IdentifierInfo *Id, RecordDecl *PrevDecl); 3285 static RecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC, 3287 IdentifierInfo *Id, RecordDecl* PrevDecl = nullptr); 3288 static RecordDecl *CreateDeserialized(const ASTContext &C, unsigned ID); [all …]
|
D | ASTContext.h | 157 mutable llvm::DenseMap<const RecordDecl*, const ASTRecordLayout*> 262 mutable RecordDecl *CFConstantStringTagDecl; 288 mutable RecordDecl *BlockDescriptorType; 294 mutable RecordDecl *BlockDescriptorExtendedType; 968 RecordDecl *buildImplicitRecord(StringRef Name, 969 RecordDecl::TagKind TK = TTK_Struct) const; 1218 QualType getRecordType(const RecordDecl *Decl) const; 1394 RecordDecl *getCFConstantStringTagDecl() const; 1888 const ASTRecordLayout &getASTRecordLayout(const RecordDecl *D) const; 1895 void DumpRecordLayout(const RecordDecl *RD, raw_ostream &OS, [all …]
|
/external/clang/include/clang/CodeGen/ |
D | SwiftCallingConv.h | 66 void addTypedData(const RecordDecl *record, CharUnits begin); 67 void addTypedData(const RecordDecl *record, CharUnits begin,
|
/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/include/clang/Frontend/ |
D | LayoutOverrideSource.h | 51 layoutRecordType(const RecordDecl *Record,
|
/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()
|