[all-commits] [llvm/llvm-project] 46cc7c: [clangd] Add semanticTokens modifiers for function...

Sam McCall via All-commits all-commits at lists.llvm.org
Tue Feb 9 08:58:04 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46cc7ce35ade2d0b3b49301fbf8135c1eca5b048
      https://github.com/llvm/llvm-project/commit/46cc7ce35ade2d0b3b49301fbf8135c1eca5b048
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2021-02-09 (Tue, 09 Feb 2021)

  Changed paths:
    M clang-tools-extra/clangd/SemanticHighlighting.cpp
    M clang-tools-extra/clangd/SemanticHighlighting.h
    M clang-tools-extra/clangd/test/initialize-params.test
    M clang-tools-extra/clangd/test/semantic-tokens.test
    M clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
    M clang-tools-extra/clangd/unittests/tweaks/AnnotateHighlightingsTests.cpp

  Log Message:
  -----------
  [clangd] Add semanticTokens modifiers for function/class/file/global scope

These allow (function-) local variables to be distinguished, but also a
bunch more cases.
It's not quite independent with existing information (e.g. the
field/variable distinction is redundant if you have class-scope + static
attributes) but I don't think this is terribly important.

Depends on D77811

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




More information about the All-commits mailing list