Bug 514554

Summary: Suggest Qt6 StringView check similar to Qt <= 5 qstring-ref
Product: [Developer tools] clazy Reporter: gruenich (Christoph GrĂ¼ninger) <foss>
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: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description gruenich (Christoph GrĂ¼ninger) 2026-01-13 21:34:48 UTC
Before Qt 6 QStringRef could speed up the use of several QString-related operations. Clazy offered the check qstring-ref for this.
With Qt 6 QStringRef is gone and QStringView plays a similar role. We should add a new check that points out perfomance gains by using QStringView-based functions.

Related discussions:
https://invent.kde.org/sdk/clazy/-/merge_requests/232
https://invent.kde.org/sdk/clazy/-/merge_requests/240