[PATCH] D78454: [clangd] Highlight related control flow.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 19 08:41:45 PDT 2020
sammccall marked 3 inline comments as done.
sammccall added inline comments.
================
Comment at: clang-tools-extra/clangd/XRefs.cpp:907
+ // Highlight the loop keyword itself.
+ Result.push_back(P->ASTNode.getSourceRange().getBegin());
+ break;
----------------
adamcz wrote:
> nit: in a do {...} while(...) case, would we want to highlight both keywords?
>
> (doesn't seem very important, feel free to ignore)
Yeah, I just left a comment for this. You're right... but do-while is pretty rare and the code is fairly awkward. Let's see if anyone ever mentions it :-)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78454/new/
https://reviews.llvm.org/D78454
More information about the cfe-commits
mailing list