[PATCH] D148489: [clangd] Implement configs to stop clangd produce a certain semantic tokens
Qingyuan Zheng via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat May 13 22:07:37 PDT 2023
daiyousei-qz updated this revision to Diff 521967.
daiyousei-qz added a comment.
1. Updating D148489 <https://reviews.llvm.org/D148489>: [clangd] Implement configs to stop clangd produce a certain semantic tokens #
2. Enter a brief description of the changes included in this update.
3. The first line is used as subject, next lines as comment. #
4. If you intended to create a new revision, use:
5. $ arc diff --create
Pass filter by value.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148489/new/
https://reviews.llvm.org/D148489
Files:
clang-tools-extra/clangd/Config.h
clang-tools-extra/clangd/ConfigFragment.h
Index: clang-tools-extra/clangd/ConfigFragment.h
===================================================================
--- clang-tools-extra/clangd/ConfigFragment.h
+++ clang-tools-extra/clangd/ConfigFragment.h
@@ -324,10 +324,11 @@
};
InlayHintsBlock InlayHints;
- /// Describes semantic highlighting preferences.
+ /// Configures semantic tokens that are produced by clangd.
struct SemanticTokensBlock {
+ /// Disables clangd to produce semantic tokens for the given kinds.
std::vector<Located<std::string>> DisabledKinds;
-
+ /// Disables clangd to assign semantic tokens with the given modifiers.
std::vector<Located<std::string>> DisabledModifiers;
};
SemanticTokensBlock SemanticTokens;
Index: clang-tools-extra/clangd/Config.h
===================================================================
--- clang-tools-extra/clangd/Config.h
+++ clang-tools-extra/clangd/Config.h
@@ -150,7 +150,9 @@
} InlayHints;
struct {
+ /// Controls highlighting kinds that are disabled.
std::vector<std::string> DisabledKinds;
+ /// Controls highlighting modifiers that are disabled.
std::vector<std::string> DisabledModifiers;
} SemanticTokens;
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148489.521967.patch
Type: text/x-patch
Size: 1197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230514/5de7d1da/attachment.bin>
More information about the cfe-commits
mailing list