This means e.g. highlighting "return" will show other returns/throws
from the same function, highlighting a case will show all the
return/breaks etc.
This is a bit of an abuse of textDocument/highlight, but seems useful.
Paths
| Differential D78454
[clangd] Highlight related control flow. ClosedPublic Authored by sammccall on Apr 19 2020, 5:20 AM.
Details
Summary This means e.g. highlighting "return" will show other returns/throws This is a bit of an abuse of textDocument/highlight, but seems useful.
Diff Detail
Event Timeline
sammccall marked 6 inline comments as done. Comment ActionsAddress comments, handle goto.
adamcz added inline comments. This revision is now accepted and ready to land.May 19 2020, 4:37 AM Closed by commit rGa56141b8f9fe: [clangd] Highlight related control flow. (authored by sammccall). · Explain WhyMay 28 2020, 4:51 AM This revision was automatically updated to reflect the committed changes. sammccall marked an inline comment as done. Comment Actions Hi Sam, It looks like this is causing a failure on the Windows PS4 buildbot: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/32606 Please could you take a look? PS4 target disables RTTI, hence exceptions, by default so it is probably related to that. Thanks
Revision Contents
Diff 258598 clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/unittests/XRefsTests.cpp
|
You are checking for FunctionDecl twice