[clang-rename] Respect the traversal scope when traversing the entire AST.
authorHaojian Wu <hokein.wu@gmail.com>
Wed, 6 Nov 2019 14:21:40 +0000 (15:21 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Thu, 7 Nov 2019 09:43:54 +0000 (10:43 +0100)
commit118f7836a65e864ef3c7e015d58ca370fee65e89
tree23a9276dee1942af7dba4a5b6afeb4bd277edeaf
parent5b9a072c39c0c34a290abd19e4aca8208a9afae6
[clang-rename] Respect the traversal scope when traversing the entire AST.

Summary:
This should be NFC to clang-rename, by default the traversal scope is
TUDecl. Traversing the TUDecl in clangd is a performance cliff, we should
avoid it.

Reviewers: ilya-biryukov

Subscribers: kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D69892
clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp