Lines Matching refs:commit
232 const NSAPI &NS, edit::Commit &commit, in rewriteToPropertyDotSyntax() argument
271 commit.insertBefore(receiver->getLocStart(), "("); in rewriteToPropertyDotSyntax()
277 commit.replace(SpaceRange, PropertyDotString); in rewriteToPropertyDotSyntax()
280 commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), ""); in rewriteToPropertyDotSyntax()
281 commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), ""); in rewriteToPropertyDotSyntax()
284 commit.insertWrap("(", receiver->getSourceRange(), ")"); in rewriteToPropertyDotSyntax()
302 commit.replace(Range, PropertyDotString); in rewriteToPropertyDotSyntax()
304 commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), ""); in rewriteToPropertyDotSyntax()
305 commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), ""); in rewriteToPropertyDotSyntax()
324 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
325 edit::rewriteToObjCLiteralSyntax(E, *Consumer.NSAPIObj, commit, &PMap); in VisitObjCMessageExpr()
326 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
330 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
331 edit::rewriteToObjCSubscriptSyntax(E, *Consumer.NSAPIObj, commit); in VisitObjCMessageExpr()
332 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
336 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
338 commit, &PMap); in VisitObjCMessageExpr()
339 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
454 const NSAPI &NS, edit::Commit &commit, in rewriteToObjCProperty() argument
548 commit.replace(CharSourceRange::getCharRange(Getter->getLocStart(), in rewriteToObjCProperty()
559 commit.remove(SourceRange(BeginOfSetterDclLoc, EndLoc)); in rewriteToObjCProperty()
663 const NSAPI &NS, edit::Commit &commit) { in rewriteToObjCInterfaceDecl() argument
689 commit.insertAfterToken(EndLoc, ClassString); in rewriteToObjCInterfaceDecl()
706 const NSAPI &NS, edit::Commit &commit, in rewriteToNSEnumDecl() argument
723 commit.replace(R, ClassString); in rewriteToNSEnumDecl()
729 commit.insertFromRange(TypedefDcl->getLocStart(), EnumDclRange); in rewriteToNSEnumDecl()
739 commit.remove(TDRange); in rewriteToNSEnumDecl()
751 commit.remove(SourceRange(BeginOfEnumDclLoc, EndOfEnumDclLoc)); in rewriteToNSEnumDecl()
760 const NSAPI &NS, edit::Commit &commit, in rewriteToNSMacroDecl() argument
790 commit.replace(R, ClassString); in rewriteToNSMacroDecl()
796 commit.remove(SourceRange(StartTypedefLoc, EndTypedefLoc)); in rewriteToNSMacroDecl()
891 edit::Commit commit(*Editor); in migrateProtocolConformance() local
893 *NSAPIObj, commit); in migrateProtocolConformance()
894 Editor->commit(commit); in migrateProtocolConformance()
944 edit::Commit commit(*Editor); in migrateNSEnumDecl() local
945 rewriteToNSMacroDecl(Ctx, EnumDcl, TypedefDcl, *NSAPIObj, commit, !NSOptions); in migrateNSEnumDecl()
946 Editor->commit(commit); in migrateNSEnumDecl()
957 edit::Commit commit(*Editor); in migrateNSEnumDecl() local
959 commit, NSIntegerName, NSOptions); in migrateNSEnumDecl()
960 Editor->commit(commit); in migrateNSEnumDecl()
982 edit::Commit commit(*ASTC.Editor); in ReplaceWithInstancetype() local
983 commit.replace(R, ClassString); in ReplaceWithInstancetype()
984 ASTC.Editor->commit(commit); in ReplaceWithInstancetype()
1004 edit::Commit commit(*ASTC.Editor); in ReplaceWithClasstype() local
1005 commit.replace(R, ClassString); in ReplaceWithClasstype()
1006 ASTC.Editor->commit(commit); in ReplaceWithClasstype()
1231 edit::Commit commit(*Editor); in migrateProperty() local
1232 rewriteToObjCProperty(Method, SetterMethod, *NSAPIObj, commit, in migrateProperty()
1239 Editor->commit(commit); in migrateProperty()
1245 edit::Commit commit(*Editor); in migrateProperty() local
1246 rewriteToObjCProperty(Method, nullptr /*SetterMethod*/, *NSAPIObj, commit, in migrateProperty()
1253 Editor->commit(commit); in migrateProperty()
1271 edit::Commit commit(*Editor); in migrateNsReturnsInnerPointer() local
1272 commit.insertBefore(OM->getLocEnd(), " NS_RETURNS_INNER_POINTER"); in migrateNsReturnsInnerPointer()
1273 Editor->commit(commit); in migrateNsReturnsInnerPointer()
1283 edit::Commit commit(*Editor); in migratePropertyNsReturnsInnerPointer() local
1284 commit.insertBefore(P->getLocEnd(), " NS_RETURNS_INNER_POINTER "); in migratePropertyNsReturnsInnerPointer()
1285 Editor->commit(commit); in migratePropertyNsReturnsInnerPointer()
1409 edit::Commit commit(*Editor); in AnnotateImplicitBridging() local
1410 commit.insertBefore(FirstFD->getLocStart(), PragmaString); in AnnotateImplicitBridging()
1424 commit.insertAfterToken(EndLoc, PragmaString); in AnnotateImplicitBridging()
1425 Editor->commit(commit); in AnnotateImplicitBridging()
1486 edit::Commit commit(*Editor); in AddCFAnnotations() local
1487 commit.insertAfterToken(FuncDecl->getLocEnd(), AnnotationString); in AddCFAnnotations()
1488 Editor->commit(commit); in AddCFAnnotations()
1499 edit::Commit commit(*Editor); in AddCFAnnotations() local
1500 commit.insertBefore(pd->getLocation(), "CF_CONSUMED "); in AddCFAnnotations()
1501 Editor->commit(commit); in AddCFAnnotations()
1505 edit::Commit commit(*Editor); in AddCFAnnotations() local
1506 commit.insertBefore(pd->getLocation(), "NS_CONSUMED "); in AddCFAnnotations()
1507 Editor->commit(commit); in AddCFAnnotations()
1613 edit::Commit commit(*Editor); in AddCFAnnotations() local
1614 commit.insertBefore(MethodDecl->getLocEnd(), AnnotationString); in AddCFAnnotations()
1615 Editor->commit(commit); in AddCFAnnotations()
1626 edit::Commit commit(*Editor); in AddCFAnnotations() local
1627 commit.insertBefore(pd->getLocation(), "CF_CONSUMED "); in AddCFAnnotations()
1628 Editor->commit(commit); in AddCFAnnotations()
1651 edit::Commit commit(*Editor); in migrateAddMethodAnnotation() local
1652 commit.insertBefore(MethodDecl->getLocEnd(), " NS_CONSUMES_SELF"); in migrateAddMethodAnnotation()
1653 Editor->commit(commit); in migrateAddMethodAnnotation()
1729 edit::Commit commit(*Editor); in inferDesignatedInitializers() local
1730 commit.insert(IFaceM->getLocEnd(), " NS_DESIGNATED_INITIALIZER"); in inferDesignatedInitializers()
1731 Editor->commit(commit); in inferDesignatedInitializers()
1742 edit::Commit commit(*Editor); in InsertFoundation() local
1744 commit.insert(Loc, "#ifndef NS_ENUM\n@import Foundation;\n#endif\n"); in InsertFoundation()
1746 commit.insert(Loc, "#ifndef NS_ENUM\n#import <Foundation/Foundation.h>\n#endif\n"); in InsertFoundation()
1747 Editor->commit(commit); in InsertFoundation()
2186 edit::Commit commit(Editor); in applyEditsToTemp() local
2188 commit.insert(Loc, Entry.Text); in applyEditsToTemp()
2190 commit.remove(Range); in applyEditsToTemp()
2192 commit.replace(Range, Entry.Text); in applyEditsToTemp()
2194 Editor.commit(commit); in applyEditsToTemp()