Failing case:
#include "foo.h" void fo^o() {}
getRenameDecl() returns the decl of the symbol under the cursor (which is
in the current main file), instead, we use the canonical decl to determine
whether a symbol is declared in #included header.
Paths
| Differential D63872
[clangd] Fix a case where we fail to detect a header-declared symbol in rename. ClosedPublic Authored by hokein on Jun 27 2019, 4:59 AM.
Details
Summary Failing case: #include "foo.h" void fo^o() {} getRenameDecl() returns the decl of the symbol under the cursor (which is
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Jun 27 2019, 6:13 AM Closed by commit rL364537: [clangd] Fix a case where we fail to detect a header-declared symbol in rename. (authored by hokein). · Explain WhyJun 27 2019, 6:27 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 206847 clang-tools-extra/trunk/clangd/refactor/Rename.cpp
clang-tools-extra/trunk/clangd/unittests/RenameTests.cpp
|