| Summary: | Allow hiding bugs in pre-installed Qt (add path-based filter) | ||
|---|---|---|---|
| Product: | [Developer tools] clazy | Reporter: | Holger Schurig <holgerschurig> |
| Component: | general | Assignee: | Sergio Martins <smartins> |
| 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: | |||
Oops, forget this: the README recommends to use -isystem instead of -i to exclude Qt's own issues. However, this will need (usually) a deep surgery down into CMake, Meson, QBS, QMake. I, for example, don't know currently how to change Meson from -i to -isystem. So I guess this isn't exactly user-friendly. Instead a CMAKE_EXCLUDE_FILES_BELOW= environment variable would be much more user friendly. Git commit 23015920c13aa64228ff0dd23cf15473a2ab18f6 by Sergio Martins. Committed on 28/02/2018 at 10:08. Pushed by smartins into branch 'master'. Added CLAZY_HEADER_FILTER env variable In case you can't use -isystem due to a weird build system. M +1 -0 Changelog M +2 -0 README.md M +10 -2 src/Clazy.cpp https://commits.kde.org/clazy/23015920c13aa64228ff0dd23cf15473a2ab18f6 Please test this, but I think the regexp is enough |
I'm on Debian Stable and started to use clazy. Great tool, veeery nice. Being on stable, I don't change the installed Qt 5.7.1+dfsg-3+b1 away to anything else. But when I run clazy, it shows me issues in files that I don't want to change, e.g. this: In file included from config@exe/moc_dialog_waitwlan.cpp:9: In file included from config@exe/../../dialog_waitwlan.h:6: In file included from config@exe/ui_form_waitwlan.h:14: In file included from /usr/include/i386-linux-gnu/qt5/QtWidgets/QApplication:1: In file included from /usr/include/i386-linux-gnu/qt5/QtWidgets/qapplication.h:51: In file included from /usr/include/i386-linux-gnu/qt5/QtGui/qguiapplication.h:45: /usr/include/i386-linux-gnu/qt5/QtGui/qinputmethod.h:106:5: warning: slot arguments need to be fully-qualified (QInputMethod::Action instead of Action) [-Wclazy-fully-qualified-moc-types] void invokeAction(Action a, int cursorPosition); I get lots of those issues, and of course they clutter the display. It's now difficult to see spots on my own code because of this. Of course I could disable the test "fully-qualified-moc-types". But then this test would also be disabled for my own checks. What would help is to have a file-based filter, so that I can tell clazy "ignore anything below /usr/include/". (This happened both with clazy from git master of today and from tag v1.3)