Home
last modified time | relevance | path

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

123

/external/clang/include/clang/AST/
DDecl.h253 if (isa<EnumDecl>(DC)) in isCXXClassMember()
2473 static EnumConstantDecl *Create(ASTContext &C, EnumDecl *DC,
2996 class EnumDecl : public TagDecl {
3026 EnumDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in EnumDecl() function
3027 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, in EnumDecl()
3040 void setInstantiationOfMemberEnum(ASTContext &C, EnumDecl *ED,
3043 EnumDecl *getCanonicalDecl() override { in getCanonicalDecl()
3044 return cast<EnumDecl>(TagDecl::getCanonicalDecl()); in getCanonicalDecl()
3046 const EnumDecl *getCanonicalDecl() const { in getCanonicalDecl()
3047 return const_cast<EnumDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
[all …]
DCanonicalType.h542 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(EnumDecl *, getDecl)
DType.h85 class EnumDecl;
3570 explicit EnumType(const EnumDecl *D)
3575 EnumDecl *getDecl() const {
3576 return reinterpret_cast<EnumDecl*>(TagType::getDecl());
5525 extern bool IsEnumDeclComplete(EnumDecl *);
5526 extern bool IsEnumDeclScoped(EnumDecl *);
/external/clang/include/clang/Edit/
DRewriters.h20 class EnumDecl; variable
/external/clang/lib/AST/
DDecl.cpp1253 return getLVForDecl(cast<EnumDecl>(D->getDeclContext()), computation); in computeLVForDecl()
1469 } else if (const auto *ED = dyn_cast<EnumDecl>(*I)) { in printQualifiedName()
3513 void EnumDecl::anchor() { } in anchor()
3515 EnumDecl *EnumDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3518 EnumDecl *PrevDecl, bool IsScoped, in Create()
3520 auto *Enum = new (C, DC) EnumDecl(C, DC, StartLoc, IdLoc, Id, PrevDecl, in Create()
3527 EnumDecl *EnumDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
3528 EnumDecl *Enum = in CreateDeserialized()
3529 new (C, ID) EnumDecl(C, nullptr, SourceLocation(), SourceLocation(), in CreateDeserialized()
3535 SourceRange EnumDecl::getIntegerTypeRange() const { in getIntegerTypeRange()
[all …]
DASTImporter.cpp112 bool ImportDefinition(EnumDecl *From, EnumDecl *To,
128 bool IsStructuralMatch(EnumDecl *FromEnum, EnumDecl *ToRecord);
138 Decl *VisitEnumDecl(EnumDecl *D);
1152 EnumDecl *D1, EnumDecl *D2) { in IsStructurallyEquivalent()
1153 EnumDecl::enumerator_iterator EC2 = D2->enumerator_begin(), in IsStructurallyEquivalent()
1155 for (EnumDecl::enumerator_iterator EC1 = D1->enumerator_begin(), in IsStructurallyEquivalent()
1381 } else if (EnumDecl *Enum1 = dyn_cast<EnumDecl>(D1)) { in Finish()
1382 if (EnumDecl *Enum2 = dyn_cast<EnumDecl>(D2)) { in Finish()
1763 EnumDecl *ToDecl in VisitEnumType()
1764 = dyn_cast_or_null<EnumDecl>(Importer.Import(T->getDecl())); in VisitEnumType()
[all …]
DDeclPrinter.cpp60 void VisitEnumDecl(EnumDecl *D);
391 void DeclPrinter::VisitEnumDecl(EnumDecl *D) { in VisitEnumDecl()
/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)
Dannotate-comments-objc.m121 // CHECK: annotate-comments-objc.m:43:22: EnumDecl=An_NS_ENUM_isdoxy1:{{.*}} An_NS_ENUM_isdoxy1 IS_…
123 // CHECK: annotate-comments-objc.m:43:22: EnumDecl=An_NS_ENUM_isdoxy1:{{.*}} An_NS_ENUM_isdoxy1 IS_…
Dannotate-comments-typedef.m30 // CHECK: EnumDecl=E:[[@LINE-6]]:6 (Definition) {{.*}} BriefComment=[Documentation for E] FullComme…
Dusrs.m188 // CHECK-source: usrs.m:5:1: EnumDecl=:5:1 (Definition) Extent=[5:1 - 8:2]
191 // CHECK-source: usrs.m:10:1: EnumDecl=:10:1 (Definition) Extent=[10:1 - 13:2]
198 // CHECK-source: usrs.m:20:6: EnumDecl=Pizza:20:6 (Definition) Extent=[20:1 - 23:2]
/external/clang/lib/Sema/
DSemaLambda.cpp496 static EnumDecl *findEnumForBlockReturn(Expr *E) { in findEnumForBlockReturn()
505 return cast<EnumDecl>(D->getDeclContext()); in findEnumForBlockReturn()
530 if (EnumDecl *ED = findEnumForBlockReturn(CO->getTrueExpr())) in findEnumForBlockReturn()
559 static EnumDecl *findEnumForBlockReturn(ReturnStmt *ret) { in findEnumForBlockReturn()
568 static EnumDecl *findCommonEnumForBlockReturns(ArrayRef<ReturnStmt*> returns) { in findCommonEnumForBlockReturns()
572 EnumDecl *ED = findEnumForBlockReturn(*i); in findCommonEnumForBlockReturns()
662 const EnumDecl *ED = findCommonEnumForBlockReturns(CSI.Returns); in deduceClosureReturnType()
DSemaTemplateInstantiateDecl.cpp777 Decl *TemplateDeclInstantiator::VisitEnumDecl(EnumDecl *D) { in VisitEnumDecl()
778 EnumDecl *PrevDecl = nullptr; in VisitEnumDecl()
779 if (EnumDecl *PatternPrev = getPreviousDeclForInstantiation(D)) { in VisitEnumDecl()
784 PrevDecl = cast<EnumDecl>(Prev); in VisitEnumDecl()
787 EnumDecl *Enum = EnumDecl::Create(SemaRef.Context, Owner, D->getLocStart(), in VisitEnumDecl()
827 EnumDecl *Def = D->getDefinition(); in VisitEnumDecl()
859 EnumDecl *Enum, EnumDecl *Pattern) { in InstantiateEnumDefinition()
4241 static bool isInstantiationOf(EnumDecl *Pattern, in isInstantiationOf()
4242 EnumDecl *Instance) { in isInstantiationOf()
4321 if (EnumDecl *Enum = dyn_cast<EnumDecl>(Other)) in isInstantiationOf()
[all …]
DSemaTemplateInstantiate.cpp426 } else if (EnumDecl *ED = dyn_cast<EnumDecl>(D)) { in PrintInstantiationStack()
2009 } else if (EnumDecl *Enum = dyn_cast<EnumDecl>(NewMember)) { in InstantiateClass()
2144 EnumDecl *Instantiation, EnumDecl *Pattern, in InstantiateEnum()
2147 EnumDecl *PatternDef = Pattern->getDefinition(); in InstantiateEnum()
2570 } else if (auto *Enum = dyn_cast<EnumDecl>(D)) { in InstantiateClassMembers()
2588 EnumDecl *Pattern = Enum->getInstantiatedFromMemberEnum(); in InstantiateClassMembers()
2778 if (isa<EnumDecl>(D)) in findInstantiationOf()
DSemaCXXScopeSpec.cpp228 EnumDecl *ED = enumType->getDecl(); in RequireCompleteDeclContext()
229 if (EnumDecl *Pattern = ED->getInstantiatedFromMemberEnum()) { in RequireCompleteDeclContext()
317 } else if (isa<EnumDecl>(SD)) { in isAcceptableNestedNameSpecifier()
DSemaDecl.cpp1967 if (isa<EnumDecl>(NewTag)) { in MergeTypedefNameDecl()
3857 if (EnumDecl *Enum = dyn_cast_or_null<EnumDecl>(Tag)) in ParsedFreeStandingDeclSpec()
4816 if (!DC || isa<EnumDecl>(DC)) { in HandleDeclarator()
10931 if (auto *ED = dyn_cast<EnumDecl>(D)) { in ActOnStartOfFunctionDef()
11591 bool EnumUnderlyingIsImplicit, const EnumDecl *Prev) { in CheckEnumRedeclaration()
12059 while (isa<RecordDecl>(SearchDC) || isa<EnumDecl>(SearchDC)) in ActOnTag()
12245 const EnumDecl *PrevEnum = cast<EnumDecl>(PrevTagDecl); in ActOnTag()
12308 else if (EnumDecl *ED = dyn_cast<EnumDecl>(Def)) in ActOnTag()
12459 New = EnumDecl::Create(Context, SearchDC, KWLoc, Loc, Name, in ActOnTag()
12460 cast_or_null<EnumDecl>(PrevDecl), ScopedEnum, in ActOnTag()
[all …]
DSemaTemplate.cpp1727 EnumDecl *Enum = EnumT->getDecl(); in MatchTemplateParametersToScopeSpecifier()
5862 else if (isa<EnumDecl>(Specialized) && S.getLangOpts().CPlusPlus11) in CheckTemplateSpecializationScope()
7037 } else if (isa<EnumDecl>(Member)) { in CheckMemberSpecialization()
7038 EnumDecl *PrevEnum; in CheckMemberSpecialization()
7040 (PrevEnum = dyn_cast<EnumDecl>(Previous.getFoundDecl()))) { in CheckMemberSpecialization()
7147 assert(isa<EnumDecl>(Member) && "Only member enums remain"); in CheckMemberSpecialization()
7148 EnumDecl *InstantiationEnum = cast<EnumDecl>(Instantiation); in CheckMemberSpecialization()
7156 cast<EnumDecl>(Member)->setInstantiationOfMemberEnum( in CheckMemberSpecialization()
7157 cast<EnumDecl>(InstantiatedFrom), TSK_ExplicitSpecialization); in CheckMemberSpecialization()
/external/clang/include/clang/Sema/
DTemplate.h515 void InstantiateEnumDefinition(EnumDecl *Enum, EnumDecl *Pattern);
/external/lldb/include/lldb/Core/
DClangForward.h60 class EnumDecl; variable
/external/clang/lib/CodeGen/
DCodeGenTypes.cpp243 if (const EnumDecl *ED = dyn_cast<EnumDecl>(TD)) { in UpdateCompletedType()
587 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl(); in ConvertType()
DCGDebugInfo.h371 void completeType(const EnumDecl *ED);
/external/clang/lib/Frontend/
DASTConsumers.cpp211 const EnumDecl* ED = cast<EnumDecl>(DC); in PrintDeclContext()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp55 bool migrateNSEnumDecl(ASTContext &Ctx, const EnumDecl *EnumDcl,
704 static bool rewriteToNSEnumDecl(const EnumDecl *EnumDcl, in rewriteToNSEnumDecl()
758 const EnumDecl *EnumDcl, in rewriteToNSMacroDecl()
800 const EnumDecl *EnumDcl) { in UseNSOptionsMacro()
908 const EnumDecl *EnumDcl, in migrateNSEnumDecl()
1877 else if (const EnumDecl *ED = dyn_cast<EnumDecl>(*D)) { in HandleTranslationUnit()
1899 if (const EnumDecl *ED = dyn_cast<EnumDecl>(*N)) { in HandleTranslationUnit()
/external/clang/tools/libclang/
DCXType.cpp261 if (const EnumDecl *TD = dyn_cast_or_null<EnumDecl>(D)) { in clang_getEnumDeclIntegerType()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp253 void VisitEnumDecl(EnumDecl *ED);
619 void ASTDeclReader::VisitEnumDecl(EnumDecl *ED) { in VisitEnumDecl()
637 EnumDecl *&OldDef = Reader.EnumDefinitions[ED->getCanonicalDecl()]; in VisitEnumDecl()
657 if (EnumDecl *InstED = ReadDeclAs<EnumDecl>(Record, Idx)) { in VisitEnumDecl()
2698 if (EnumDecl *ED = dyn_cast<EnumDecl>(DC)) in getPrimaryContextForMerging()
3123 D = EnumDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()

123