Skip to content

Draft: cppcheck: add wrapper for cppcheck command

Frank Winklmeier requested to merge fwinkl/athena:cppcheck_atlas into main

By default cmake adds all the (non-system) include paths to the cppcheck command line, which causes very long processing times for some of our packages. Add the cppcheck_atlas wrapper to remove all those -I command line arguments except for the package itself.

Use this wrapper in the Athena and WorkDir project to launch cppcheck.

The downside is that we now need to teach cppcheck about all macros used in our code base and if someone adds a new macro, which is used across package, we need to update the relevant cppcheck configuration.

cc @sroe

Edited by Frank Winklmeier

Merge request reports

Loading