Bug 464368 - qproperty-type-mismatch fails to extract type when Q_PROPERTY( is followed by a whitespace
Summary: qproperty-type-mismatch fails to extract type when Q_PROPERTY( is followed by...
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-16 11:01 UTC by Eugene Shalygin
Modified: 2023-01-16 11:01 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 Eugene Shalygin 2023-01-16 11:01:37 UTC
If property is declared as Q_PROPERTY( Type name ... ), clazy derives property type as an empty string. But some code formatting styles require whitespace inside braces :(

STEPS TO REPRODUCE
1.  Insert a whitespace after the opening brace in any Q_PROPERTY declaration

OBSERVED RESULT
Clazy resolves the type of the property to empty string and qproperty-type-mismatch always reports errors.

EXPECTED RESULT
Clazy trims contents of the Q_PROPERTY() macro before parsing.

Clazy from Qt Creator 9.0.1