-
- Downloads
[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
Showing
- clang-tools-extra/clangd/SemanticHighlighting.cpp 16 additions, 5 deletionsclang-tools-extra/clangd/SemanticHighlighting.cpp
- clang-tools-extra/clangd/SemanticHighlighting.h 1 addition, 0 deletionsclang-tools-extra/clangd/SemanticHighlighting.h
- clang-tools-extra/clangd/test/initialize-params.test 1 addition, 0 deletionsclang-tools-extra/clangd/test/initialize-params.test
- clang-tools-extra/clangd/test/semantic-tokens.test 4 additions, 4 deletionsclang-tools-extra/clangd/test/semantic-tokens.test
- clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp 3 additions, 3 deletions...ools-extra/clangd/unittests/SemanticHighlightingTests.cpp
Loading
Please register or sign in to comment