Bug 423640

Summary: Wrong diagnostic with multi-lines Q_PROPERTY
Product: [Developer tools] clazy Reporter: Christian Gagneraud <chgans>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christian Gagneraud 2020-06-29 05:11:26 UTC
SUMMARY

Wrong diagnostic with multi-lines Q_PROPERTY

STEPS TO REPRODUCE
1. Use QtCreator with built in clazy
2. Multi-line Q_PROPERTY, eg:
    Q_PROPERTY(QString controllerFirmwareCrc READ controllerFirmwareCrc NOTIFY
                   controllerFirmwareCrcChanged)

OBSERVED RESULT
/home/chgans/Projects/neon-factory-support/task/NTA-108-touchscreen-module/sources/Testing/Modules/TouchscreenModule.h:79:5: warning: Q_PROPERTY should have either NOTIFY or CONSTANT [-Wclazy-qproperty-without-notify]

EXPECTED RESULT

No issue reported

SOFTWARE/OS VERSIONS
Ubuntu 18.04, 64 bits
Qt Version: 5.12
Unknown version of clazy

ADDITIONAL INFORMATION
Comment 1 Sergio Martins 2020-06-29 11:21:05 UTC

*** This bug has been marked as a duplicate of bug 404327 ***
Comment 2 Sergio Martins 2020-06-29 11:21:31 UTC
fixed in 1.6