[PATCH] D131066: [clangd] Add option to disable inlay hints for init lists when building array.
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 3 04:16:50 PDT 2022
njames93 created this revision.
njames93 added reviewers: sammccall, nridge.
Herald added subscribers: usaxena95, kadircet, arphaman.
Herald added a project: All.
njames93 requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
Inlay hints can be pretty annoying when using an initializer list to build an array.
string HelloW[] = {<0=>"Hello", <1=>"World"};
To silence these I've extended the `Designators` config option to work as an enum that will let users choose to enable or disable arrays while still letting them use the normal designators.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131066
Files:
clang-tools-extra/clangd/Config.h
clang-tools-extra/clangd/ConfigCompile.cpp
clang-tools-extra/clangd/ConfigFragment.h
clang-tools-extra/clangd/ConfigYAML.cpp
clang-tools-extra/clangd/InlayHints.cpp
clang-tools-extra/clangd/unittests/InlayHintTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131066.449627.patch
Type: text/x-patch
Size: 10636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220803/01379bfd/attachment-0001.bin>
More information about the cfe-commits
mailing list