Menu

Enable all Library configuration

Elena
2018-03-26
2018-03-26
  • Elena

    Elena - 2018-03-26

    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.

     
  • versat

    versat - 2018-03-26

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.