Lines Matching refs:commit
242 const NSAPI &NS, edit::Commit &commit, in rewriteToPropertyDotSyntax() argument
281 commit.insertBefore(receiver->getLocStart(), "("); in rewriteToPropertyDotSyntax()
287 commit.replace(SpaceRange, PropertyDotString); in rewriteToPropertyDotSyntax()
290 commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), ""); in rewriteToPropertyDotSyntax()
291 commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), ""); in rewriteToPropertyDotSyntax()
294 commit.insertWrap("(", receiver->getSourceRange(), ")"); in rewriteToPropertyDotSyntax()
312 commit.replace(Range, PropertyDotString); in rewriteToPropertyDotSyntax()
314 commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), ""); in rewriteToPropertyDotSyntax()
315 commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), ""); in rewriteToPropertyDotSyntax()
334 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
335 edit::rewriteToObjCLiteralSyntax(E, *Consumer.NSAPIObj, commit, &PMap); in VisitObjCMessageExpr()
336 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
340 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
341 edit::rewriteToObjCSubscriptSyntax(E, *Consumer.NSAPIObj, commit); in VisitObjCMessageExpr()
342 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
346 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
348 commit, &PMap); in VisitObjCMessageExpr()
349 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
464 const NSAPI &NS, edit::Commit &commit, in rewriteToObjCProperty() argument
558 commit.replace(CharSourceRange::getCharRange(Getter->getLocStart(), in rewriteToObjCProperty()
569 commit.remove(SourceRange(BeginOfSetterDclLoc, EndLoc)); in rewriteToObjCProperty()
675 const NSAPI &NS, edit::Commit &commit) { in rewriteToObjCInterfaceDecl() argument
701 commit.insertAfterToken(EndLoc, ClassString); in rewriteToObjCInterfaceDecl()
718 const NSAPI &NS, edit::Commit &commit, in rewriteToNSEnumDecl() argument
735 commit.replace(R, ClassString); in rewriteToNSEnumDecl()
741 commit.insertFromRange(TypedefDcl->getLocStart(), EnumDclRange); in rewriteToNSEnumDecl()
751 commit.remove(TDRange); in rewriteToNSEnumDecl()
763 commit.remove(SourceRange(BeginOfEnumDclLoc, EndOfEnumDclLoc)); in rewriteToNSEnumDecl()
772 const NSAPI &NS, edit::Commit &commit, in rewriteToNSMacroDecl() argument
802 commit.replace(R, ClassString); in rewriteToNSMacroDecl()
808 commit.remove(SourceRange(StartTypedefLoc, EndTypedefLoc)); in rewriteToNSMacroDecl()
903 edit::Commit commit(*Editor); in migrateProtocolConformance() local
905 *NSAPIObj, commit); in migrateProtocolConformance()
906 Editor->commit(commit); in migrateProtocolConformance()
956 edit::Commit commit(*Editor); in migrateNSEnumDecl() local
957 rewriteToNSMacroDecl(Ctx, EnumDcl, TypedefDcl, *NSAPIObj, commit, !NSOptions); in migrateNSEnumDecl()
958 Editor->commit(commit); in migrateNSEnumDecl()
969 edit::Commit commit(*Editor); in migrateNSEnumDecl() local
971 commit, NSIntegerName, NSOptions); in migrateNSEnumDecl()
972 Editor->commit(commit); in migrateNSEnumDecl()
994 edit::Commit commit(*ASTC.Editor); in ReplaceWithInstancetype() local
995 commit.replace(R, ClassString); in ReplaceWithInstancetype()
996 ASTC.Editor->commit(commit); in ReplaceWithInstancetype()
1016 edit::Commit commit(*ASTC.Editor); in ReplaceWithClasstype() local
1017 commit.replace(R, ClassString); in ReplaceWithClasstype()
1018 ASTC.Editor->commit(commit); in ReplaceWithClasstype()
1243 edit::Commit commit(*Editor); in migrateProperty() local
1244 rewriteToObjCProperty(Method, SetterMethod, *NSAPIObj, commit, in migrateProperty()
1251 Editor->commit(commit); in migrateProperty()
1257 edit::Commit commit(*Editor); in migrateProperty() local
1258 rewriteToObjCProperty(Method, nullptr /*SetterMethod*/, *NSAPIObj, commit, in migrateProperty()
1265 Editor->commit(commit); in migrateProperty()
1283 edit::Commit commit(*Editor); in migrateNsReturnsInnerPointer() local
1284 commit.insertBefore(OM->getLocEnd(), " NS_RETURNS_INNER_POINTER"); in migrateNsReturnsInnerPointer()
1285 Editor->commit(commit); in migrateNsReturnsInnerPointer()
1295 edit::Commit commit(*Editor); in migratePropertyNsReturnsInnerPointer() local
1296 commit.insertBefore(P->getLocEnd(), " NS_RETURNS_INNER_POINTER "); in migratePropertyNsReturnsInnerPointer()
1297 Editor->commit(commit); in migratePropertyNsReturnsInnerPointer()
1421 edit::Commit commit(*Editor); in AnnotateImplicitBridging() local
1422 commit.insertBefore(FirstFD->getLocStart(), PragmaString); in AnnotateImplicitBridging()
1436 commit.insertAfterToken(EndLoc, PragmaString); in AnnotateImplicitBridging()
1437 Editor->commit(commit); in AnnotateImplicitBridging()
1500 edit::Commit commit(*Editor); in AddCFAnnotations() local
1501 commit.insertAfterToken(FuncDecl->getLocEnd(), AnnotationString); in AddCFAnnotations()
1502 Editor->commit(commit); in AddCFAnnotations()
1513 edit::Commit commit(*Editor); in AddCFAnnotations() local
1514 commit.insertBefore(pd->getLocation(), "CF_CONSUMED "); in AddCFAnnotations()
1515 Editor->commit(commit); in AddCFAnnotations()
1519 edit::Commit commit(*Editor); in AddCFAnnotations() local
1520 commit.insertBefore(pd->getLocation(), "NS_CONSUMED "); in AddCFAnnotations()
1521 Editor->commit(commit); in AddCFAnnotations()
1629 edit::Commit commit(*Editor); in AddCFAnnotations() local
1630 commit.insertBefore(MethodDecl->getLocEnd(), AnnotationString); in AddCFAnnotations()
1631 Editor->commit(commit); in AddCFAnnotations()
1642 edit::Commit commit(*Editor); in AddCFAnnotations() local
1643 commit.insertBefore(pd->getLocation(), "CF_CONSUMED "); in AddCFAnnotations()
1644 Editor->commit(commit); in AddCFAnnotations()
1667 edit::Commit commit(*Editor); in migrateAddMethodAnnotation() local
1668 commit.insertBefore(MethodDecl->getLocEnd(), " NS_CONSUMES_SELF"); in migrateAddMethodAnnotation()
1669 Editor->commit(commit); in migrateAddMethodAnnotation()
1745 edit::Commit commit(*Editor); in inferDesignatedInitializers() local
1746 commit.insert(IFaceM->getLocEnd(), " NS_DESIGNATED_INITIALIZER"); in inferDesignatedInitializers()
1747 Editor->commit(commit); in inferDesignatedInitializers()
1758 edit::Commit commit(*Editor); in InsertFoundation() local
1760 commit.insert(Loc, "#ifndef NS_ENUM\n@import Foundation;\n#endif\n"); in InsertFoundation()
1762 commit.insert(Loc, "#ifndef NS_ENUM\n#import <Foundation/Foundation.h>\n#endif\n"); in InsertFoundation()
1763 Editor->commit(commit); in InsertFoundation()
2203 edit::Commit commit(Editor); in applyEditsToTemp() local
2205 commit.insert(Loc, Entry.Text); in applyEditsToTemp()
2207 commit.remove(Range); in applyEditsToTemp()
2209 commit.replace(Range, Entry.Text); in applyEditsToTemp()
2211 Editor.commit(commit); in applyEditsToTemp()