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

Sylvestre Ledru via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 3 03:05:11 PST 2017


sylvestre.ledru added a comment.

> For bool options it seems easiest to do something like:
>  true:  x = ( int32 )y;
>  false: x = (int32)y;

That works for single declarations but for stuff like:

>   SomeClass::Constructor()
>           : a(a)
>           , b(b)
>           , c(c) {}

I won't be great :/


https://reviews.llvm.org/D30532





More information about the cfe-commits mailing list