llvm-project/clang/lib
Edwin Vane 5038ac0fb8 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
llvm-svn: 172219
2013-01-11 17:04:55 +00:00
..
ARCMigrate [arcmt] Follow-up for r171484; make sure when adding brackets enclosing case statements, 2013-01-08 00:58:25 +00:00
AST Issue warning when case value is too large to fit 2013-01-09 23:04:56 +00:00
ASTMatchers Implements multiple parents in the parent map. 2012-12-06 14:42:48 +00:00
Analysis Test commit. 2013-01-11 11:37:08 +00:00
Basic Enable intel_ocl_bicc for x86_64 target only. Remove fix from 171969 that enabled this extension for multiple targets. 2013-01-10 10:41:05 +00:00
CodeGen Enable the new (more C++-like, less broken) EH model when targeting the GNUstep 2013-01-11 15:33:01 +00:00
Driver ToolChains: Minor touchup to use correct type, avoid truncation. 2013-01-10 22:20:02 +00:00
Edit EditedSource.cpp: Appease msvc, to add <cctype>. 2012-12-21 00:21:02 +00:00
Format Correct spacing around new and delete. 2013-01-11 16:09:04 +00:00
Frontend Be more careful about updating the failed-modules set 2013-01-10 02:04:18 +00:00
FrontendTool use early returns to simplify and de-nest 2013-01-06 07:49:41 +00:00
Headers unwind.h: Add include guards and don't mess with visibility if HIDE_EXPORTS is specified. 2013-01-09 19:54:57 +00:00
Lex Rework the realpath nonsense for framework lookups to deal more 2013-01-10 01:43:00 +00:00
Parse Pass false instead of 0 since isStar parameter of getArray has type bool. No functionality change. 2013-01-11 08:33:05 +00:00
Rewrite Fix indent and remove parameter with a matching default value. 2013-01-04 22:40:33 +00:00
Sema Fixed an assertion failure triggered by invalid code. 2013-01-11 14:34:39 +00:00
Serialization Truth in advertising: LocallyScopedExternalDecls actually only contains 2013-01-10 23:43:47 +00:00
StaticAnalyzer [analyzer] Rename the warning: state the issue before the hint of how it 2013-01-11 03:52:44 +00:00
Tooling Allow RefactoringTool to write to memory instead of always to disk 2013-01-11 17:04:55 +00:00
CMakeLists.txt Initial version of formatting library. 2012-12-03 18:12:45 +00:00
Makefile Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00