[Qt-creator] C++ parameters indenting with leading comma

Mateusz Loskot mateusz at loskot.net
Thu Oct 31 23:54:06 CET 2013


Hi,

Would anyone know how to make the C++ code style
machinery in Qt Creator to automagically indent parameters
with leading comma (can't figure out a better term) like this:

template <typename A
               , typename B
               , typename C>
bool foo(A const& first
            , B const& second
            , C const& third)
{
}

It works well for constructor initialisation lists

iterator::iterator(A const& a, B const& b)
    : a_(a)
    , b_(b)
{
}

I'd be thankful for any ideas on how to achieve such indentation.
automatically :)

Best regards,
-- 
Mateusz  Loskot, http://mateusz.loskot.net



More information about the Qt-creator mailing list