[PATCH] D139926: [clangd] Add semantic tokens for angle brackets
Christian Kandeler via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 13 02:45:16 PST 2022
ckandeler created this revision.
ckandeler added a reviewer: sammccall.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
ckandeler requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
This is needed for clients that would like to visualize matching
opening and closing angle brackets, which can be valuable in non-trivial
template declarations or instantiations.
It is not possible to do this with simple lexing, as the tokens
could also refer to operators.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139926
Files:
clang-tools-extra/clangd/SemanticHighlighting.cpp
clang-tools-extra/clangd/SemanticHighlighting.h
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139926.482410.patch
Type: text/x-patch
Size: 26371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221213/34623f6c/attachment-0001.bin>
More information about the cfe-commits
mailing list