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

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 4 02:17:09 PST 2016


djasper added a comment.

I actually have more thoughts on this. If we go down this road, there are many more options that people might envision. Maybe they don't want to wrap the initializer list, if there is just one initializer. Maybe they want to align the initializers somewhere after the constructor parameters:

  Constructor() : aaa(aaa),
                  bbb(bbb) {}

There are many options to do this, but really the difference in readability is quite small and I think it adds unnecessary complexity to clang-format.


Repository:
  rL LLVM

http://reviews.llvm.org/D14484





More information about the cfe-commits mailing list