[all-commits] [llvm/llvm-project] 422319: [clangd] Ensure lambda init-capture gets semantic ...

Nathan Ridge via All-commits all-commits at lists.llvm.org
Thu Sep 23 00:51:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4223195de3eaaa9c221d1f178899f221be6264c5
      https://github.com/llvm/llvm-project/commit/4223195de3eaaa9c221d1f178899f221be6264c5
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2021-09-23 (Thu, 23 Sep 2021)

  Changed paths:
    M clang-tools-extra/clangd/SemanticHighlighting.cpp
    M clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list