Searched refs:RecordDecl (Results 1 - 25 of 98) sorted by relevance

1234

/external/clang/include/clang/Frontend/
H A DLayoutOverrideSource.h51 layoutRecordType(const RecordDecl *Record,
/external/clang/lib/CodeGen/
H A DCodeGenTypes.h46 class RecordDecl;
87 /// RecordDecl.
105 SmallVector<const RecordDecl *, 8> DeferredRecords;
149 const CGRecordLayout &getCGRecordLayout(const RecordDecl*);
227 CGRecordLayout *ComputeRecordLayout(const RecordDecl *D,
232 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
238 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
H A DCGRecordLayoutBuilder.cpp97 /// Alignment - Contains the alignment of the RecordDecl.
108 /// LayoutUnion - Will layout a union RecordDecl.
109 void LayoutUnion(const RecordDecl *D);
114 RecordDecl::field_iterator &FI,
115 RecordDecl::field_iterator FE);
119 bool LayoutFields(const RecordDecl *D);
197 /// Layout - Will layout a RecordDecl.
198 void Layout(const RecordDecl *D);
203 void CGRecordLayoutBuilder::Layout(const RecordDecl *D) {
267 RecordDecl
[all...]
H A DCodeGenTypes.cpp51 void CodeGenTypes::addRecordTypeName(const RecordDecl *RD,
110 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked);
117 isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT, argument
118 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) {
146 for (RecordDecl::field_iterator I = RD->field_begin(),
160 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) {
181 static bool isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT) {
185 llvm::SmallPtrSet<const RecordDecl*, 16> AlreadyChecked;
254 // If we completed a RecordDecl that we previously used and converted to an
256 const RecordDecl *R
159 isSafeToConvert(QualType T, CodeGenTypes &CGT, llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) argument
[all...]
H A DCodeGenTBAA.cpp186 const RecordDecl *RD = TTy->getDecl()->getDefinition();
198 for (RecordDecl::field_iterator i = RD->field_begin(),
238 const RecordDecl *RD = TTy->getDecl()->getDefinition();
258 const RecordDecl *RD = TTy->getDecl()->getDefinition();
263 for (RecordDecl::field_iterator i = RD->field_begin(),
H A DModuleBuilder.cpp99 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D))
H A DCGDebugInfo.h193 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile F,
291 void completeFwdDecl(const RecordDecl &TD);
310 llvm::DIType createRecordFwdDecl(const RecordDecl *, llvm::DIDescriptor);
378 StringRef getClassName(const RecordDecl *RD);
H A DCGExprAgg.cpp225 RecordDecl *Record = RecordTy->getDecl();
323 RecordDecl *Record = E->getType()->castAs<RecordType>()->getDecl();
324 RecordDecl::field_iterator Field = Record->field_begin();
1123 RecordDecl *record = E->getType()->castAs<RecordType>()->getDecl();
1137 for (RecordDecl::field_iterator Field = record->field_begin(),
1168 for (RecordDecl::field_iterator field = record->field_begin(),
1260 RecordDecl *SD = E->getType()->getAs<RecordType>()->getDecl();
1264 for (RecordDecl::field_iterator Field = SD->field_begin(),
1441 RecordDecl *Record = RecordTy->getDecl();
H A DCGExprConstant.cpp74 void Build(const APValue &Val, const RecordDecl *RD, bool IsPrimaryBase,
371 RecordDecl *RD = ILE->getType()->getAs<RecordType>()->getDecl();
377 for (RecordDecl::field_iterator Field = RD->field_begin(),
426 void ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD,
463 for (RecordDecl::field_iterator Field = RD->field_begin(),
492 RecordDecl *RD = Ty->getAs<RecordType>()->getDecl();
561 const RecordDecl *RD = ValTy->castAs<RecordType>()->getDecl();
1315 for (RecordDecl::field_iterator I = RD->field_begin(),
1380 for (RecordDecl::field_iterator I = record->field_begin(),
/external/clang/lib/StaticAnalyzer/Checkers/
H A DLLVMConventionsChecker.cpp67 static bool IsClangType(const RecordDecl *RD) {
71 static bool IsClangDecl(const RecordDecl *RD) {
75 static bool IsClangStmt(const RecordDecl *RD) {
79 static bool IsClangAttr(const RecordDecl *RD) {
232 for (RecordDecl::field_iterator I = R->field_begin(), E = R->field_end();
248 const RecordDecl *RD = RT->getDecl()->getDefinition();
249 for (RecordDecl::field_iterator I = RD->field_begin(), E = RD->field_end();
/external/chromium_org/ppapi/tests/clang/
H A Dfind_affected_interfaces.cc76 const clang::RecordDecl* decl = record->getDecl();
77 clang::RecordDecl::field_iterator field_iter(decl->field_begin());
78 clang::RecordDecl::field_iterator field_end(decl->field_end());
H A Dprint_names_and_sizes.cc82 const clang::RecordDecl* decl = record->getDecl();
83 clang::RecordDecl::field_iterator iter(decl->field_begin());
84 clang::RecordDecl::field_iterator end(decl->field_end());
/external/clang/unittests/ASTMatchers/Dynamic/
H A DRegistryTest.cpp167 Matcher<Decl> RecordDecl = local
176 EXPECT_FALSE(matches("int a;", RecordDecl));
178 EXPECT_TRUE(matches("class A {};", RecordDecl));
180 EXPECT_FALSE(matches("void f(){};", RecordDecl));
/external/clang/include/clang/AST/
H A DRecordLayout.h24 class RecordDecl;
28 /// This class contains layout information for one RecordDecl,
H A DDecl.h2181 const RecordDecl *getParent() const {
2182 return cast<RecordDecl>(getDeclContext());
2185 RecordDecl *getParent() {
2186 return cast<RecordDecl>(getDeclContext());
2926 /// RecordDecl - Represents a struct/union/class. For example:
2931 class RecordDecl : public TagDecl {
2958 RecordDecl(Kind DK, TagKind TK, DeclContext *DC,
2960 IdentifierInfo *Id, RecordDecl *PrevDecl);
2963 static RecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
2965 IdentifierInfo *Id, RecordDecl* PrevDec
[all...]
H A DExternalASTSource.h30 class RecordDecl;
247 layoutRecordType(const RecordDecl *Record,
/external/clang/lib/AST/
H A DASTImporter.cpp107 bool ImportDefinition(RecordDecl *From, RecordDecl *To,
123 bool IsStructuralMatch(RecordDecl *FromRecord, RecordDecl *ToRecord,
138 Decl *VisitRecordDecl(RecordDecl *D);
845 RecordDecl *Owner2 = cast<RecordDecl>(Field2->getDeclContext());
852 RecordDecl *D1 = Field1->getType()->castAs<RecordType>()->getDecl();
853 RecordDecl *D2 = Field2->getType()->castAs<RecordType>()->getDecl();
925 static Optional<unsigned> findAnonymousStructOrUnionIndex(RecordDecl *Ano
[all...]
H A DDecl.cpp576 if (cast<RecordDecl>(Field->getDeclContext())->isAnonymousStructOrUnion())
811 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation);
1266 } else if (const RecordDecl *RD = dyn_cast<RecordDecl>(*I)) {
3005 const RecordDecl *RD = getParent();
3007 for (RecordDecl::field_iterator I = RD->field_begin(), E = RD->field_end();
3207 // RecordDecl Implementation
3210 RecordDecl::RecordDecl(Kind DK, TagKind TK, DeclContext *DC, function in class:RecordDecl
3212 IdentifierInfo *Id, RecordDecl *PrevDec
[all...]
H A DRecordLayoutBuilder.cpp671 void Layout(const RecordDecl *D);
675 void LayoutFields(const RecordDecl *D);
1589 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) {
1618 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D))
1639 void RecordLayoutBuilder::Layout(const RecordDecl *D) {
1731 void RecordLayoutBuilder::LayoutFields(const RecordDecl *D) {
1734 for (RecordDecl::field_iterator Field = D->field_begin(),
2108 if (const RecordDecl *R
[all...]
H A DCXXInheritance.cpp396 RecordDecl *BaseRecord =
413 RecordDecl *BaseRecord =
432 RecordDecl *BaseRecord =
/external/clang/lib/Frontend/
H A DLayoutOverrideSource.cpp156 LayoutOverrideSource::layoutRecordType(const RecordDecl *Record,
173 for (RecordDecl::field_iterator F = Record->field_begin(),
/external/clang/include/clang/Sema/
H A DMultiplexExternalSemaSource.h188 layoutRecordType(const RecordDecl *Record,
/external/clang/lib/Sema/
H A DSemaAttr.cpp115 void Sema::AddAlignmentAttributesForRecord(RecordDecl *RD) {
133 void Sema::AddMsStructLayoutForRecord(RecordDecl *RD) {
/external/clang/tools/libclang/
H A DCXType.cpp732 static long long visitRecordForValidation(const RecordDecl *RD) {
733 for (RecordDecl::field_iterator I = RD->field_begin(), E = RD->field_end();
742 if (const RecordDecl *Child = ChildType->getDecl()) {
758 const RecordDecl *RD =
759 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC));
782 RecordDecl::lookup_const_result Res = RD->lookup(FieldName);
/external/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCXX.cpp297 const CXXRecordDecl *RecordDecl = ObjectType->getAsCXXRecordDecl(); local
298 assert(RecordDecl && "Only CXXRecordDecls should have destructors");
299 const CXXDestructorDecl *DtorDecl = RecordDecl->getDestructor();

Completed in 463 milliseconds

1234