[/home/bobstaff/NoConstructor.cpp:32]: (style) The class 'EmailAlertActionPlugin' does not have a constructor although it has private member variables.
I'm get this with 1.86 and HEAD. I'm running cppcheck as follows
Hmm, i can not reproduce it with this code snippet. Not with 1.86 and not with HEAD.
Have you tested it with this snippet or is it just a reduced example to show some code where it could happen?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm getting a lot of messages like this
[/home/bobstaff/NoConstructor.cpp:32]: (style) The class 'EmailAlertActionPlugin' does not have a constructor although it has private member variables.
I'm get this with 1.86 and HEAD. I'm running cppcheck as follows
~/cppcheck/cppcheck --inline-suppr --library=qt.cfg --enable=warning,style,performance,portability --platform=unix64 ~/NoConstructor.cpp
Here is a code snippet that demonstrates the problem
namespace Edge
{
}
Hmm, i can not reproduce it with this code snippet. Not with 1.86 and not with HEAD.
Have you tested it with this snippet or is it just a reduced example to show some code where it could happen?
Very sorry I posted the wrong snippet I tested quite a few . The QPLUGIN_METADATA line seems to be important.
Adding this line to qt.cfg seems to fix the problem
<define name="Q_PLUGIN_METADATA(x)" value=""></define>
With commit https://github.com/danmar/cppcheck/commit/4195cb08424f0e950718c004b45c9822c50cb9a9
orbitcowboy
added such a define to qt.cfg.