[PATCH] D146101: [clang-format] Add DesignatedInitializerIndentWidth option.
Jon Phillips via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 31 04:14:06 PDT 2023
jp4a50 added a comment.
I've implemented BracedInitializerIndentWidth now with significantly extended test coverage (including checking that it is not applied *too* broadly). The actual implementation is just as simple as that for `DesignatedInitializerIndentWidth`.
> For the yaml stuff, I for one like to define everything (even it has the default value), thus I'd like the -1 or something on output. But if that leads to messing around with the yaml code just use what it does.
Pretty sure I would have to modify the YAML code in order to get it to output something when `std::optional<unsigned>` is set to `std::nullopt` so I have left it as-is.
PTAL.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146101/new/
https://reviews.llvm.org/D146101
More information about the cfe-commits
mailing list