Home
last modified time | relevance | path

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

12

/external/clang/include/clang/AST/
DDecl.h209 if (isa<EnumDecl>(DC)) in isCXXClassMember()
2224 static EnumConstantDecl *Create(ASTContext &C, EnumDecl *DC,
2676 class EnumDecl : public TagDecl {
2706 EnumDecl(DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, in EnumDecl() function
2707 IdentifierInfo *Id, EnumDecl *PrevDecl, in EnumDecl()
2720 void setInstantiationOfMemberEnum(ASTContext &C, EnumDecl *ED,
2723 EnumDecl *getCanonicalDecl() { in getCanonicalDecl()
2724 return cast<EnumDecl>(TagDecl::getCanonicalDecl()); in getCanonicalDecl()
2726 const EnumDecl *getCanonicalDecl() const { in getCanonicalDecl()
2727 return cast<EnumDecl>(TagDecl::getCanonicalDecl()); in getCanonicalDecl()
[all …]
DType.h80 class EnumDecl;
3198 explicit EnumType(const EnumDecl *D)
3203 EnumDecl *getDecl() const {
3204 return reinterpret_cast<EnumDecl*>(TagType::getDecl());
4868 extern bool IsEnumDeclComplete(EnumDecl *);
4869 extern bool IsEnumDeclScoped(EnumDecl *);
DCanonicalType.h660 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(EnumDecl *, getDecl)
/external/clang/lib/AST/
DMangle.cpp49 while (isa<BlockDecl>(ExpectedDC) || isa<EnumDecl>(ExpectedDC)) in checkMangleDC()
136 while (isa<BlockDecl>(DC) || isa<EnumDecl>(DC)) in mangleBlock()
DDecl.cpp2613 void EnumDecl::anchor() { } in anchor()
2615 EnumDecl *EnumDecl::Create(ASTContext &C, DeclContext *DC, in Create()
2618 EnumDecl *PrevDecl, bool IsScoped, in Create()
2620 EnumDecl *Enum = new (C) EnumDecl(DC, StartLoc, IdLoc, Id, PrevDecl, in Create()
2626 EnumDecl *EnumDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
2627 void *Mem = AllocateDeserializedDecl(C, ID, sizeof(EnumDecl)); in CreateDeserialized()
2628 return new (Mem) EnumDecl(0, SourceLocation(), SourceLocation(), 0, 0, in CreateDeserialized()
2632 void EnumDecl::completeDefinition(QualType NewType, in completeDefinition()
2645 TemplateSpecializationKind EnumDecl::getTemplateSpecializationKind() const { in getTemplateSpecializationKind()
2652 void EnumDecl::setTemplateSpecializationKind(TemplateSpecializationKind TSK, in setTemplateSpecializationKind()
[all …]
DASTImporter.cpp110 bool ImportDefinition(EnumDecl *From, EnumDecl *To,
123 bool IsStructuralMatch(EnumDecl *FromEnum, EnumDecl *ToRecord);
131 Decl *VisitEnumDecl(EnumDecl *D);
1038 EnumDecl *D1, EnumDecl *D2) { in IsStructurallyEquivalent()
1039 EnumDecl::enumerator_iterator EC2 = D2->enumerator_begin(), in IsStructurallyEquivalent()
1041 for (EnumDecl::enumerator_iterator EC1 = D1->enumerator_begin(), in IsStructurallyEquivalent()
1255 } else if (EnumDecl *Enum1 = dyn_cast<EnumDecl>(D1)) { in Finish()
1256 if (EnumDecl *Enum2 = dyn_cast<EnumDecl>(D2)) { in Finish()
1627 EnumDecl *ToDecl in VisitEnumType()
1628 = dyn_cast_or_null<EnumDecl>(Importer.Import(T->getDecl())); in VisitEnumType()
[all …]
DDumpXML.cpp578 void visitEnumDeclAttrs(EnumDecl *D) { in visitEnumDeclAttrs()
582 void visitEnumDeclChildren(EnumDecl *D) { in visitEnumDeclChildren()
DDeclPrinter.cpp53 void VisitEnumDecl(EnumDecl *D);
341 void DeclPrinter::VisitEnumDecl(EnumDecl *D) { in VisitEnumDecl()
/external/clang/include/clang/Sema/
DTemplate.h392 Decl *VisitEnumDecl(EnumDecl *D);
487 void InstantiateEnumDefinition(EnumDecl *Enum, EnumDecl *Pattern);
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp560 Decl *TemplateDeclInstantiator::VisitEnumDecl(EnumDecl *D) { in VisitEnumDecl()
561 EnumDecl *PrevDecl = 0; in VisitEnumDecl()
567 PrevDecl = cast<EnumDecl>(Prev); in VisitEnumDecl()
570 EnumDecl *Enum = EnumDecl::Create(SemaRef.Context, Owner, D->getLocStart(), in VisitEnumDecl()
600 EnumDecl *Def = D->getDefinition(); in VisitEnumDecl()
633 EnumDecl *Enum, EnumDecl *Pattern) { in InstantiateEnumDefinition()
642 for (EnumDecl::enumerator_iterator EC = Pattern->enumerator_begin(), in InstantiateEnumDefinition()
3079 static bool isInstantiationOf(EnumDecl *Pattern, in isInstantiationOf()
3080 EnumDecl *Instance) { in isInstantiationOf()
3158 if (EnumDecl *Enum = dyn_cast<EnumDecl>(Other)) in isInstantiationOf()
[all …]
DSemaTemplateInstantiate.cpp496 } else if (EnumDecl *ED = dyn_cast<EnumDecl>(D)) { in PrintInstantiationStack()
1908 } else if (EnumDecl *Enum = dyn_cast<EnumDecl>(NewMember)) { in InstantiateClass()
2037 EnumDecl *Instantiation, EnumDecl *Pattern, in InstantiateEnum()
2040 EnumDecl *PatternDef = Pattern->getDefinition(); in InstantiateEnum()
2398 } else if (EnumDecl *Enum = dyn_cast<EnumDecl>(*D)) { in InstantiateClassMembers()
2416 EnumDecl *Pattern = Enum->getInstantiatedFromMemberEnum(); in InstantiateClassMembers()
DSemaCXXScopeSpec.cpp246 EnumDecl *ED = enumType->getDecl(); in RequireCompleteDeclContext()
247 if (EnumDecl *Pattern = ED->getInstantiatedFromMemberEnum()) { in RequireCompleteDeclContext()
295 (Context.getLangOpts().CPlusPlus0x && isa<EnumDecl>(SD))) in isAcceptableNestedNameSpecifier()
DSemaDecl.cpp2471 if (EnumDecl *Enum = dyn_cast_or_null<EnumDecl>(Tag)) in ParsedFreeStandingDeclSpec()
2486 Tag && isa<EnumDecl>(Tag)) { in ParsedFreeStandingDeclSpec()
7353 if (EnumDecl *ED = dyn_cast<EnumDecl>(D)) { in ActOnStartOfFunctionDef()
7354 for (EnumDecl::enumerator_iterator EI = ED->enumerator_begin(), in ActOnStartOfFunctionDef()
7825 const EnumDecl *Prev) { in CheckEnumRedeclaration()
8138 while (isa<RecordDecl>(SearchDC) || isa<EnumDecl>(SearchDC)) in ActOnTag()
8297 const EnumDecl *PrevEnum = cast<EnumDecl>(PrevTagDecl); in ActOnTag()
8346 else if (EnumDecl *ED = dyn_cast<EnumDecl>(Def)) in ActOnTag()
8479 New = EnumDecl::Create(Context, SearchDC, KWLoc, Loc, Name, in ActOnTag()
8480 cast_or_null<EnumDecl>(PrevDecl), ScopedEnum, in ActOnTag()
[all …]
DSemaTemplate.cpp1654 EnumDecl *Enum = EnumT->getDecl(); in MatchTemplateParametersToScopeSpecifier()
4838 else if (isa<EnumDecl>(Specialized) && S.getLangOpts().CPlusPlus0x) in CheckTemplateSpecializationScope()
5958 } else if (isa<EnumDecl>(Member)) { in CheckMemberSpecialization()
5959 EnumDecl *PrevEnum; in CheckMemberSpecialization()
5961 (PrevEnum = dyn_cast<EnumDecl>(Previous.getFoundDecl()))) { in CheckMemberSpecialization()
6069 assert(isa<EnumDecl>(Member) && "Only member enums remain"); in CheckMemberSpecialization()
6070 EnumDecl *InstantiationEnum = cast<EnumDecl>(Instantiation); in CheckMemberSpecialization()
6078 cast<EnumDecl>(Member)->setInstantiationOfMemberEnum( in CheckMemberSpecialization()
6079 cast<EnumDecl>(InstantiatedFrom), TSK_ExplicitSpecialization); in CheckMemberSpecialization()
DSemaAccess.cpp70 if (isa<EnumDecl>(DC)) in FindDeclaringClass()
71 DC = cast<EnumDecl>(DC)->getDeclContext(); in FindDeclaringClass()
/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.m165 // CHECK-source: usrs.m:5:1: EnumDecl=:5:1 (Definition) Extent=[5:1 - 8:2]
168 // CHECK-source: usrs.m:10:1: EnumDecl=:10:1 (Definition) Extent=[10:1 - 13:2]
175 // CHECK-source: usrs.m:20:6: EnumDecl=Pizza:20:6 (Definition) Extent=[20:1 - 23:2]
Dc-index-api-loadTU-test.m106 // CHECK: c-index-api-loadTU-test.m:42:1: EnumDecl=:42:1 (Definition) Extent=[42:1 - 44:2]
/external/clang/lib/Frontend/
DASTConsumers.cpp126 const EnumDecl* ED = cast<EnumDecl>(DC); in PrintDeclContext()
/external/clang/lib/CodeGen/
DCodeGenTypes.cpp241 if (const EnumDecl *ED = dyn_cast<EnumDecl>(TD)) { in UpdateCompletedType()
534 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl(); in ConvertType()
DCGDebugInfo.h103 llvm::DIType CreateEnumType(const EnumDecl *ED);
DCGDebugInfo.cpp1567 llvm::DIType CGDebugInfo::CreateEnumType(const EnumDecl *ED) { in CreateEnumType()
1572 for (EnumDecl::enumerator_iterator in CreateEnumType()
2617 if (const EnumDecl *ED = dyn_cast<EnumDecl>(ECD->getDeclContext())) in EmitGlobalVariable()
/external/clang/tools/libclang/
DCXType.cpp209 if (EnumDecl *TD = dyn_cast_or_null<EnumDecl>(D)) { in clang_getEnumDeclIntegerType()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp229 void VisitEnumDecl(EnumDecl *ED);
445 void ASTDeclReader::VisitEnumDecl(EnumDecl *ED) { in VisitEnumDecl()
458 if (EnumDecl *InstED = ReadDeclAs<EnumDecl>(Record, Idx)) { in VisitEnumDecl()
1917 D = EnumDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
/external/clang/lib/Parse/
DParseDecl.cpp3032 void Parser::ParseEnumBody(SourceLocation StartLoc, Decl *EnumDecl) { in ParseEnumBody() argument
3035 Actions.ActOnTagStartDefinition(getCurScope(), EnumDecl); in ParseEnumBody()
3069 Decl *EnumConstDecl = Actions.ActOnEnumConstant(getCurScope(), EnumDecl, in ParseEnumBody()
3110 EnumDecl, EnumConstantDecls.data(), in ParseEnumBody()
3115 Actions.ActOnTagFinishDefinition(getCurScope(), EnumDecl, in ParseEnumBody()

12