diff options
author | iphydf <iphydf@users.noreply.github.com> | 2020-05-04 02:19:14 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-05-05 01:53:01 +0100 |
commit | c1a2ea3309969608a5553c34fa4199b05f20abc2 (patch) | |
tree | 1ad836defd832a87085ec7c717203d5414742784 /other/analysis/run-clang-analyze | |
parent | f8ab7218f0eb752b4f936b4686be313921be1da6 (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-x | other/analysis/run-clang-analyze | 8 |
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 | ||
5 | echo "Running Clang static analyzer" | 5 | echo "Running Clang static analyzer" |
6 | clang++ --analyze amalgamation.cc \ | 6 | clang++ --analyze amalgamation.cc \ |
7 | $CPPFLAGS \ | 7 | "${CPPFLAGS[@]}" \ |
8 | -std=c++11 | 8 | -std=c++11 |