Bug 442769 - qt6-qlatin1stringchar-to-u creates invalid code
Summary: qt6-qlatin1stringchar-to-u creates invalid code
Status: RESOLVED UNMAINTAINED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Lucie Gerard
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-21 09:32 UTC by Kai Koehne
Modified: 2025-09-04 17:12 UTC (History)
3 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 Kai Koehne 2021-09-21 09:32:17 UTC
qt6-qlatin1stringchar-to-u creates code that doesn't compile

STEPS TO REPRODUCE
1. run clazy fix for e.g. QLatin1String("hello world");

OBSERVED RESULT

clazy will fix it to u"hello world", which cannot be assigned to QString


EXPECTED RESULT

clazy should fix it to u"hello world"_qs
Comment 1 Alexander Lohnau 2025-09-04 17:12:33 UTC
The Qt6 porting checks are deprecated with clazy 1.16