Lines Matching defs:EnumDcl
54 bool migrateNSEnumDecl(ASTContext &Ctx, const EnumDecl *EnumDcl,
702 static bool rewriteToNSEnumDecl(const EnumDecl *EnumDcl,
720 SourceRange R(EnumDcl->getBeginLoc(), EnumDcl->getBeginLoc());
722 SourceLocation EndOfEnumDclLoc = EnumDcl->getEndLoc();
726 SourceRange EnumDclRange(EnumDcl->getBeginLoc(), EndOfEnumDclLoc);
743 trans::findLocationAfterSemi(EnumDcl->getEndLoc(), NS.getASTContext(),
746 SourceLocation BeginOfEnumDclLoc = EnumDcl->getBeginLoc();
757 const EnumDecl *EnumDcl,
761 QualType DesignatedEnumType = EnumDcl->getIntegerType();
773 SourceLocation EndLoc = EnumDcl->getBraceRange().getBegin();
777 CharSourceRange::getCharRange(EnumDcl->getBeginLoc(), EndLoc);
780 SourceLocation StartTypedefLoc = EnumDcl->getEndLoc();
788 const EnumDecl *EnumDcl) {
792 for (auto *Enumerator : EnumDcl->enumerators()) {
896 const EnumDecl *EnumDcl,
898 if (!EnumDcl->isCompleteDefinition() || EnumDcl->getIdentifier() ||
899 EnumDcl->isDeprecated())
915 PP.getSourceManager().getFileID(EnumDcl->getLocation());
928 if (EnumTy->getDecl() == EnumDcl) {
929 bool NSOptions = UseNSOptionsMacro(PP, Ctx, EnumDcl);
933 rewriteToNSMacroDecl(Ctx, EnumDcl, TypedefDcl, *NSAPIObj, commit, !NSOptions);
942 bool NSOptions = UseNSOptionsMacro(PP, Ctx, EnumDcl);
946 bool Res = rewriteToNSEnumDecl(EnumDcl, TypedefDcl, *NSAPIObj,