[clangd] Add BlockEnd comments for control flow statements
authorSam McCall <sam.mccall@gmail.com>
Mon, 17 Jul 2023 06:02:40 +0000 (08:02 +0200)
committerSam McCall <sam.mccall@gmail.com>
Fri, 21 Jul 2023 20:57:46 +0000 (22:57 +0200)
commitee032bccc934d034909962a9306f7c9d1ca72759
tree63b1b74b2d5fb69d3de6e6806244a88c37c78479
parent24445fc15ca451b9db5bc928a2b5bc9c8ef99792
[clangd] Add BlockEnd comments for control flow statements

These mark the end of CompoundStmts bodies of if/while/for/switch.
To identify which statement is being ended, we include abbreviated
text of the condition/loop variable.

Differential Revision: https://reviews.llvm.org/D155421
clang-tools-extra/clangd/InlayHints.cpp
clang-tools-extra/clangd/unittests/InlayHintTests.cpp