Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I exclude or specify build configurations with a Visual Studio solution in cppcheck?

I have a semi-large Visual Studio solution, with a series of different build configurations, and various platforms. I really only want to check one or two configurations, on a single platform. However, I don't see a way in the CppCheck manual to select a build configuration when you use the --project flag. I've tried to use --platform; however, that doesn't even just select configurations for that platform (win64 still checks win32 configs).

Is there a way with CppCheck to select a singular build configuration in a solution, or at a maybe even exclude certain configurations?

like image 520
Dirv Avatar asked Mar 27 '17 15:03

Dirv


1 Answers

I added the --project option in Cppcheck.

In the command line tool you do not have a good way to select a single configuration. This is a missing feature. Somehow I want to give the user some control of this, but I do not want to add additional cppcheck arguments. I think that the --platform option should exclude mismatching configurations, that sounds like a good start.

For information; in the GUI you can select a platform and only get analysis of the first matching DEBUG configuration.

like image 149
Daniel Marjamäki Avatar answered Oct 26 '22 16:10

Daniel Marjamäki