[cfe-dev] clang-format: Put function definition parentheses on own line?

Daniel Jasper djasper at google.com
Wed Dec 3 10:27:01 PST 2014


No, there is no such option yet.

On Wed, Dec 3, 2014 at 6:51 PM, Justin Holewinski <
justin.holewinski at gmail.com> wrote:

> Is it possible to coax clang-format to write function definitions like:
>
> int
> mynamespace::myfunction
> (
>     int a,
>     int b
> )
> {
>     // code
> }
>
> I can get parameters to come out right, but I can't find any option to
> control breaking a line before the parentheses in a function declaration.
>
> --
>
> Thanks,
>
> Justin Holewinski
>
> _______________________________________________
> 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/20141203/75a9c86c/attachment.html>


More information about the cfe-dev mailing list