Bug 379311

Summary: Qt4 Mode
Product: [Developer tools] clazy Reporter: Allen Winter <winter>
Component: generalAssignee: Sergio Martins <smartins>
Status: RESOLVED FIXED    
Severity: wishlist CC: smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Allen Winter 2017-04-28 12:20:09 UTC
allow automatically excluding checks that can't be fixed if the source code needs to support Qt4 and Qt5.
Comment 1 Sergio Martins 2017-05-01 00:51:07 UTC
Git commit eec99828a7665288e682dc03df8c401c31fd4da7 by Sergio Martins.
Committed on 01/05/2017 at 00:48.
Pushed by smartins into branch 'master'.

Introduce qt4-compat mode

If you pass -Xclang -plugin-arg-clang-lazy -Xclang qt4-compat then
Qt5-only checks will be disabled.

M  +1    -0    Changelog
M  +6    -0    README.md
M  +5    -2    src/Clazy.cpp
M  +2    -1    src/ClazyContext.h
M  +6    -0    src/ClazyStandaloneMain.cpp
M  +12   -3    src/checkmanager.cpp
M  +14   -2    src/checkmanager.h
M  +1    -1    src/checks/level0/qenums.cpp
M  +1    -1    src/checks/level0/qgetenv.cpp
M  +1    -1    src/checks/level2/oldstyleconnect.cpp
M  +1    -1    src/checks/level2/qstring-allocations.cpp
M  +9    -0    tests/clazy/config.json
A  +7    -0    tests/clazy/qt4compat1.cpp     [License: UNKNOWN]  *
A  +2    -0    tests/clazy/qt4compat1.cpp.expected
A  +7    -0    tests/clazy/qt4compat2.cpp     [License: UNKNOWN]  *
A  +0    -0    tests/clazy/qt4compat2.cpp.expected
M  +9    -0    tests/run_tests.py

The files marked with a * at the end have a non valid license. Please read: http://techbase.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page.


https://commits.kde.org/clazy/eec99828a7665288e682dc03df8c401c31fd4da7