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

Damian Lezama Damian.Lezama at riverbed.com
Thu Sep 25 18:19:04 PDT 2014


Hi,

Our code standards ask for the return type in its own line for function definitions (if not inside the class declaration), how can I make that work?

Header:
class A
{
    int a() { }
    int b();
}

Source:
int
A::b() 
{
    // something
}

Thanks,
Damian





More information about the cfe-dev mailing list