summaryrefslogtreecommitdiff
path: root/other/analysis/run-clang
blob: 59fc75a62ba94a4f8a85c54c1b846894d1fb38b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

. other/analysis/gen-file.sh

echo "Running Clang compiler"
clang++ -o /dev/null amalgamation.cc \
  "${CPPFLAGS[@]}" \
  "${LDFLAGS[@]}" \
  -std=c++11 \
  -Werror \
  -Weverything \
  -Wno-c++98-compat-pedantic \
  -Wno-c99-extensions \
  -Wno-cast-align \
  -Wno-conversion \
  -Wno-covered-switch-default \
  -Wno-disabled-macro-expansion \
  -Wno-documentation-deprecated-sync \
  -Wno-missing-field-initializers \
  -Wno-old-style-cast \
  -Wno-padded \
  -Wno-sign-compare \
  -Wno-unreachable-code-return \
  -Wno-unused-parameter \
  -Wno-used-but-marked-unused