aboutsummaryrefslogtreecommitdiff
path: root/clang/test/clang-rename
AgeCommit message (Collapse)AuthorFilesLines
2020-10-19[clang-rename] Fix rename on variable templates.Haojian Wu1-0/+32
This patch adds support for renaming variable templates. Differential Revision: https://reviews.llvm.org/D89300
2020-10-19[clang-rename] Fix rename on function template specializations.Haojian Wu1-0/+19
previously, we missed to rename occurrences to explicit function template specilizations. Differential Revision: https://reviews.llvm.org/D89221
2020-02-11[clang-rename] Fix the failure rename test.Haojian Wu2-13/+10
We cannot run two different tests in a single lit test, split into two.
2020-02-11[clang-rename] Fix the missing template constructors.Haojian Wu1-0/+13
Summary: When renaming a class with template constructors, we are missing the occurrences of the template constructors, because getUSRsForDeclaration doesn't give USRs of the templated constructors (they are not in the normal `ctors()` method). Reviewers: kbobyrev Subscribers: jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D74216
2019-10-04[clang-rename] Fix a crash when renaming a class without definition.Haojian Wu1-0/+4
Reviewers: sammccall Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D68459 llvm-svn: 373748
2019-10-02[clang-rename] Better renaming the typedef decl.Haojian Wu1-0/+8
Summary: when renaming a typedef decl, we used to rename the underlying decl of the typedef, we should rename the typedef itself. Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D68322 llvm-svn: 373440
2017-10-25[clang-rename] Fix and enable the failing TemplatedClassFunction test.Haojian Wu1-6/+11
Reviewers: ioeric Reviewed By: ioeric Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D39241 llvm-svn: 316561
2017-09-14[refactor] add clang-refactor tool with initial testing support andAlex Lorenz1-15/+0
local-rename action This commit introduces the clang-refactor tool alongside the local-rename action which uses the existing renaming engine used by clang-rename. The tool doesn't actually perform the source transformations yet, it just provides testing support. This commit also moves only one test from clang-rename over to test/Refactor. I will continue to move the other tests throughout development of clang-refactor. The following options are supported by clang-refactor: -v: use verbose output -selection: The source range that corresponds to the portion of the source that's selected (currently only special command test:<file> is supported). Please note that a follow-up commit will migrate clang-refactor to libTooling's common option parser, so clang-refactor will be able to use the common interface with compilation database and options like -p, -extra-arg, etc. The testing support provided by clang-refactor is described below: When -selection=test:<file> is given, clang-refactor will parse the selection commands from that file. The selection commands are grouped and the specified refactoring action invoked by the tool. Each command in a group is expected to produce an identical result. The precise syntax for the selection commands is described in a comment in TestSupport.h. Differential Revision: https://reviews.llvm.org/D36574 llvm-svn: 313244
2017-09-11clang-rename: let -force handle multiple renamesMiklos Vajna1-0/+8
Summary: The use case is that renaming multiple symbols in a large enough codebase is much faster if all of these can be done with a single invocation, but there will be multiple translation units where one or more symbols are not found. Old behavior was to exit with an error (default) or exit without reporting an error (-force). New behavior is that -force results in a best-effort rename: rename symbols which are found and just ignore the rest. The existing help for -force sort of already implies this behavior. Reviewers: cfe-commits, klimek, arphaman Reviewed By: klimek Differential Revision: https://reviews.llvm.org/D37634 llvm-svn: 312942
2017-06-30Move ClassReplacements.cpp test from clang-rename tests to theAlex Lorenz1-11/+0
clang-apply-replacements tests The ClassReplacements.cpp test in the clang-rename tests uses clang-apply-replacements. I moved it back to the clang-tools-extra repository for now to ensure that the clang-rename tests can pass when clang is compiled without clang-tools-extra. llvm-svn: 306843
2017-06-30[refactor] Move clang-rename into the clang repositoryAlex Lorenz32-0/+555
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