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.
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.
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
Please advice how to suppress the cppcheck errors, warnings etc. by any setting in the project or workspace properties.
thanks Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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
thanks Martin
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.