Home
last modified time | relevance | path

Searched refs:EnumDecl (Results 1 – 25 of 54) sorted by relevance

123

/external/clang/include/clang/AST/
DDecl.h204 if (isa<EnumDecl>(DC)) in isCXXClassMember()
2164 static EnumConstantDecl *Create(ASTContext &C, EnumDecl *DC,
2639 class EnumDecl : public TagDecl {
2669 EnumDecl(DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, in EnumDecl() function
2670 IdentifierInfo *Id, EnumDecl *PrevDecl, in EnumDecl()
2683 void setInstantiationOfMemberEnum(ASTContext &C, EnumDecl *ED,
2686 EnumDecl *getCanonicalDecl() { in getCanonicalDecl()
2687 return cast<EnumDecl>(TagDecl::getCanonicalDecl()); in getCanonicalDecl()
2689 const EnumDecl *getCanonicalDecl() const { in getCanonicalDecl()
2690 return cast<EnumDecl>(TagDecl::getCanonicalDecl()); in getCanonicalDecl()
[all …]
DType.h82 class EnumDecl;
3268 explicit EnumType(const EnumDecl *D)
3273 EnumDecl *getDecl() const {
3274 return reinterpret_cast<EnumDecl*>(TagType::getDecl());
4974 extern bool IsEnumDeclComplete(EnumDecl *);
4975 extern bool IsEnumDeclScoped(EnumDecl *);
DCanonicalType.h619 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(EnumDecl *, getDecl)
/external/clang/lib/AST/
DMangle.cpp53 while (isa<BlockDecl>(ExpectedDC) || isa<EnumDecl>(ExpectedDC)) in checkMangleDC()
153 while (isa<BlockDecl>(DC) || isa<EnumDecl>(DC)) in mangleBlock()
DDecl.cpp2943 void EnumDecl::anchor() { } in anchor()
2945 EnumDecl *EnumDecl::Create(ASTContext &C, DeclContext *DC, in Create()
2948 EnumDecl *PrevDecl, bool IsScoped, in Create()
2950 EnumDecl *Enum = new (C) EnumDecl(DC, StartLoc, IdLoc, Id, PrevDecl, in Create()
2957 EnumDecl *EnumDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
2958 void *Mem = AllocateDeserializedDecl(C, ID, sizeof(EnumDecl)); in CreateDeserialized()
2959 EnumDecl *Enum = new (Mem) EnumDecl(0, SourceLocation(), SourceLocation(), in CreateDeserialized()
2965 void EnumDecl::completeDefinition(QualType NewType, in completeDefinition()
2978 TemplateSpecializationKind EnumDecl::getTemplateSpecializationKind() const { in getTemplateSpecializationKind()
2985 void EnumDecl::setTemplateSpecializationKind(TemplateSpecializationKind TSK, in setTemplateSpecializationKind()
[all …]
DASTImporter.cpp109 bool ImportDefinition(EnumDecl *From, EnumDecl *To,
123 bool IsStructuralMatch(EnumDecl *FromEnum, EnumDecl *ToRecord);
132 Decl *VisitEnumDecl(EnumDecl *D);
1090 EnumDecl *D1, EnumDecl *D2) { in IsStructurallyEquivalent()
1091 EnumDecl::enumerator_iterator EC2 = D2->enumerator_begin(), in IsStructurallyEquivalent()
1093 for (EnumDecl::enumerator_iterator EC1 = D1->enumerator_begin(), in IsStructurallyEquivalent()
1319 } else if (EnumDecl *Enum1 = dyn_cast<EnumDecl>(D1)) { in Finish()
1320 if (EnumDecl *Enum2 = dyn_cast<EnumDecl>(D2)) { in Finish()
1705 EnumDecl *ToDecl in VisitEnumType()
1706 = dyn_cast_or_null<EnumDecl>(Importer.Import(T->getDecl())); in VisitEnumType()
[all …]
DDumpXML.cpp579 void visitEnumDeclAttrs(EnumDecl *D) { in visitEnumDeclAttrs()
583 void visitEnumDeclChildren(EnumDecl *D) { in visitEnumDeclChildren()
DDeclPrinter.cpp51 void VisitEnumDecl(EnumDecl *D);
345 void DeclPrinter::VisitEnumDecl(EnumDecl *D) { in VisitEnumDecl()
/external/clang/include/clang/Sema/
DTemplate.h406 Decl *VisitEnumDecl(EnumDecl *D);
501 void InstantiateEnumDefinition(EnumDecl *Enum, EnumDecl *Pattern);
/external/clang/lib/Sema/
DSemaLambda.cpp235 static EnumDecl *findEnumForBlockReturn(Expr *E) { in findEnumForBlockReturn()
244 return cast<EnumDecl>(D->getDeclContext()); in findEnumForBlockReturn()
269 if (EnumDecl *ED = findEnumForBlockReturn(CO->getTrueExpr())) in findEnumForBlockReturn()
297 static EnumDecl *findEnumForBlockReturn(ReturnStmt *ret) { in findEnumForBlockReturn()
306 static EnumDecl *findCommonEnumForBlockReturns(ArrayRef<ReturnStmt*> returns) { in findCommonEnumForBlockReturns()
310 EnumDecl *ED = findEnumForBlockReturn(*i); in findCommonEnumForBlockReturns()
394 const EnumDecl *ED = findCommonEnumForBlockReturns(CSI.Returns); in deduceClosureReturnType()
DSemaTemplateInstantiateDecl.cpp625 Decl *TemplateDeclInstantiator::VisitEnumDecl(EnumDecl *D) { in VisitEnumDecl()
626 EnumDecl *PrevDecl = 0; in VisitEnumDecl()
632 PrevDecl = cast<EnumDecl>(Prev); in VisitEnumDecl()
635 EnumDecl *Enum = EnumDecl::Create(SemaRef.Context, Owner, D->getLocStart(), in VisitEnumDecl()
665 EnumDecl *Def = D->getDefinition(); in VisitEnumDecl()
698 EnumDecl *Enum, EnumDecl *Pattern) { in InstantiateEnumDefinition()
707 for (EnumDecl::enumerator_iterator EC = Pattern->enumerator_begin(), in InstantiateEnumDefinition()
3275 static bool isInstantiationOf(EnumDecl *Pattern, in isInstantiationOf()
3276 EnumDecl *Instance) { in isInstantiationOf()
3354 if (EnumDecl *Enum = dyn_cast<EnumDecl>(Other)) in isInstantiationOf()
[all …]
DSemaTemplateInstantiate.cpp479 } else if (EnumDecl *ED = dyn_cast<EnumDecl>(D)) { in PrintInstantiationStack()
2016 } else if (EnumDecl *Enum = dyn_cast<EnumDecl>(NewMember)) { in InstantiateClass()
2152 EnumDecl *Instantiation, EnumDecl *Pattern, in InstantiateEnum()
2155 EnumDecl *PatternDef = Pattern->getDefinition(); in InstantiateEnum()
2513 } else if (EnumDecl *Enum = dyn_cast<EnumDecl>(*D)) { in InstantiateClassMembers()
2531 EnumDecl *Pattern = Enum->getInstantiatedFromMemberEnum(); in InstantiateClassMembers()
DSemaCXXScopeSpec.cpp239 EnumDecl *ED = enumType->getDecl(); in RequireCompleteDeclContext()
240 if (EnumDecl *Pattern = ED->getInstantiatedFromMemberEnum()) { in RequireCompleteDeclContext()
288 (Context.getLangOpts().CPlusPlus11 && isa<EnumDecl>(SD))) in isAcceptableNestedNameSpecifier()
DSemaDecl.cpp3113 if (EnumDecl *Enum = dyn_cast_or_null<EnumDecl>(Tag)) in ParsedFreeStandingDeclSpec()
8611 if (EnumDecl *ED = dyn_cast<EnumDecl>(D)) { in ActOnStartOfFunctionDef()
8612 for (EnumDecl::enumerator_iterator EI = ED->enumerator_begin(), in ActOnStartOfFunctionDef()
9154 const EnumDecl *Prev) { in CheckEnumRedeclaration()
9490 while (isa<RecordDecl>(SearchDC) || isa<EnumDecl>(SearchDC)) in ActOnTag()
9649 const EnumDecl *PrevEnum = cast<EnumDecl>(PrevTagDecl); in ActOnTag()
9698 else if (EnumDecl *ED = dyn_cast<EnumDecl>(Def)) in ActOnTag()
9831 New = EnumDecl::Create(Context, SearchDC, KWLoc, Loc, Name, in ActOnTag()
9832 cast_or_null<EnumDecl>(PrevDecl), ScopedEnum, in ActOnTag()
9837 if (getLangOpts().CPlusPlus11 && cast<EnumDecl>(New)->isFixed()) { in ActOnTag()
[all …]
DSemaTemplate.cpp1692 EnumDecl *Enum = EnumT->getDecl(); in MatchTemplateParametersToScopeSpecifier()
4977 else if (isa<EnumDecl>(Specialized) && S.getLangOpts().CPlusPlus11) in CheckTemplateSpecializationScope()
6124 } else if (isa<EnumDecl>(Member)) { in CheckMemberSpecialization()
6125 EnumDecl *PrevEnum; in CheckMemberSpecialization()
6127 (PrevEnum = dyn_cast<EnumDecl>(Previous.getFoundDecl()))) { in CheckMemberSpecialization()
6235 assert(isa<EnumDecl>(Member) && "Only member enums remain"); in CheckMemberSpecialization()
6236 EnumDecl *InstantiationEnum = cast<EnumDecl>(Instantiation); in CheckMemberSpecialization()
6244 cast<EnumDecl>(Member)->setInstantiationOfMemberEnum( in CheckMemberSpecialization()
6245 cast<EnumDecl>(InstantiatedFrom), TSK_ExplicitSpecialization); in CheckMemberSpecialization()
DSemaStmt.cpp980 const EnumDecl *ED = ET->getDecl(); in ActOnFinishSwitchStmt()
987 for (EnumDecl::enumerator_iterator EDI = ED->enumerator_begin(); in ActOnFinishSwitchStmt()
1123 const EnumDecl *ED = ET->getDecl(); in DiagnoseAssignmentEnum()
1130 for (EnumDecl::enumerator_iterator EDI = ED->enumerator_begin(); in DiagnoseAssignmentEnum()
/external/clang/test/Index/
Dc-index-getCursor-test.m105 // CHECK: [40:1 - 41:3] EnumDecl=:40:1 (Definition)
107 // CHECK: [41:11 - 42:2] EnumDecl=:40:1 (Definition)
Dusrs.m164 // CHECK-source: usrs.m:5:1: EnumDecl=:5:1 (Definition) Extent=[5:1 - 8:2]
167 // CHECK-source: usrs.m:10:1: EnumDecl=:10:1 (Definition) Extent=[10:1 - 13:2]
174 // CHECK-source: usrs.m:20:6: EnumDecl=Pizza:20:6 (Definition) Extent=[20:1 - 23:2]
Dannotate-comments-typedef.m30 // CHECK: EnumDecl=E:[[@LINE-6]]:6 (Definition) {{.*}} BriefComment=[Documentation for E] FullComme…
Dc-index-api-loadTU-test.m107 // CHECK: c-index-api-loadTU-test.m:42:1: EnumDecl=:42:1 (Definition) Extent=[42:1 - 44:2]
/external/clang/lib/Frontend/
DASTConsumers.cpp198 const EnumDecl* ED = cast<EnumDecl>(DC); in PrintDeclContext()
/external/clang/lib/CodeGen/
DCodeGenTypes.cpp242 if (const EnumDecl *ED = dyn_cast<EnumDecl>(TD)) { in UpdateCompletedType()
560 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl(); in ConvertType()
DCGDebugInfo.h121 llvm::DIType CreateEnumType(const EnumDecl *ED);
/external/clang/tools/libclang/
DCXType.cpp243 if (const EnumDecl *TD = dyn_cast_or_null<EnumDecl>(D)) { in clang_getEnumDeclIntegerType()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp227 void VisitEnumDecl(EnumDecl *ED);
445 void ASTDeclReader::VisitEnumDecl(EnumDecl *ED) { in VisitEnumDecl()
458 if (EnumDecl *InstED = ReadDeclAs<EnumDecl>(Record, Idx)) { in VisitEnumDecl()
1976 D = EnumDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()

123