HomePhabricator

[clangd] Ensure lambda init-capture gets semantic token

Authored by nridge on Sep 21 2021, 12:44 AM.

Description

[clangd] Ensure lambda init-capture gets semantic token

Prior to this patch, CollectExtraHighlightings would incorrectly produce
a token for the init-capture's type which overlapped the name and
resulted in both being dropped.

Fixes https://github.com/clangd/clangd/issues/868

Differential Revision: https://reviews.llvm.org/D110130

Details