Bug 489962 - A check that detects whether QVERIFY can be rewritten to use one of the QCOMPARE macros
Summary: A check that detects whether QVERIFY can be rewritten to use one of the QCOMP...
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-09 08:10 UTC by Jack Hill
Modified: 2024-07-09 08:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.