Skip to content
Snippets Groups Projects

Suppress error for clang addon

Merged Vivek Dutta requested to merge clang into devel
2 files
+ 7
2
Compare changes
  • Side-by-side
  • Inline
Files
2
  • 19b8bd5b
    Suppress error for clang addon · 19b8bd5b
    Vivek Dutta authored
    cppcheck clang is an experimental addition, which got crashed randomly
    for now skipping error from cppcheck clang validator
@@ -28,6 +28,7 @@ generate_compilation_db()
@@ -28,6 +28,7 @@ generate_compilation_db()
fi
fi
exec_cmd bear -- make -C ${SOURCE_FOLDER}
exec_cmd bear -- make -C ${SOURCE_FOLDER}
 
make -C ${SOURCE_FOLDER} clean
if [ ! -f "compile_commands.json" ]; then
if [ ! -f "compile_commands.json" ]; then
log "Failed to generate compilation db"
log "Failed to generate compilation db"
@@ -47,7 +48,11 @@ run_cppcheck_validation()
@@ -47,7 +48,11 @@ run_cppcheck_validation()
run_cppcheck_clang_validation()
run_cppcheck_clang_validation()
{
{
if [ -f "compile_commands.json" ]; then
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
fi
}
}
Loading