Previously, when we rename a macro, we get an error message of "there is
no symbol found".
This patch improves the message of this case (as we don't support macros).
Paths
| Differential D63922
[clangd] Show better message when we rename macros. ClosedPublic Authored by hokein on Jun 28 2019, 1:54 AM.
Details Summary Previously, when we rename a macro, we get an error message of "there is This patch improves the message of this case (as we don't support macros).
Diff Detail
Event Timelinesammccall added inline comments.
This revision is now accepted and ready to land.Jun 28 2019, 9:32 AM hokein marked 7 inline comments as done. Comment ActionsAddress review comments:
Closed by commit rL364735: [clangd] Show better message when we rename macros. (authored by hokein). · Explain WhyJul 1 2019, 2:26 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 207244 clang-tools-extra/clangd/SourceCode.h
clang-tools-extra/clangd/SourceCode.cpp
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/refactor/Rename.cpp
clang-tools-extra/clangd/unittests/RenameTests.cpp
clang-tools-extra/clangd/unittests/SourceCodeTests.cpp
|
not sure about "sym" - it's an abbreviation and not very descriptive.
MacroDefinition is really the best name, but taken :-(
Maybe DefinedMacro or ResolvedMacro?