Bug 406799

Summary: Clazy reports "QString::fromUtf8() being passed a literal" from ui generated file
Product: [Developer tools] clazy Reporter: Laurent Montel <montel>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: smartins
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Laurent Montel 2019-04-23 06:17:52 UTC
It will good if we can exclude clazy warning about ui_*.h
for example:
akregator/build-clang/configuration/ui_settings_archive.h:57:35: warning: QString::fromUtf8() being passed a literal [-Wclazy-qstring-allocations]
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));

it's not necessary as it's autogenerated and we can't fix it (or we need to fix qt code :) )
Comment 1 Sergio Martins 2019-04-23 17:36:20 UTC
commit d6e7f4c8ed6303cf471a13051aef1871a57c9692 (HEAD -> 1.5, origin/1.5)
Author: Sergio Martins <iamsergio@gmail.com>
Date:   Tue Apr 23 18:35:05 2019 +0100

    qstring-allocations: Don't warn for ui_*h files
    
    they are auto-generated
    
    BUG: 406799