Bug 489962

Summary: A check that detects whether QVERIFY can be rewritten to use one of the QCOMPARE macros
Product: [Developer tools] clazy Reporter: Jack Hill <jackhill3103>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: smartins
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jack Hill 2024-07-09 08:10:01 UTC
SUMMARY
Qt 6.4 added macros such as QCOMPARE_GE(computed, baseline) to replace the use of QVERIFY(computed >= baseline). These macros will output the actual value of computed and baseline, which makes it easier to debug if a test fails.

I think it would be useful to have a check + fixit to replace instances of QVERIFY with their QCOMPARE_* counterpart.