[Interest] fixit in Creator 7.01
Christian Kandeler
christian.kandeler at qt.io
Thu May 5 09:53:43 CEST 2022
On 5/5/22 00:40, John Weeks wrote:
> Our old code has tons of assignments inside if statements, like:
> if (err = somefunction())
> return err;
>
> These are flagged by the clangd suggesting that it should be either
> if ( (err = somefunction()) )
> or
> if (err == somefunction())
>
> In the past, if you left-clicked on the little light bulb at the end of the line, it would put up a menu of fixits, offering a choice of those two fixes. In 7.01, when I left-click, it simply goes ahead and applies the *second* fix without presenting a choice. That, of course, creates a very hard-to-see bug.
>
> I can just barely see where someone might think this change is a good idea, but it seems more likely to be a bug.
Sounds like it. Please create a bug report, preferably with some
concrete example code.
Thanks,
Christian
More information about the Interest
mailing list