[clangd] Add "usedAsMutablePointer" highlighting modifier
authorChristian Kandeler <christian.kandeler@qt.io>
Tue, 21 Jun 2022 13:56:21 +0000 (15:56 +0200)
committerChristian Kandeler <christian.kandeler@qt.io>
Mon, 7 Nov 2022 10:58:33 +0000 (11:58 +0100)
commit2bf960aef08e93d687f21e6d636186561b56cbf3
tree076a344cd0875a05fe1c6554423d46ad85f01e29
parentc37f29c49ea237eaf65dd137bffc1f3316f82951
[clangd] Add "usedAsMutablePointer" highlighting modifier

Counterpart to "usedAsMutableReference". Just as for references, there
are const and non-const pointer parameters, and it's valuable to be able
to have different highlighting for the two cases at the call site.
We could have re-used the existing modifier, but having a dedicated one
maximizes client flexibility.

Reviewed By: nridge

Differential Revision: https://reviews.llvm.org/D130015
clang-tools-extra/clangd/SemanticHighlighting.cpp
clang-tools-extra/clangd/SemanticHighlighting.h
clang-tools-extra/clangd/test/initialize-params.test
clang-tools-extra/clangd/test/semantic-tokens.test
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp