summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Weickelt <richard@weickelt.de>2019-12-12 11:07:21 +0100
committerRichard Weickelt <richard@weickelt.de>2019-12-12 18:03:09 +0000
commitf7117d080ddce4b5f692e3a60ceddc9fe1761888 (patch)
tree23b5b2ee7b59774b89a4a896bcb73ea83efdf248
parent924e4235acbba0736dc4f6f731e76176cc4af383 (diff)
Print total warnings count created by clang-tidyHEADmaster
This makes it a bit easier to compare different patches. Change-Id: I6ac2c981896f1f34e529b9718bf4ccfdab194e14 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rwxr-xr-xscripts/run-analyzer.sh4
1 files changed, 3 insertions, 1 deletions
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"