Bug 405683 - clazy-const-signal-or-slot should not warn on Q_SCRIPTABLE slots
Summary: clazy-const-signal-or-slot should not warn on Q_SCRIPTABLE slots
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-20 13:08 UTC by David Faure
Modified: 2019-03-21 20:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Faure 2019-03-20 13:08:15 UTC
SUMMARY
clazy-const-signal-or-slot warns on slots like `Q_SCRIPTABLE QStringList availableModules() const;` which exist for D-Bus purposes (see QDbusConnection::ExportScriptableSlots).

STEPS TO REPRODUCE
1. https://ci.kdab.com/~build/analysis/fatcrm/clazy.html

OBSERVED RESULT
OOPS! 15 issues found!

EXPECTED RESULT
No issues found
Comment 1 Sergio Martins 2019-03-21 20:08:53 UTC
Git commit 9e5066d5bf2ec5c06e89d78e42cc77ffdea54ba8 by Sergio Martins.
Committed on 21/03/2019 at 20:07.
Pushed by smartins into branch 'master'.

const-signal-or-slot: Add unit-test for Q_SCRIPTABLE

Bug was fixed in previous commits, closing.

M  +7    -0    tests/const-signal-or-slot/main.cpp
M  +2    -2    tests/const-signal-or-slot/main.cpp.expected

https://commits.kde.org/clazy/9e5066d5bf2ec5c06e89d78e42cc77ffdea54ba8