summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-rename/Variable.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [refactor] Move clang-rename into the clang repositoryAlex Lorenz2017-06-301-33/+0
| | | | | | | | | | | | The core engine of clang-rename will be used for local and global renames in the new refactoring engine, as mentioned in http://lists.llvm.org/pipermail/cfe-dev/2017-June/054286.html. The clang-rename tool is still supported but might get deprecated in the future. Differential Revision: https://reviews.llvm.org/D34696 llvm-svn: 306840
* [clang-rename] Prune away AST nodes more correctly and effectively when ↵Benjamin Kramer2016-11-221-5/+6
| | | | | | | | | | | | | | | | | | looking for a point Due to the way the preprocessor works nodes can be half in a macro or a different file. This means checking the file name of the start location of a Decl is not a correct way of checking if the entire Decl is in that file. Remove that flawed assumption and replace it with a more effective check: If the point we're looking for is *inside* of the begin and end location of a Decl, look inside. This should make clang-rename more reliable (for example macro'd namespaces threw it off before, as seen in the test case) and maybe a little faster by pruning off more stuff that the RecursiveASTVisitor doesn't have to drill into. llvm-svn: 287649
* [clang-rename] merge tests when possibleKirill Bobyrev2016-08-101-18/+23
| | | | | | | | | | | The only difference between some tests is -offset passed to clang-rename. It makes sense to merge them into a single file and add multiple tool invocations. Reviewers: alexfh Differential Revision: https://reviews.llvm.org/D23158 llvm-svn: 278221
* [clang-rename] revert r276836Kirill Bobyrev2016-08-011-2/+4
| | | | | | | Revert r276836, which resulted in tests passing regardless of the actual tool replacements. llvm-svn: 277354
* test: simplify commands, NFCSaleem Abdulrasool2016-07-271-4/+2
| | | | | | | | Rather than copying the file and then doing an in-place edit, perform the replacements to stdout and pass the output to FileCheck directly. Avoids unnecessary copying and seds. llvm-svn: 276836
* [clang-rename] fix testsetKirill Bobyrev2016-07-151-0/+27
Make yet unsupported tests marked with FIXME pass so that buildbot doesn't fail. llvm-svn: 275556
OpenPOWER on IntegriCloud