Haojian Wu
f8bfb34010
[rename] support renaming class member.
...
Reviewers: ioeric
Reviewed By: ioeric
Subscribers: klimek, cfe-commits, mgorny
Differential Revision: https://reviews.llvm.org/D39178
llvm-svn: 316571
2017-10-25 11:54:45 +00:00
Haojian Wu
54e84b3966
[rename] Don't overwrite the template argument when renaming a template function.
...
Reviewers: ioeric
Reviewed By: ioeric
Subscribers: cierpuchaw, cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D39120
llvm-svn: 316314
2017-10-23 08:58:50 +00:00
Haojian Wu
c906390163
[clang-rename] Rename alias.
...
Summary:
* Support rename alias.
* Add unittests for renaming alias.
* Don't generate fixes for the SourceLocations that are invalid or in temporary
buffer, otherwise crash would be happened when generating AtomicChanges.
Reviewers: ioeric
Reviewed By: ioeric
Subscribers: klimek, mgorny, cfe-commits
Differential Revision: https://reviews.llvm.org/D39043
llvm-svn: 316074
2017-10-18 12:10:11 +00:00
Haojian Wu
63c7c040bc
[clang-rename] Rename enum.
...
Summary:
* Add unit tests for renaming enum.
* Support unscoped enum constants in expressions.
Reviewers: ioeric
Reviewed By: ioeric
Subscribers: klimek, mgorny, cfe-commits
Differential Revision: https://reviews.llvm.org/D38989
llvm-svn: 315999
2017-10-17 14:14:41 +00:00
Haojian Wu
6f60ff84cd
[clang-rename] Add function unit tests.
...
Summary:
Also contain a fix:
* Fix a false positive of renaming a using shadow function declaration.
Reviewers: ioeric
Reviewed By: ioeric
Subscribers: klimek, mgorny, cfe-commits
Differential Revision: https://reviews.llvm.org/D38882
llvm-svn: 315898
2017-10-16 10:37:42 +00:00
Haojian Wu
3a4b7ec9de
[clang-rename] Add more unittest.
...
llvm-svn: 315459
2017-10-11 14:00:42 +00:00
Haojian Wu
19d7299a8b
[clang-rename] Don't add prefix qualifiers to the declaration and definition of the renamed symbol.
...
Reviewers: ioeric
Reviewed By: ioeric
Subscribers: klimek, cfe-commits, arphaman
Differential Revision: https://reviews.llvm.org/D38723
llvm-svn: 315452
2017-10-11 11:15:48 +00:00
Alex Lorenz
079e5db81f
Use add_clang_unittest in the CMakeLists.txt for the moved unittest
...
The unittest was moved in r306840
llvm-svn: 306841
2017-06-30 16:43:00 +00:00
Alex Lorenz
4abbd92bf4
[refactor] Move clang-rename into the clang repository
...
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
2017-06-30 16:36:09 +00:00