Bug 442769

Summary: qt6-qlatin1stringchar-to-u creates invalid code
Product: [Developer tools] clazy Reporter: Kai Koehne <kai.koehne>
Component: generalAssignee: Lucie Gerard <lucie.gerard>
Status: CONFIRMED ---    
Severity: normal CC: lucie.gerard, smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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