[Development] What qtbase looks like with extensive use of auto

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Mon Mar 21 23:41:40 CET 2016


On Sat, Mar 19, 2016 at 11:02 AM, Stephen Kelly <steveire at gmail.com> wrote:
> Hi,
>
> In case you missed it, I wrote an auto-modernizer
>
>  https://steveire.wordpress.com/2016/03/19/aaargh

Thanks for this blog post. It made me smile...and also auto aware!
(yes!! I did it too!) :)

-mandeep


>
> It is not quite AAA, as it doesn't convert
>
>  QString s;
>
> into
>
>  auto s = QString();
>
> I used it to port qtbase to an extensive use of auto:
>
>  https://github.com/steveire/qtbase/commits/aaa
>
> This isn't something I want to push for Qt to apply, but it's something I
> did and you might find the outcome interesting.
>
> If you think Qt should use auto not-at-all, not-a-lot, or almost-always, I'm
> sure you'll find lots of reasons in the commits to support your position.
>
> Thanks,
>
> Steve.
>
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development



More information about the Development mailing list