[PATCH] D119077: clangd SemanticHighlighting: added support for highlighting overloaded operators

Iannis de Zwart via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 7 06:17:21 PST 2022


iannisdezwart updated this revision to Diff 406422.
iannisdezwart added a comment.

Two changes:

1. Added tests for overloaded operators into SemanticHighlightingTests.
2. Fixed the way tokens are expanded. Previously `operator<<` would be split into two highlighting tokens: `operator` and `<<`. Now it's all one highlighting token. The same is true for all other compound operator keyword statements.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119077/new/

https://reviews.llvm.org/D119077

Files:
  clang-tools-extra/clangd/SemanticHighlighting.cpp
  clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119077.406422.patch
Type: text/x-patch
Size: 12394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220207/e63c0566/attachment-0001.bin>


More information about the cfe-commits mailing list