[PATCH] D146101: [clang-format] Add DesignatedInitializerIndentWidth option.

Jon Phillips via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 22 10:09:27 PDT 2023


jp4a50 added a comment.

In D146101#4208962 <https://reviews.llvm.org/D146101#4208962>, @MyDeveloperDay wrote:

> What I'd really like to see, is... in the event that `ContinuationIndentWidth` is set and I do NOTset `DesignatedInitializerIndentWidth`   , then `DesignatedInitializerIndentWidth`  would inherit from that (not the default as you have here),  if I set ContinuationIndentWidthto 3 DesignatedInitializerIndentWidth should be 3

Agree that this makes the most sense and, luckily, that is exactly the behaviour I implemented in my most recent diff!


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