| Summary: | Clazy reports "QString::fromUtf8() being passed a literal" from ui generated file | ||
|---|---|---|---|
| Product: | [Developer tools] clazy | Reporter: | Laurent Montel <montel> |
| Component: | general | Assignee: | 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/Implemented In: | ||
| Sentry Crash Report: | |||
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 |
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 :) )