Page 1 of 1

cppcheck plugin - questions about the integration

Posted: Wed Feb 02, 2011 8:42 pm
by Mathias
Hi,

I would like to know more about your cppcheck integration. May I ask the following questions:

Which version of cppcheck did you integrate?
At least compared with cppcheck version 1.44 I get much more error messages "out of the box" if I use your plugin than I can get on the command line. Can you tell me how you call cppcheck and how this matches to the cppcheck settings of CodeLite?
How can I pass -I or -D settings to cppcheck in CodeLite?

Thanks in advance,
Mathias

Re: cppcheck plugin - questions about the integration

Posted: Thu Feb 03, 2011 12:38 am
by eranif
codelite is using CppCheck 1.42 sources. (the binary named codelite_cppcheck is compiled using cppcheck 1.42 + minor modifications I made to the code)

Upgrading to the latest version 1.46 is easy: download the latest version (1.46) rename the executable to codelite_cppcheck and it will work.
However: Don't do that, since like you noticed, the new version "crawls" to into "include" statements (this is why you need "-I") this was not needed in previous versions and it seems like this is mandatory now.

Please post a feature request @sourceforge to upgrade cppcheck to the latest version
Eran

Re: cppcheck plugin - questions about the integration

Posted: Thu Feb 03, 2011 3:03 am
by Mathias
Well, I don't want to upgrade, I wanted to understand the differences. If 1.42 obviously gives better results, I will try it.
Thanks for the fast response. And keep up the good work. :-)

Regards,
Mathias