[clangd] Add inlay hints for mutable reference parameters
authorTobias Ribizel <ribizel@kit.edu>
Mon, 2 May 2022 19:56:40 +0000 (15:56 -0400)
committerNathan Ridge <zeratul976@hotmail.com>
Mon, 2 May 2022 19:57:23 +0000 (15:57 -0400)
commit043e9650240866701bee89922d54bf7af059ed30
treefe05005bbcd86cfe691ccc679e75d02777712b15
parentdf3765bfdc13ab01bbdd3ffe3711b1d13e368249
[clangd] Add inlay hints for mutable reference parameters

Add a & prefix to all parameter inlay hints that refer to a non-const l-value reference. That makes it easier to identify them even if semantic highlighting is not used (where this is already available)

Reviewed By: nridge

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