From 193a0002e4f1bac9fcd6c8750c31eaa8efb4c7f6 Mon Sep 17 00:00:00 2001 From: Eduardo Arias Date: Tue, 20 Aug 2024 15:10:19 -0700 Subject: [PATCH] Updated cppcheck config - Do not scan third-party libraries (others dir) - Use standard C++17 for checks (defaults to C++20) --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index ab22102d..4468ba71 100644 --- a/Makefile.am +++ b/Makefile.am @@ -63,9 +63,11 @@ cppcheck: --enable=warning,style,performance,portability,unusedFunction,missingInclude \ --inconclusive \ --template="warning: {file},{line},{severity},{id},{message}" \ - -I headers -I . -I others -I src -I others/mbedtls/include -I src/parser \ + -I headers -I . -I others -I src -I others/mbedtls/include \ --error-exitcode=1 \ -i "src/parser/seclang-parser.cc" -i "src/parser/seclang-scanner.cc" \ + -i others \ + --std=c++17 \ --force --verbose .