[cfe-commits] [PATCH] Allow RefactoringTool to write to memory instead of always to disk
Edwin Vane
edwin.vane at intel.com
Wed Jan 9 12:10:53 PST 2013
Hi klimek,
RefactoringTool::run() always writes the result of rewrites to disk.
Instead, make this optional and provide a method for getting the
refactoring results in a memory buffer instead.
Also made ClangTool polymorphic so RefactoringTool could inherit from it
to properly express the IS-A relationship. This change also provides
access to ClangTool's public interface, e.g. mapVirtualFile() which is
important once refactored buffers start living in memory instead of on
disk.
http://llvm-reviews.chandlerc.com/D273
Files:
include/clang/Rewrite/Core/Rewriter.h
include/clang/Tooling/Refactoring.h
include/clang/Tooling/Tooling.h
lib/Rewrite/Core/Rewriter.cpp
lib/Tooling/Refactoring.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D273.1.patch
Type: text/x-patch
Size: 10638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130109/36f6f166/attachment.bin>
More information about the cfe-commits
mailing list