Lines Matching defs:EnumDcl
55 bool migrateNSEnumDecl(ASTContext &Ctx, const EnumDecl *EnumDcl,
703 static bool rewriteToNSEnumDecl(const EnumDecl *EnumDcl,
721 SourceRange R(EnumDcl->getBeginLoc(), EnumDcl->getBeginLoc());
723 SourceLocation EndOfEnumDclLoc = EnumDcl->getEndLoc();
727 SourceRange EnumDclRange(EnumDcl->getBeginLoc(), EndOfEnumDclLoc);
744 trans::findLocationAfterSemi(EnumDcl->getEndLoc(), NS.getASTContext(),
747 SourceLocation BeginOfEnumDclLoc = EnumDcl->getBeginLoc();
758 const EnumDecl *EnumDcl,
762 QualType DesignatedEnumType = EnumDcl->getIntegerType();
774 SourceLocation EndLoc = EnumDcl->getBraceRange().getBegin();
778 CharSourceRange::getCharRange(EnumDcl->getBeginLoc(), EndLoc);
781 SourceLocation StartTypedefLoc = EnumDcl->getEndLoc();
789 const EnumDecl *EnumDcl) {
793 for (auto *Enumerator : EnumDcl->enumerators()) {
897 const EnumDecl *EnumDcl,
899 if (!EnumDcl->isCompleteDefinition() || EnumDcl->getIdentifier() ||
900 EnumDcl->isDeprecated())
916 PP.getSourceManager().getFileID(EnumDcl->getLocation());
929 if (EnumTy->getDecl() == EnumDcl) {
930 bool NSOptions = UseNSOptionsMacro(PP, Ctx, EnumDcl);
934 rewriteToNSMacroDecl(Ctx, EnumDcl, TypedefDcl, *NSAPIObj, commit, !NSOptions);
943 bool NSOptions = UseNSOptionsMacro(PP, Ctx, EnumDcl);
947 bool Res = rewriteToNSEnumDecl(EnumDcl, TypedefDcl, *NSAPIObj,