[cfe-commits] [clang-tools-extra] r172218 - in /clang-tools-extra/trunk: cpp11-migrate/LoopConvert/LoopConvert.cpp remove-cstr-calls/RemoveCStrCalls.cpp

Edwin Vane edwin.vane at intel.com
Fri Jan 11 09:04:10 PST 2013


Author: revane
Date: Fri Jan 11 11:04:09 2013
New Revision: 172218

URL: http://llvm.org/viewvc/llvm-project?rev=172218&view=rev
Log:
Update users of RefactoringTool
    
RefactoringTool::run() no longer writes changes to disk automatically. Updating users of RefactoringTool to explicitly perform the write.
    
Reviewers: klimek


Modified:
    clang-tools-extra/trunk/cpp11-migrate/LoopConvert/LoopConvert.cpp
    clang-tools-extra/trunk/remove-cstr-calls/RemoveCStrCalls.cpp

Modified: clang-tools-extra/trunk/cpp11-migrate/LoopConvert/LoopConvert.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/cpp11-migrate/LoopConvert/LoopConvert.cpp?rev=172218&r1=172217&r2=172218&view=diff
==============================================================================
--- clang-tools-extra/trunk/cpp11-migrate/LoopConvert/LoopConvert.cpp (original)
+++ clang-tools-extra/trunk/cpp11-migrate/LoopConvert/LoopConvert.cpp Fri Jan 11 11:04:09 2013
@@ -53,7 +53,7 @@
                                   &RejectedChanges,
                                   MaxRisk, LFK_PseudoArray);
   Finder.addMatcher(makePseudoArrayLoopMatcher(), &PseudoarrrayLoopFixer);
-  if (int result = LoopTool.run(newFrontendActionFactory(&Finder))) {
+  if (int result = LoopTool.runAndSave(newFrontendActionFactory(&Finder))) {
     llvm::errs() << "Error encountered during translation.\n";
     return result;
   }

Modified: clang-tools-extra/trunk/remove-cstr-calls/RemoveCStrCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/remove-cstr-calls/RemoveCStrCalls.cpp?rev=172218&r1=172217&r2=172218&view=diff
==============================================================================
--- clang-tools-extra/trunk/remove-cstr-calls/RemoveCStrCalls.cpp (original)
+++ clang-tools-extra/trunk/remove-cstr-calls/RemoveCStrCalls.cpp Fri Jan 11 11:04:09 2013
@@ -232,5 +232,5 @@
                   callee(methodDecl(hasName(StringCStrMethod))),
                   on(id("arg", expr())))))),
       &Callback);
-  return Tool.run(newFrontendActionFactory(&Finder));
+  return Tool.runAndSave(newFrontendActionFactory(&Finder));
 }





More information about the cfe-commits mailing list