• Home
  • Raw
  • Download

Lines Matching refs:commit

236                                   const NSAPI &NS, edit::Commit &commit,  in rewriteToPropertyDotSyntax()  argument
275 commit.insertBefore(receiver->getBeginLoc(), "("); in rewriteToPropertyDotSyntax()
281 commit.replace(SpaceRange, PropertyDotString); in rewriteToPropertyDotSyntax()
284 commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), ""); in rewriteToPropertyDotSyntax()
285 commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), ""); in rewriteToPropertyDotSyntax()
288 commit.insertWrap("(", receiver->getSourceRange(), ")"); in rewriteToPropertyDotSyntax()
306 commit.replace(Range, PropertyDotString); in rewriteToPropertyDotSyntax()
308 commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), ""); in rewriteToPropertyDotSyntax()
309 commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), ""); in rewriteToPropertyDotSyntax()
327 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
328 edit::rewriteToObjCLiteralSyntax(E, *Consumer.NSAPIObj, commit, &PMap); in VisitObjCMessageExpr()
329 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
333 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
334 edit::rewriteToObjCSubscriptSyntax(E, *Consumer.NSAPIObj, commit); in VisitObjCMessageExpr()
335 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
339 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
341 commit, &PMap); in VisitObjCMessageExpr()
342 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
457 const NSAPI &NS, edit::Commit &commit, in rewriteToObjCProperty() argument
551 commit.replace(CharSourceRange::getCharRange(Getter->getBeginLoc(), in rewriteToObjCProperty()
562 commit.remove(SourceRange(BeginOfSetterDclLoc, EndLoc)); in rewriteToObjCProperty()
667 const NSAPI &NS, edit::Commit &commit) { in rewriteToObjCInterfaceDecl() argument
693 commit.insertAfterToken(EndLoc, ClassString); in rewriteToObjCInterfaceDecl()
710 const NSAPI &NS, edit::Commit &commit, in rewriteToNSEnumDecl() argument
727 commit.replace(R, ClassString); in rewriteToNSEnumDecl()
733 commit.insertFromRange(TypedefDcl->getBeginLoc(), EnumDclRange); in rewriteToNSEnumDecl()
743 commit.remove(TDRange); in rewriteToNSEnumDecl()
756 commit.remove(SourceRange(BeginOfEnumDclLoc, EndOfEnumDclLoc)); in rewriteToNSEnumDecl()
765 const NSAPI &NS, edit::Commit &commit, in rewriteToNSMacroDecl() argument
784 commit.replace(R, ClassString); in rewriteToNSMacroDecl()
790 commit.remove(SourceRange(StartTypedefLoc, EndTypedefLoc)); in rewriteToNSMacroDecl()
885 edit::Commit commit(*Editor); in migrateProtocolConformance() local
887 *NSAPIObj, commit); in migrateProtocolConformance()
888 Editor->commit(commit); in migrateProtocolConformance()
938 edit::Commit commit(*Editor); in migrateNSEnumDecl() local
939 rewriteToNSMacroDecl(Ctx, EnumDcl, TypedefDcl, *NSAPIObj, commit, !NSOptions); in migrateNSEnumDecl()
940 Editor->commit(commit); in migrateNSEnumDecl()
951 edit::Commit commit(*Editor); in migrateNSEnumDecl() local
953 commit, NSIntegerName, NSOptions); in migrateNSEnumDecl()
954 Editor->commit(commit); in migrateNSEnumDecl()
976 edit::Commit commit(*ASTC.Editor); in ReplaceWithInstancetype() local
977 commit.replace(R, ClassString); in ReplaceWithInstancetype()
978 ASTC.Editor->commit(commit); in ReplaceWithInstancetype()
998 edit::Commit commit(*ASTC.Editor); in ReplaceWithClasstype() local
999 commit.replace(R, ClassString); in ReplaceWithClasstype()
1000 ASTC.Editor->commit(commit); in ReplaceWithClasstype()
1224 edit::Commit commit(*Editor); in migrateProperty() local
1225 rewriteToObjCProperty(Method, SetterMethod, *NSAPIObj, commit, in migrateProperty()
1232 Editor->commit(commit); in migrateProperty()
1238 edit::Commit commit(*Editor); in migrateProperty() local
1239 rewriteToObjCProperty(Method, nullptr /*SetterMethod*/, *NSAPIObj, commit, in migrateProperty()
1246 Editor->commit(commit); in migrateProperty()
1264 edit::Commit commit(*Editor); in migrateNsReturnsInnerPointer() local
1265 commit.insertBefore(OM->getEndLoc(), " NS_RETURNS_INNER_POINTER"); in migrateNsReturnsInnerPointer()
1266 Editor->commit(commit); in migrateNsReturnsInnerPointer()
1276 edit::Commit commit(*Editor); in migratePropertyNsReturnsInnerPointer() local
1277 commit.insertBefore(P->getEndLoc(), " NS_RETURNS_INNER_POINTER "); in migratePropertyNsReturnsInnerPointer()
1278 Editor->commit(commit); in migratePropertyNsReturnsInnerPointer()
1402 edit::Commit commit(*Editor); in AnnotateImplicitBridging() local
1403 commit.insertBefore(FirstFD->getBeginLoc(), PragmaString); in AnnotateImplicitBridging()
1417 commit.insertAfterToken(EndLoc, PragmaString); in AnnotateImplicitBridging()
1418 Editor->commit(commit); in AnnotateImplicitBridging()
1479 edit::Commit commit(*Editor); in AddCFAnnotations() local
1480 commit.insertAfterToken(FuncDecl->getEndLoc(), AnnotationString); in AddCFAnnotations()
1481 Editor->commit(commit); in AddCFAnnotations()
1492 edit::Commit commit(*Editor); in AddCFAnnotations() local
1493 commit.insertBefore(pd->getLocation(), "CF_CONSUMED "); in AddCFAnnotations()
1494 Editor->commit(commit); in AddCFAnnotations()
1498 edit::Commit commit(*Editor); in AddCFAnnotations() local
1499 commit.insertBefore(pd->getLocation(), "NS_CONSUMED "); in AddCFAnnotations()
1500 Editor->commit(commit); in AddCFAnnotations()
1604 edit::Commit commit(*Editor); in AddCFAnnotations() local
1605 commit.insertBefore(MethodDecl->getEndLoc(), AnnotationString); in AddCFAnnotations()
1606 Editor->commit(commit); in AddCFAnnotations()
1618 edit::Commit commit(*Editor); in AddCFAnnotations() local
1619 commit.insertBefore(pd->getLocation(), "CF_CONSUMED "); in AddCFAnnotations()
1620 Editor->commit(commit); in AddCFAnnotations()
1646 edit::Commit commit(*Editor); in migrateAddMethodAnnotation() local
1647 commit.insertBefore(MethodDecl->getEndLoc(), " NS_CONSUMES_SELF"); in migrateAddMethodAnnotation()
1648 Editor->commit(commit); in migrateAddMethodAnnotation()
1721 edit::Commit commit(*Editor); in inferDesignatedInitializers() local
1722 commit.insert(IFaceM->getEndLoc(), " NS_DESIGNATED_INITIALIZER"); in inferDesignatedInitializers()
1723 Editor->commit(commit); in inferDesignatedInitializers()
1739 edit::Commit commit(*Editor); in InsertFoundation() local
1741 commit.insert(Loc, "#ifndef NS_ENUM\n@import Foundation;\n#endif\n"); in InsertFoundation()
1743 commit.insert(Loc, "#ifndef NS_ENUM\n#import <Foundation/Foundation.h>\n#endif\n"); in InsertFoundation()
1744 Editor->commit(commit); in InsertFoundation()
2180 edit::Commit commit(Editor); in applyEditsToTemp() local
2182 commit.insert(Loc, Entry.Text); in applyEditsToTemp()
2184 commit.remove(Range); in applyEditsToTemp()
2186 commit.replace(Range, Entry.Text); in applyEditsToTemp()
2188 Editor.commit(commit); in applyEditsToTemp()