[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

Andi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 3 05:01:58 PST 2017


Abpostelnicu added a comment.

In https://reviews.llvm.org/D30487#691517, @djasper wrote:

> Do you know whether that is intentional? The style guide isn't really conclusive.


Well i'm not sure, because as you said the document is not clear but i think that when we have a single initialiser it should be on the same line as the ctor declaration. In this way it would be consistent with the style for inheritance list. The actual implementation for inheritance list breaking was tailored from the `BreakConstructorInitializersBeforeComma` flag.


Repository:
  rL LLVM

https://reviews.llvm.org/D30487





More information about the cfe-commits mailing list