Bug 423640 - Wrong diagnostic with multi-lines Q_PROPERTY
Summary: Wrong diagnostic with multi-lines Q_PROPERTY
Status: RESOLVED DUPLICATE of bug 404327
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-29 05:11 UTC by Christian Gagneraud
Modified: 2020-06-29 11:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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