Skip to content
Snippets Groups Projects

Suppress error for clang addon

Merged Vivek Dutta requested to merge clang into devel
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -28,6 +28,7 @@ generate_compilation_db()
fi
exec_cmd bear -- make -C ${SOURCE_FOLDER}
make -C ${SOURCE_FOLDER} clean
if [ ! -f "compile_commands.json" ]; then
log "Failed to generate compilation db"
@@ -47,7 +48,11 @@ run_cppcheck_validation()
run_cppcheck_clang_validation()
{
if [ -f "compile_commands.json" ]; then
exec_cmd cppcheck --error-exitcode=1 --clang -i ./test --inline-suppr ${CPPCHECK_OPTIONS} --project=compile_commands.json
if [ -n "${CI}" ]; then
cppcheck --error-exitcode=1 --clang -i ./test --inline-suppr ${CPPCHECK_OPTIONS} --project=compile_commands.json
else
exec_cmd cppcheck --error-exitcode=1 --clang -i ./test --inline-suppr ${CPPCHECK_OPTIONS} --project=compile_commands.json
fi
fi
}
Loading