Skip to content

Commit

Permalink
Add the "test" directory as an include in cppcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Mar 24, 2021
1 parent 9a77c1d commit 62e6078
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion test/test_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#define SDF_PROTOCOL_VERSION "${SDF_PROTOCOL_VERSION}"
#define SDF_TMP_DIR "tmp-sdf/"

// cppcheck-suppress missingInclude
#include "env.hh"

#include <sdf/Filesystem.hh>
Expand Down
2 changes: 1 addition & 1 deletion tools/code_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CHECK_FILE_DIRS="./src ./include ./examples ./test/performance ./test/integratio
CPPCHECK_BASE="cppcheck -q --suppressions-list=$SUPPRESS --inline-suppr"
CPPCHECK_BASE2="cppcheck -q --suppressions-list=$SUPPRESS2 --inline-suppr"
CPPCHECK_FILES=`find $CHECK_FILE_DIRS -name "*.cc"`
CPPCHECK_INCLUDES="-I include -I . -I $builddir -I $builddir/include"
CPPCHECK_INCLUDES="-I include -I test -I . -I $builddir -I $builddir/include"
CPPCHECK_COMMAND1="-j 4 --enable=style,performance,portability,information $CPPCHECK_FILES"
# Unused function checking must happen in one job
CPPCHECK_COMMAND2="--enable=unusedFunction $CPPCHECK_FILES"
Expand Down

0 comments on commit 62e6078

Please sign in to comment.