Menu

Excluding specific files and/or folders from cppcheck (Eclipse plugin) does not work

2020-01-20
2020-01-20
  • Martin Stäbler

    Martin Stäbler - 2020-01-20
    1. We are running our nrf52832 (Nordic chip) based project on Eclipse and are able to compile, build and run the project on our target hardware. So far, so good.

    2. Now, in addition we would like to use the cppcheck - Eclipse plugin for static code analysis. Running the cppcheck results in lots of warnings and errors especially when cppcheck checks the nRF5_SDK_15.0.0 (Software Development Kit for Nordic nRF52 processors). The nRF5_SDK is necessary to build the project, but I only want to have the cppcheck done on our project-specific C- and H- files.

    3. I did not manage to exclude the nRF5_SDK_15.0.0 - source files from the cppchecking (I tried a lot of cppcheck-settings, properties (i.e.: Eclipse->properties->cppcheclipse->Advances Settings->Advanced command line arguments :
      --suppress=purgedConfiguration --check-config -i /home/ntrnd/subversion/SmartNeckband/Software/SDK/nRF5_SDK_15.0.0_a53641a/.

    --> but nothing helped

    1. Please advice how to suppress the cppcheck errors, warnings etc. by any setting in the project or workspace properties.

    thanks Martin

     
  • versat

    versat - 2020-01-20

    Have you tried a relative (to the project) path for the -i parameter?
    The --check-config option is only useful to verify whether all includes are found. For nomal analysis it does not have to be used because it aborts before the analysis.

    Since you added these options directly as command line argument I think it is ok to ask here. Otherwise the cppchecklipse plugin is a different project which can be found here: https://github.com/kwin/cppcheclipse
    Maybe they can help better with the problem.

     

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.