[PATCH] D30532: Add examples to clang-format configuration

Daniel Jasper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 3 03:12:36 PST 2017


djasper added a comment.

I agree, just generally we should aim for keeping these short.

The example you gave might actually be reasonable to compare in two columns, i.e.:

  true:                                  false:
  SomeClass::Constructor()      vs.      SomeClass::Constructor() : a(a),
          : a(a)                                                    b(b),
          , b(b)                                                    c(c) {}
          , c(c) {}

or some such.


https://reviews.llvm.org/D30532





More information about the cfe-commits mailing list