cppcheck 1.90 doesn't recognize Q_DECLARE_METATYPE. Isn't this in qt.cfg?
<error msg="There is an unknown macro here somewhere. Configuration is required. If Q_DECLARE_METATYPE is a macro then please configure it." verbose="There is an unknown macro here somewhere. Configuration is required. If Q_DECLARE_METATYPE is a macro then please configure it." id="unknownMacro" severity="error"></error>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does the macro usage in the code has exactly one argument? Is the Qt library configuration explicitly used for example by adding the command line option --library=qt?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
cppcheck 1.90 doesn't recognize Q_DECLARE_METATYPE. Isn't this in qt.cfg?
<error msg="There is an unknown macro here somewhere. Configuration is required. If Q_DECLARE_METATYPE is a macro then please configure it." verbose="There is an unknown macro here somewhere. Configuration is required. If Q_DECLARE_METATYPE is a macro then please configure it." id="unknownMacro" severity="error"></error>
Yes it is in qt.cfg:
Does the macro usage in the code has exactly one argument? Is the Qt library configuration explicitly used for example by adding the command line option
--library=qt
?Thanks. That was the problem, it wasn't configured properly. I assumed it would pick up the library automatically.