[clazy] [Bug 399544] New: clazy-empty-qstringliteral for uic generated files

Evgeniy A. Dushistov bugzilla_noreply at kde.org
Tue Oct 9 10:15:55 BST 2018


https://bugs.kde.org/show_bug.cgi?id=399544

            Bug ID: 399544
           Summary: clazy-empty-qstringliteral for uic generated files
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: dushistov at mail.ru
                CC: smartins at kde.org
  Target Milestone: ---

SUMMARY

clazy-empty-qstringliteral is great, but it produces too many warnings for uic
generated files.

STEPS TO REPRODUCE
1. Create ".ui" file
2. Change stylesheet to something, and then clear it.
3. You will get in generated by uic c++ code, something like:

        ActionConfirmContextMenu->setStyleSheet(QStringLiteral(""));

OBSERVED RESULT


EXPECTED RESULT

It would be great if clazy automatically disable `clazy-empty-qstringliteral` 
for headers file that starts with "ui_" and ends with ".h"

SOFTWARE VERSIONS
(available in About System)
Qt Version: 5.11.2

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list