[Qt-creator] code style politic question

Leandro T. C. Melo leandro.melo at nokia.com
Wed Jun 6 10:43:03 CEST 2012


On 06/06/2012 01:52 AM, ext Cristian Tibirna wrote:
>
> Hello
>
> I know what follows carries heavy flamewar potential and PLEASE don't let
> yourself drawn into it. It is not at all my intention.
>
> My question: if I commit additions to code style configuration dialogs to
> allow for changing the politics of relation between type and modifier in
> method signatures, will they be accepted?
>
> What I would add is (configurable) possibility of formatting (when generating
> class files of adding method definitions) this style
>
> void foo::bar(int&  baz);
>
> as opposed to the default
>
> void foo::bar(int&baz);
>
> Thanks for advising.
>

I believe this would be quite useful. We actually have a couple of Jira 
reports related to that. Just notice that currently our code style 
options mainly concern indentation so it's a new concept there.

In addition, we might have one or two fragmented options that would fit 
into that. For instance, the 'Insert space after function name' from the 
completion tab.

Also, from a design perspective I'd recommend thinking of such a feature 
in a broader sense, since all kinds of code assist we provide like 
function completion or possibly other quick fixes should ideally be able 
to use it.

Cheers,
Leandro





More information about the Qt-creator mailing list