[cfe-dev] clang-format: Return type in its own line for function definitions
Daniel Jasper
djasper at google.com
Fri Sep 26 01:03:37 PDT 2014
There is no option to control what you are looking for yet. If you want to
contribute one, you can roughly look at how the "Inline" mode
for AllowShortFunctionsOnASingleLine is implemented.
Cheers,
Daniel
On Fri, Sep 26, 2014 at 4:15 AM, Damian Lezama <Damian.Lezama at riverbed.com>
wrote:
> > There's the AlwaysBreakAfterDefinitionReturnType style option. It
> (along with the others) is documented at:
> http://clang.llvm.org/docs/ClangFormatStyleOptions.html
>
> That option doesn’t do what I need, because it also adds the break if the
> function is defined inside the class declaration, so I get this:
>
> class A
> {
> int
> a()
> {
> }
> int b();
> }
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140926/08a60bac/attachment.html>
More information about the cfe-dev
mailing list