summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-rename/ClassTestReplacements.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-rename] remove obsolete tests and apply fixes to existingKirill Bobyrev2016-07-161-12/+0
| | | | | | | | Few tests introduced by previous patch had obsolete counterparts. Applied fixes to {Dynamic|Static}CastExpr.cpp llvm-svn: 275681
* clang-rename: try to make ClassTestReplacements more reliableMiklos Vajna2016-06-271-3/+4
| | | | | | | | | | | | | | | | | As it failed on e.g. <http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/7089/steps/ninja%20check%201/logs/FAIL%3A%20Clang%20Tools%3A%3AClassTestReplacements.cpp> with: Trouble iterating over directory '/home/buildbots/ppc64be-clang-test/clang-ppc64be/stage1/tools/clang/tools/extra/test/clang-rename/Output': No such file or directory A reliable way to trigger the problem locally is to run all clang-rename tests in parallel in a loop: for i in $(seq 1 100); do ~/git/llvm/workdir/bin/llvm-lit -v -j15 . || break; done Change the test script to be more similar to test/Tooling/clang-check.cpp, that way the above command doesn't fail for me anymore. llvm-svn: 273941
* clang-rename: add a -export-fixes optionMiklos Vajna2016-06-271-0/+11
Use case: a class is declared in a header, and defined in two translation units. clang-rename is asked to rename a class member that's referenced in both translation units. Using -i is not possible, as in case the first clang-rename invocation touches the header, the second invocation will result in compilation errors. Using -export-fixes handles this situation, each invocation can work on the original source, and at the end the user can apply the replacements with clang-apply-replacements. Reviewers: klimek Differential Revision: http://reviews.llvm.org/D21676 llvm-svn: 273910
OpenPOWER on IntegriCloud