cppcheck: refactor cmake configuration
All threads resolved!
All threads resolved!
Compare changes
Files
4@@ -28,3 +28,20 @@ endif()
Refactor of the cppcheck cmake configuration to make it usable also for full project builds and not only WorkDir:
cppcheck_suppress.txt
file. Only the suppression of external include directories remains on the command line.CxxUtilsSettings
using the same approach we already do for the gccchecker configuration.The command line arguments of cppcheck
are built from:
--quiet --inline-suppr --template=gcc -D__CPPCHECK__
that always have to be used.--suppressions-list
(see above)ATLAS_CPPCHECK_OPTIONS "--enable=warning,portability"
. These can be modified or augmented via cmake -DATLAS_CPPCHECK_OPTIONS=...
.As always, in order to enable cppcheck one has to have it available in the environment (e.g. via lsetup cppcheck
).
Relates to ATLINFR-5443 and ATLINFR-5449.