Lines Matching refs:EnumConstantDecl
2025 auto *ED = cast<EnumConstantDecl>(D); in MergeTypedefNameDecl()
14305 EnumConstantDecl *Sema::CheckEnumConstant(EnumDecl *Enum, in CheckEnumConstant()
14306 EnumConstantDecl *LastEnumConst, in CheckEnumConstant()
14475 return EnumConstantDecl::Create(Context, Enum, IdLoc, Id, EltTy, in CheckEnumConstant()
14490 auto *PrevECD = dyn_cast_or_null<EnumConstantDecl>(PrevDecl); in shouldSkipAnonEnumBody()
14510 EnumConstantDecl *LastEnumConst = in ActOnEnumConstant()
14511 cast_or_null<EnumConstantDecl>(lastEnumConst); in ActOnEnumConstant()
14537 EnumConstantDecl *New = in ActOnEnumConstant()
14549 if (isa<EnumConstantDecl>(PrevDecl)) in ActOnEnumConstant()
14576 static bool ValidDuplicateEnum(EnumConstantDecl *ECD, EnumDecl *Enum) { in ValidDuplicateEnum()
14599 EnumConstantDecl *EnumConstant = dyn_cast<EnumConstantDecl>(DRE->getDecl()); in ValidDuplicateEnum()
14651 typedef SmallVector<EnumConstantDecl *, 3> ECDVector; in CheckForDuplicateEnumValues()
14654 typedef llvm::PointerUnion<EnumConstantDecl*, ECDVector*> DeclOrVector; in CheckForDuplicateEnumValues()
14664 EnumConstantDecl *ECD = cast_or_null<EnumConstantDecl>(Elements[i]); in CheckForDuplicateEnumValues()
14685 EnumConstantDecl *ECD = cast<EnumConstantDecl>(Elements[i]); in CheckForDuplicateEnumValues()
14695 if (EnumConstantDecl *D = Entry.dyn_cast<EnumConstantDecl*>()) { in CheckForDuplicateEnumValues()
14787 EnumConstantDecl *ECD = in ActOnEnumBody()
14788 cast_or_null<EnumConstantDecl>(Elements[i]); in ActOnEnumBody()
14814 EnumConstantDecl *ECD = in ActOnEnumBody()
14815 cast_or_null<EnumConstantDecl>(Elements[i]); in ActOnEnumBody()
14929 auto *ECD = cast_or_null<EnumConstantDecl>(D); in ActOnEnumBody()
14995 EnumConstantDecl *ECD = cast_or_null<EnumConstantDecl>(D); in ActOnEnumBody()