summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/RewriterTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Avoid using set::emplace as it is apparently not supported by gcc 4.7.Daniel Jasper2015-06-161-2/+2
| | | | llvm-svn: 239816
* Tooling: When applying a set of replacements, do deletions beforeDaniel Jasper2015-06-161-0/+13
| | | | | | | | insertions. It is unlikely to be the intention to delete parts of newly inserted code. To do so, changed sorting Replacements at the same offset to have decreasing length. llvm-svn: 239809
* Adds a method overwriteChangedFiles to the Rewriter. This is implemented byManuel Klimek2012-05-221-0/+37
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
OpenPOWER on IntegriCloud