/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
D | USRFindingAction.cpp | 78 } 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() 159 const auto* RecordDecl = RD->getDefinition(); in addUSRsOfCtorDtors() local 162 if (!RecordDecl) { in addUSRsOfCtorDtors() [all …]
|
/external/llvm-project/clang/lib/AST/Interp/ |
D | Record.h | 34 const RecordDecl *Decl; 49 const RecordDecl *getDecl() const { return Decl; } in getDecl() 59 const Base *getBase(const RecordDecl *FD) const; 61 const Base *getVirtualBase(const RecordDecl *RD) const; 89 Record(const RecordDecl *, BaseList &&Bases, FieldList &&Fields, 97 const RecordDecl *Decl; 106 llvm::DenseMap<const RecordDecl *, Base *> BaseMap; 110 llvm::DenseMap<const RecordDecl *, Base *> VirtualBaseMap;
|
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()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | DanglingHandleCheck.cpp | 25 handleFrom(const ast_matchers::internal::Matcher<RecordDecl> &IsAHandle, in handleFrom() 36 const ast_matchers::internal::Matcher<RecordDecl> &IsAHandle) { in handleFromTemporaryValue() 47 ast_matchers::internal::Matcher<RecordDecl> isASequence() { in isASequence() 52 ast_matchers::internal::Matcher<RecordDecl> isASet() { in isASet() 57 ast_matchers::internal::Matcher<RecordDecl> isAMap() { in isAMap() 63 const ast_matchers::internal::Matcher<RecordDecl> &IsAHandle) { in makeContainerMatcher()
|
D | ForwardDeclarationNamespaceCheck.cpp | 50 if (const auto *RecordDecl = in check() local 52 StringRef DeclName = RecordDecl->getName(); in check() 53 if (RecordDecl->isThisDeclarationADefinition()) { in check() 54 DeclNameToDefinitions[DeclName].push_back(RecordDecl); in check() 60 DeclNameToDeclarations[DeclName].push_back(RecordDecl); in check()
|
/external/bcc/src/cc/ |
D | json_map_decl_visitor.cc | 37 bool TraverseRecordDecl(clang::RecordDecl *Decl); 38 bool VisitRecordDecl(clang::RecordDecl *Decl); 48 bool shouldSkipPadding(const RecordDecl *D); 59 bool BMapDeclVisitor::shouldSkipPadding(const RecordDecl *D) { in shouldSkipPadding() 114 bool BMapDeclVisitor::TraverseRecordDecl(RecordDecl *D) { in TraverseRecordDecl() 121 bool BMapDeclVisitor::VisitRecordDecl(RecordDecl *D) { in VisitRecordDecl()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CodeGenTypes.h | 43 class RecordDecl; variable 98 SmallVector<const RecordDecl *, 8> DeferredRecords; 160 const CGRecordLayout &getCGRecordLayout(const RecordDecl*); 275 std::unique_ptr<CGRecordLayout> ComputeRecordLayout(const RecordDecl *D, 280 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty, 286 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD); 303 bool isZeroInitializable(const RecordDecl *RD);
|
D | CGRecordLayoutBuilder.cpp | 95 CGRecordLowering(CodeGenTypes &Types, const RecordDecl *D, bool Packed); 165 bool isZeroInitializable(const RecordDecl *RD) { in isZeroInitializable() 182 void accumulateBitFields(RecordDecl::field_iterator Field, 183 RecordDecl::field_iterator FieldEnd); 204 const RecordDecl *D; 225 CGRecordLowering::CGRecordLowering(CodeGenTypes &Types, const RecordDecl *D, in CGRecordLowering() 368 for (RecordDecl::field_iterator Field = D->field_begin(), in accumulateFields() 372 RecordDecl::field_iterator Start = Field; in accumulateFields() 388 CGRecordLowering::accumulateBitFields(RecordDecl::field_iterator Field, in accumulateBitFields() 389 RecordDecl::field_iterator FieldEnd) { in accumulateBitFields() [all …]
|
D | CodeGenTypes.cpp | 48 void CodeGenTypes::addRecordTypeName(const RecordDecl *RD, in addRecordTypeName() 121 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked); 128 isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT, in isSafeToConvert() 129 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument 170 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument 193 static bool isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT) { in isSafeToConvert() 197 llvm::SmallPtrSet<const RecordDecl*, 16> AlreadyChecked; in isSafeToConvert() 276 const RecordDecl *RD = cast<RecordDecl>(TD); in UpdateCompletedType() 801 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType() 865 CodeGenTypes::getCGRecordLayout(const RecordDecl *RD) { in getCGRecordLayout() [all …]
|
D | CGDebugInfo.h | 290 const RecordDecl *RD = nullptr); 296 const RecordDecl *RD = nullptr) { 304 const RecordDecl *RD); 313 const RecordDecl *RD); 317 llvm::DIType *RecordTy, const RecordDecl *RD); 320 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F, 519 void completeType(const RecordDecl *RD); 520 void completeRequiredType(const RecordDecl *RD); 521 void completeClassData(const RecordDecl *RD); 522 void completeClass(const RecordDecl *RD); [all …]
|
/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);
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | TypeTraits.cpp | 51 bool recordIsTriviallyDefaultConstructible(const RecordDecl &RecordDecl, in recordIsTriviallyDefaultConstructible() argument 53 const auto *ClassDecl = dyn_cast<CXXRecordDecl>(&RecordDecl); in recordIsTriviallyDefaultConstructible() 59 if (RecordDecl.isInvalidDecl()) in recordIsTriviallyDefaultConstructible()
|
D | TypeTraits.h | 28 bool recordIsTriviallyDefaultConstructible(const RecordDecl &RecordDecl,
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
D | NoUncountedMembersChecker.cpp | 58 bool VisitRecordDecl(const RecordDecl *RD) { in checkASTDecl() 68 void visitRecordDecl(const RecordDecl *RD) const { in visitRecordDecl() 88 bool shouldSkipDecl(const RecordDecl *RD) const { in shouldSkipDecl() 124 const RecordDecl *ClassCXXRD) const { in reportBug()
|
/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()
|
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
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()
|
/external/llvm-project/polly/lib/External/isl/interface/ |
D | generator.h | 72 RecordDecl *type; 133 generator(SourceManager &SM, set<RecordDecl *> &exported_types, 141 void add_subclass(RecordDecl *decl, const string &name, 143 void add_class(RecordDecl *decl);
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
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() 227 calculateOptimalPad(const RecordDecl *RD, const ASTContext &ASTContext, in calculateOptimalPad() 306 const RecordDecl *RD, CharUnits BaselinePad, CharUnits OptimalPad, in reportRecord()
|
/external/llvm-project/clang/test/AST/ |
D | attr-swift_bridge.m | 4 // CHECK: RecordDecl {{.*}} struct S 10 // CHECK: RecordDecl {{.*}} struct S definition
|
/external/llvm-project/clang-tools-extra/clang-reorder-fields/ |
D | ReorderFieldsAction.cpp | 36 static const RecordDecl *findDefinition(StringRef RecordName, in findDefinition() 50 return selectFirst<RecordDecl>("recordDecl", Results); in findDefinition() 57 getNewFieldsOrder(const RecordDecl *Definition, in getNewFieldsOrder() 125 const RecordDecl *Definition, ArrayRef<unsigned> NewFieldsOrder, in reorderFieldsInDefinition() 269 const RecordDecl *RD = findDefinition(RecordName, Context); in HandleTranslationUnit()
|