Bug 359997

Summary: new check: Warn when using Q_ENUMS
Product: [Developer tools] clazy Reporter: Sergio Martins <smartins>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: smartins
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sergio Martins 2016-03-02 13:54:13 UTC
Should use Q_ENUM instead
Comment 1 Sergio Martins 2016-08-28 12:03:31 UTC
Git commit c3391bfaf1f083cd7b99884bcf22c783c77dcc99 by Sergio Martins.
Committed on 28/08/2016 at 12:02.
Pushed by smartins into branch 'master'.

New check: Warn on Q_ENUMS

Use Q_ENUM instead

M  +1    -0    CMakeLists.txt
A  +3    -0    checks/level0/README-qenums.md
A  +79   -0    checks/level0/qenums.cpp     [License: LGPL (v2+)]
A  +36   -0    checks/level0/qenums.h     [License: LGPL (v2+)]
M  +11   -11   tests/clazy/test_requested_checks.sh.expected
A  +7    -0    tests/qenums/config.json
A  +16   -0    tests/qenums/main.cpp     [License: UNKNOWN]  *
A  +1    -0    tests/qenums/main.cpp.expected

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.


http://commits.kde.org/clazy/c3391bfaf1f083cd7b99884bcf22c783c77dcc99