Template parameters and specializations were not being highlighted before. This adds highlightings to those types of tokens by adding two Visit* methods.
Details
Details
- Reviewers
hokein sammccall ilya-biryukov - Commits
- rG51cdd51807ad: [clangd] Added highlightings for template parameters and specializations.
rCTE366420: [clangd] Added highlightings for template parameters and specializations.
rL366420: [clangd] Added highlightings for template parameters and specializations.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tools-extra/clangd/SemanticHighlighting.cpp | ||
---|---|---|
141 ↗ | (On Diff #210272) | nit: clang-format |
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp | ||
179 ↗ | (On Diff #210272) | could you add some more test cases?
|
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp | ||
---|---|---|
179 ↗ | (On Diff #210272) | Looks like you are still missing the unnamed template parameter template <typename> class Foo {}; case |
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp | ||
---|---|---|
179 ↗ | (On Diff #210272) | Oh sorry, added it and landed. |