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

Justin Holewinski justin.holewinski at gmail.com
Wed Dec 3 09:51:13 PST 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141203/75bf3245/attachment.html>


More information about the cfe-dev mailing list