diff options
author | Edwin Vane <edwin.vane@intel.com> | 2013-01-11 17:04:55 +0000 |
---|---|---|
committer | Edwin Vane <edwin.vane@intel.com> | 2013-01-11 17:04:55 +0000 |
commit | d088a5f966c31462280d5ace29febc6889834611 (patch) | |
tree | 275911f1c5bbf71b4dfbc799327223408a1f4535 /lib/Frontend/ASTUnit.cpp | |
parent | 088dab50b76d235cd5b0e701048efccfcea3677e (diff) |
Allow RefactoringTool to write to memory instead of always to disk
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.
Reviewers: klimek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172219 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ASTUnit.cpp')
0 files changed, 0 insertions, 0 deletions