[cfe-commits] [PATCH] Update users of RefactoringTool
Edwin Vane
edwin.vane at intel.com
Fri Jan 11 08:00:55 PST 2013
Hi klimek,
RefactoringTool::run() no longer writes changes to disk automatically. Updating users of RefactoringTool to explicitly perform the write.
http://llvm-reviews.chandlerc.com/D287
Files:
cpp11-migrate/LoopConvert/LoopConvert.cpp
remove-cstr-calls/RemoveCStrCalls.cpp
Index: cpp11-migrate/LoopConvert/LoopConvert.cpp
===================================================================
--- cpp11-migrate/LoopConvert/LoopConvert.cpp
+++ cpp11-migrate/LoopConvert/LoopConvert.cpp
@@ -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;
}
Index: remove-cstr-calls/RemoveCStrCalls.cpp
===================================================================
--- remove-cstr-calls/RemoveCStrCalls.cpp
+++ remove-cstr-calls/RemoveCStrCalls.cpp
@@ -232,5 +232,5 @@
callee(methodDecl(hasName(StringCStrMethod))),
on(id("arg", expr())))))),
&Callback);
- return Tool.run(newFrontendActionFactory(&Finder));
+ return Tool.runAndSave(newFrontendActionFactory(&Finder));
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D287.1.patch
Type: text/x-patch
Size: 1124 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130111/1985dd08/attachment.bin>
More information about the cfe-commits
mailing list