llvm-project/clang-tools-extra/clangd/refactor
Haojian Wu 7276a446ce [clangd] Narrow rename to local symbols.
Summary:
Previously, we performed rename for all kinds of symbols (local, global).

This patch narrows the scope by only renaming symbols not being used
outside of the main file (with index asisitance). Renaming global
symbols is not supported at the moment (return an error).

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D63426

llvm-svn: 364283
2019-06-25 08:43:17 +00:00
..
tweaks [clangd] Remove the extra ";", NFC 2019-06-18 13:52:00 +00:00
Rename.cpp [clangd] Narrow rename to local symbols. 2019-06-25 08:43:17 +00:00
Rename.h [clangd] Narrow rename to local symbols. 2019-06-25 08:43:17 +00:00
Tweak.cpp [clangd] Add SourceManager accessor to ParsedAST. NFC 2019-05-28 21:52:34 +00:00
Tweak.h [clangd] Add hidden tweaks to dump AST/selection. 2019-06-18 13:37:54 +00:00