Bug 470993 - Disable auto-unexpected-qstringbuilder on Qt >= 6.7
Summary: Disable auto-unexpected-qstringbuilder on Qt >= 6.7
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-13 21:36 UTC by Giuseppe D'Angelo
Modified: 2024-12-24 14:54 UTC (History)
2 users (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 Giuseppe D'Angelo 2023-06-13 21:36:46 UTC
With the merge of https://codereview.qt-project.org/c/qt/qtbase/+/479775 in Qt 6.7, auto + QStringBuilder will be fine, so warning about it feels wrong. It might also be interesting to tell users that they could fix the problem by upgrading.
Comment 1 Alexander Lohnau 2024-12-23 10:43:11 UTC
I find it a bit problematic, since we do not know the min Qt version. Like one could have Qt 6.7, but the project requirements are 6.6.

IMHO it would be best to document this behavior, but not disable the check completely.
Comment 2 Giuseppe D'Angelo 2024-12-24 14:54:12 UTC
Makes sense, maybe just amend the description saying that the warning could be a false positive, as if the project is targeting Qt 6.7 or above then there's no dangling and thus the warning can be removed.