Updated cppcheck config

- Do not scan third-party libraries (others dir)
- Use standard C++17 for checks (defaults to C++20)
This commit is contained in:
Eduardo Arias 2024-08-20 15:10:19 -07:00 committed by Eduardo Arias
parent e0c58233ad
commit 193a0002e4

View File

@ -63,9 +63,11 @@ cppcheck:
--enable=warning,style,performance,portability,unusedFunction,missingInclude \ --enable=warning,style,performance,portability,unusedFunction,missingInclude \
--inconclusive \ --inconclusive \
--template="warning: {file},{line},{severity},{id},{message}" \ --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 \ --error-exitcode=1 \
-i "src/parser/seclang-parser.cc" -i "src/parser/seclang-scanner.cc" \ -i "src/parser/seclang-parser.cc" -i "src/parser/seclang-scanner.cc" \
-i others \
--std=c++17 \
--force --verbose . --force --verbose .