[Qt-creator] code style option: pointer, reference

Peter Kümmel syntheticpp at gmx.net
Thu Dec 6 16:10:47 CET 2012


On 06.12.2012 15:45, Markus Rathgeb wrote:
> Hello!
>
> Would it be possible to add an option to the code style settings to decide
> on which position the whitespace and the pointer / reference sign should be
> located on auto completion.
>
> For example:
> I added a definition of a member function function to a class in the the
> header file e.g.
> class ClassX
> {
>      void fooA(const ObjectA& a, ObjectB* b);
>      void fooB(const ObjectA &a, ObjectB *b);
> }
>
> No I open the cxx (cpp or whatever naming scheme is used) file of the class
> and would like to implement the functions.
> I write
> void ClassX::fooA(
> the auto completion suggests me the write signature, I press return to
> apply it and I get:
> void ClassX::fooA(const ObjectA &a, ObjectB *b);
> Same for fooB(..).
>
> It would be nice, if there would be an option where I can state if I want
> to use:
> - Object& obj OR Object &obj
> - Object* obj IR Object *obj
>
> There is no correct or wrong, this is simply a styling stuff.
>
> Could someone add this feature?
> It would be great!
>
> Best regards and thanks for the top IDE,
> Markus
>

Seems you had the same idea. I didn't read your post before I send mine ;)

>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>



More information about the Qt-creator mailing list