Home
last modified time | relevance | path

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

12345678910>>...14

/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/
DUSRFindingAction.cpp78 } 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/
DRecord.h34 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;
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()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DDanglingHandleCheck.cpp25 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()
DForwardDeclarationNamespaceCheck.cpp50 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/
Djson_map_decl_visitor.cc37 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/
DCodeGenTypes.h43 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);
DCGRecordLayoutBuilder.cpp95 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 …]
DCodeGenTypes.cpp48 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 …]
DCGDebugInfo.h290 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/
DCodeGenTypes.h46 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);
DCGRecordLayoutBuilder.cpp96 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 …]
DCodeGenTypes.cpp47 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 …]
DCGDebugInfo.h238 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/
DTypeTraits.cpp51 bool recordIsTriviallyDefaultConstructible(const RecordDecl &RecordDecl, in recordIsTriviallyDefaultConstructible() argument
53 const auto *ClassDecl = dyn_cast<CXXRecordDecl>(&RecordDecl); in recordIsTriviallyDefaultConstructible()
59 if (RecordDecl.isInvalidDecl()) in recordIsTriviallyDefaultConstructible()
DTypeTraits.h28 bool recordIsTriviallyDefaultConstructible(const RecordDecl &RecordDecl,
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
DNoUncountedMembersChecker.cpp58 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/
DCXType.cpp772 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/
DPaddingChecker.cpp55 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()
DLLVMConventionsChecker.cpp67 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/
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()
/external/llvm-project/polly/lib/External/isl/interface/
Dgenerator.h72 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/
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()
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/
Dattr-swift_bridge.m4 // CHECK: RecordDecl {{.*}} struct S
10 // CHECK: RecordDecl {{.*}} struct S definition
/external/llvm-project/clang-tools-extra/clang-reorder-fields/
DReorderFieldsAction.cpp36 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()

12345678910>>...14