summaryrefslogtreecommitdiff
path: root/other/analysis/run-clang-analyze
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-05-04 02:19:14 +0100
committeriphydf <iphydf@users.noreply.github.com>2020-05-05 01:53:01 +0100
commitc1a2ea3309969608a5553c34fa4199b05f20abc2 (patch)
tree1ad836defd832a87085ec7c717203d5414742784 /other/analysis/run-clang-analyze
parentf8ab7218f0eb752b4f936b4686be313921be1da6 (diff)
Use bash arrays instead of strings for static analysis scripts.
These are more robust wrt. spaces in names.
Diffstat (limited to 'other/analysis/run-clang-analyze')
-rwxr-xr-xother/analysis/run-clang-analyze8
1 files changed, 4 insertions, 4 deletions
diff --git a/other/analysis/run-clang-analyze b/other/analysis/run-clang-analyze
index 0e6d9af0..d790de00 100755
--- a/other/analysis/run-clang-analyze
+++ b/other/analysis/run-clang-analyze
@@ -1,8 +1,8 @@
1#!/bin/sh 1#!/bin/bash
2 2
3. other/analysis/gen-file.sh 3. other/analysis/gen-file.sh
4 4
5echo "Running Clang static analyzer" 5echo "Running Clang static analyzer"
6clang++ --analyze amalgamation.cc \ 6clang++ --analyze amalgamation.cc \
7 $CPPFLAGS \ 7 "${CPPFLAGS[@]}" \
8 -std=c++11 8 -std=c++11