[cfe-dev] clang-format: Return type in its own line for function definitions

Damian Lezama Damian.Lezama at riverbed.com
Thu Sep 25 19:15:01 PDT 2014


> 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();
}





More information about the cfe-dev mailing list