Debian Codegraph @

other/analysis/run-clang

raw
1 #!/bin/bash
2
3 . other/analysis/gen-file.sh
4
5 set -e
6
7 run() {
8 echo "Running Clang compiler in variant '$*'"
9 clang++ -o /dev/null amalgamation.cc \
10 "${CPPFLAGS[@]}" \
11 "${LDFLAGS[@]}" \
12 "$@" \
13 -std=c++20 \
14 -Werror \
15 -Weverything \
16 -Wno-alloca \
17 -Wno-c++98-compat-pedantic \
18 -Wno-c99-extensions \
19 -Wno-conversion \
20 -Wno-covered-switch-default \
21 -Wno-disabled-macro-expansion \
22 -Wno-documentation-deprecated-sync \
23 -Wno-documentation-unknown-command \
24 -Wno-global-constructors \
25 -Wno-missing-braces \
26 -Wno-missing-field-initializers \
27 -Wno-missing-noreturn \
28 -Wno-nullability-completeness \
29 -Wno-nullability-extension \
30 -Wno-nullable-to-nonnull-conversion \
31 -Wno-old-style-cast \
32 -Wno-padded \
33 -Wno-source-uses-openmp \
34 -Wno-switch-default \
35 -Wno-tautological-pointer-compare \
36 -Wno-unreachable-code-return \
37 -Wno-unsafe-buffer-usage \
38 -Wno-unused-parameter \
39 -Wno-used-but-marked-unused \
40 -Wno-unneeded-member-function \
41 -Wno-unused-function \
42 -Wno-unused-member-function \
43 -Wno-unused-parameter \
44 -Wno-unused-template
45 # TODO(iphydf): Remove these last 5 when the test framework matures.
46 }
47
48 . other/analysis/variants.sh