After rL366893, the annoate tweak is not activated when we select the
whole file (the commonAncestor is TUDecl but we intend to return null).
This patch fixes this, and also avoid traversing the TUDecl.
Paths
| Differential D65210
[clangd] Fix the annotate tweak after rL366893 ClosedPublic Authored by hokein on Jul 24 2019, 7:06 AM.
Details Summary After rL366893, the annoate tweak is not activated when we select the This patch fixes this, and also avoid traversing the TUDecl.
Diff Detail
Event Timelinesammccall added inline comments.
This revision is now accepted and ready to land.Jul 24 2019, 7:31 AM Closed by commit rL366996: [clangd] Fix the annotate tweak after rL366893 (authored by hokein). · Explain WhyJul 25 2019, 1:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 211694 clang-tools-extra/trunk/clangd/refactor/tweaks/AnnotateHighlightings.cpp
clang-tools-extra/trunk/clangd/unittests/TweakTests.cpp
|