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 | |
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')
-rwxr-xr-x | other/analysis/run-clang | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/other/analysis/run-clang b/other/analysis/run-clang index fbb0d427..59fc75a6 100755 --- a/other/analysis/run-clang +++ b/other/analysis/run-clang | |||
@@ -1,25 +1,25 @@ | |||
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 compiler" | 5 | echo "Running Clang compiler" |
6 | clang++ -o /dev/null amalgamation.cc \ | 6 | clang++ -o /dev/null amalgamation.cc \ |
7 | $CPPFLAGS \ | 7 | "${CPPFLAGS[@]}" \ |
8 | $LDFLAGS \ | 8 | "${LDFLAGS[@]}" \ |
9 | -std=c++11 \ | 9 | -std=c++11 \ |
10 | -Werror \ | 10 | -Werror \ |
11 | -Weverything \ | 11 | -Weverything \ |
12 | -Wno-c++98-compat-pedantic \ | 12 | -Wno-c++98-compat-pedantic \ |
13 | -Wno-c99-extensions \ | 13 | -Wno-c99-extensions \ |
14 | -Wno-cast-align \ | 14 | -Wno-cast-align \ |
15 | -Wno-conversion \ | 15 | -Wno-conversion \ |
16 | -Wno-covered-switch-default \ | 16 | -Wno-covered-switch-default \ |
17 | -Wno-disabled-macro-expansion \ | 17 | -Wno-disabled-macro-expansion \ |
18 | -Wno-documentation-deprecated-sync \ | 18 | -Wno-documentation-deprecated-sync \ |
19 | -Wno-missing-field-initializers \ | 19 | -Wno-missing-field-initializers \ |
20 | -Wno-old-style-cast \ | 20 | -Wno-old-style-cast \ |
21 | -Wno-padded \ | 21 | -Wno-padded \ |
22 | -Wno-sign-compare \ | 22 | -Wno-sign-compare \ |
23 | -Wno-unreachable-code-return \ | 23 | -Wno-unreachable-code-return \ |
24 | -Wno-unused-parameter \ | 24 | -Wno-unused-parameter \ |
25 | -Wno-used-but-marked-unused \ | 25 | -Wno-used-but-marked-unused |