[clazy] [Bug 489962] New: A check that detects whether QVERIFY can be rewritten to use one of the QCOMPARE macros
Jack Hill
bugzilla_noreply at kde.org
Tue Jul 9 09:10:01 BST 2024
https://bugs.kde.org/show_bug.cgi?id=489962
Bug ID: 489962
Summary: A check that detects whether QVERIFY can be rewritten
to use one of the QCOMPARE macros
Classification: Developer tools
Product: clazy
Version: unspecified
Platform: Other
OS: Other
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: jackhill3103 at gmail.com
CC: smartins at kde.org
Target Milestone: ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list