[PATCH] D14484: [clang-format] Formatting constructor initializer lists by putting them always on different lines

Francesco Stefanni via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 19 06:57:50 PDT 2020


FStefanni added a comment.

Hi,

thank you for the suggestion, but it does **not**, at least with `BreakConstructorInitializers: AfterColon` (which is what I use).
If initializers are "small enough" to fit the constructor line, all will finish on the same line.

E.g.

  MyClass::MyClass(): a(), b()
  {}

But what I like is:

  MyClass::MyClass(): 
      a(), 
      b()
  {}

Regards.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D14484/new/

https://reviews.llvm.org/D14484



More information about the cfe-commits mailing list