Bug 470993

Summary: Disable auto-unexpected-qstringbuilder on Qt >= 6.7
Product: [Developer tools] clazy Reporter: Giuseppe D'Angelo <dangelog>
Component: generalAssignee: Alexander Lohnau <alexander.lohnau>
Status: REPORTED ---    
Severity: wishlist CC: alexander.lohnau, smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.