Bug 442769 - qt6-qlatin1stringchar-to-u creates invalid code
Summary: qt6-qlatin1stringchar-to-u creates invalid code
Status: CONFIRMED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: 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: 2021-09-29 10:15 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 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