[all-commits] [llvm/llvm-project] 2f951c: [clangd] Add support for the `defaultLibrary` sema...
David Goldman via All-commits
all-commits at lists.llvm.org
Wed Jun 2 07:25:30 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2f951ca98b7a12fed7ac4ebf790a0fbabc02d80b
https://github.com/llvm/llvm-project/commit/2f951ca98b7a12fed7ac4ebf790a0fbabc02d80b
Author: David Goldman <davg at google.com>
Date: 2021-06-02 (Wed, 02 Jun 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
Log Message:
-----------
[clangd] Add support for the `defaultLibrary` semantic token modifier
This allows us to differentiate symbols from the system (e.g. system
includes or sysroot) differently than symbols defined in the user's
project, which can be used by editors to display them differently.
This is currently based on `FileCharacteristic`, but we can
consider alternatives such as `Sysroot` and file paths in the future.
Differential Revision: https://reviews.llvm.org/D101554
More information about the All-commits
mailing list