I have a question, can I use all check libary configuration --library like --enable=all?
How to enable all checking features of tool? if not, can you give me an example scripts to run multiple checking commanders.
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is currently not possible to simply load all library files via all or so.
IMHO it does not make much sense to implement this because some libraries for example have conflicting configurations for the same function names, think of posix.cfg and windows.cfg.
And noone knows what library files will be added in the future for example for embedded compilers that would produce a lot of false positives/negatives when used with a PC platform.
I am not absolutely sure what you mean with "multiple checking commanders".
For my projects i often want to get as much warnings as possbile even if that means much noise and false positives and use at least these command line parameters: -f --enable=all --inconclusive
And to know which functions might be useful to be added to a project configuration i also use --check-library and sometimes also --debug-warnings.
It could be also helpful to provide --cppcheck-build-dir to get whole program analysis and more. But if changing (project) library configuration files the content of the build directory currently should be deleted before a new run is started (see https://trac.cppcheck.net/ticket/8328).
Last edit: versat 2018-03-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I have a question, can I use all check libary configuration --library like --enable=all?
How to enable all checking features of tool? if not, can you give me an example scripts to run multiple checking commanders.
Thank you.
It is currently not possible to simply load all library files via
all
or so.IMHO it does not make much sense to implement this because some libraries for example have conflicting configurations for the same function names, think of posix.cfg and windows.cfg.
And noone knows what library files will be added in the future for example for embedded compilers that would produce a lot of false positives/negatives when used with a PC platform.
I am not absolutely sure what you mean with "multiple checking commanders".
For my projects i often want to get as much warnings as possbile even if that means much noise and false positives and use at least these command line parameters:
-f --enable=all --inconclusive
And to know which functions might be useful to be added to a project configuration i also use
--check-library
and sometimes also--debug-warnings
.It could be also helpful to provide
--cppcheck-build-dir
to get whole program analysis and more. But if changing (project) library configuration files the content of the build directory currently should be deleted before a new run is started (see https://trac.cppcheck.net/ticket/8328).Last edit: versat 2018-03-26