cppcheck plugin - questions about the integration

Post here any ideas/problems/suggestions you have regarding CodeLite's ExternalTools plugin
Mathias
CodeLite Curious
Posts: 2
Joined: Wed Feb 02, 2011 8:33 pm
Genuine User: Yes
IDE Question: C++
Contact:

cppcheck plugin - questions about the integration

Post by Mathias » Wed Feb 02, 2011 8:42 pm

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

User avatar
eranif
CodeLite Plugin
Posts: 5817
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: cppcheck plugin - questions about the integration

Post by eranif » Thu Feb 03, 2011 12:38 am

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
Make sure you have read the HOW TO POST thread

Mathias
CodeLite Curious
Posts: 2
Joined: Wed Feb 02, 2011 8:33 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: cppcheck plugin - questions about the integration

Post by Mathias » Thu Feb 03, 2011 3:03 am

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

Post Reply