From f7117d080ddce4b5f692e3a60ceddc9fe1761888 Mon Sep 17 00:00:00 2001 From: Richard Weickelt Date: Thu, 12 Dec 2019 11:07:21 +0100 Subject: Print total warnings count created by clang-tidy This makes it a bit easier to compare different patches. Change-Id: I6ac2c981896f1f34e529b9718bf4ccfdab194e14 Reviewed-by: Ivan Komissarov Reviewed-by: Christian Kandeler --- scripts/run-analyzer.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/run-analyzer.sh b/scripts/run-analyzer.sh index c623aed1c..9075ff5b3 100755 --- a/scripts/run-analyzer.sh +++ b/scripts/run-analyzer.sh @@ -112,4 +112,6 @@ with open(dbFile, 'w') as f: " python -c "${SCRIPT}" analyzer/compile_commands.json -"$RUN_CLANG_TIDY" -p analyzer -clang-tidy-binary "$CLANG_TIDY" -j $CPU_COUNT -header-filter=".*qbs/.*\.h$" -quiet +RUN_CLANG_TIDY+=" -p analyzer -clang-tidy-binary ${CLANG_TIDY} -j ${CPU_COUNT} -header-filter=\".*qbs.*\.h$\" -quiet" +${RUN_CLANG_TIDY} 2>/dev/null | tee results.txt +echo "$(grep -c 'warning:' results.txt) warnings in total" -- cgit v1.2.3