[all-commits] [llvm/llvm-project] a6860c: [clangd] Add a flag for spelled references in the ...
Kirill Bobyrev via All-commits
all-commits at lists.llvm.org
Wed Feb 5 23:21:38 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a6860c1af45776e349eaed3e8f0bb7e97abccd89
https://github.com/llvm/llvm-project/commit/a6860c1af45776e349eaed3e8f0bb7e97abccd89
Author: Kirill Bobyrev <kbobyrev at google.com>
Date: 2020-02-06 (Thu, 06 Feb 2020)
Changed paths:
M clang-tools-extra/clangd/index/Ref.h
M clang-tools-extra/clangd/index/SymbolCollector.cpp
M clang-tools-extra/clangd/unittests/RenameTests.cpp
M clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp
Log Message:
-----------
[clangd] Add a flag for spelled references in the Index
This patch allows the index does to provide a way to distinguish
implicit references (e.g. coming from macro expansions) from the spelled
ones. The corresponding flag was added to RefKind and symbols that are
referenced without spelling their name explicitly are now marked
implicit. This allows fixing incorrect behavior when renaming a symbol
that was referenced in macro expansions would try to rename macro
invocations.
Differential Revision: D72746
Reviewed by: hokein
More information about the All-commits
mailing list