Bug 406799 - Clazy reports "QString::fromUtf8() being passed a literal" from ui generated file
Summary: Clazy reports "QString::fromUtf8() being passed a literal" from ui generated ...
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-23 06:17 UTC by Laurent Montel
Modified: 2019-04-23 17:36 UTC (History)
1 user (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 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