Richard Smith
802c4b7015
Fix undefined behavior: member function calls where 'this' is a null pointer.
...
llvm-svn: 162430
2012-08-23 06:16:52 +00:00
Benjamin Kramer
b696a3639d
Move sideeffecting call out of assert().
...
llvm-svn: 158146
2012-06-07 09:57:21 +00:00
Manuel Klimek
0a8b9cd1e7
Switches the RewriterTestContext away from PathV1.
...
Now the ToolingTests all work on Windows, and they also clean up their temporary directory if they don't crash.
llvm-svn: 158112
2012-06-06 21:28:13 +00:00
Manuel Klimek
ee56b541d8
Fixes the refactoring library test in VS2010.
...
llvm-svn: 158019
2012-06-05 20:16:30 +00:00
NAKAMURA Takumi
42e5ac409c
clang/unittests/Tooling/RewriterTestContext.h: Don't try to remove TemporaryDirectory.
...
llvm-svn: 157530
2012-05-27 13:10:14 +00:00
Manuel Klimek
78d084d942
Adds a method overwriteChangedFiles to the Rewriter. This is implemented by
...
first writing the changed files to a temporary location and then overwriting
the original files atomically.
Also adds a RewriterTestContext to aid unit testing rewrting logic in general.
llvm-svn: 157260
2012-05-22 17:01:35 +00:00