[PATCH] D78454: [clangd] Highlight related control flow.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 19 05:20:23 PDT 2020
sammccall created this revision.
sammccall added a reviewer: adamcz.
Herald added subscribers: cfe-commits, usaxena95, kadircet, arphaman, mgrang, jkorous, MaskRay, ilya-biryukov.
Herald added a project: clang.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78454
Files:
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/unittests/XRefsTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78454.258598.patch
Type: text/x-patch
Size: 16146 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200419/07c8ffd1/attachment-0001.bin>
More information about the cfe-commits
mailing list