aboutsummaryrefslogtreecommitdiff
path: root/.bazel/compiler_flags.bazelrc
blob: 2b2e5d1ae520468dc49f871de981aa409116ab0e (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
26
27
28
build --copt=-Wall
build --copt=-Wextra
build --copt=-Wpedantic
build --copt=-Werror=shadow
build --copt=-Wunused-parameter
build --copt=-Wmisleading-indentation
build --copt=-Wundef
build --copt=-Wuninitialized

# cast warnings
build --copt=-Wcast-align
build --copt=-Wcast-qual

# conversion
build --copt=-Wconversion
build --copt=-Wsign-conversion
build --copt=-Wdouble-promotion

# pointers
build --copt=-Wpointer-arith
build --copt=-Wnull-dereference

# cpp flags
build --cxxopt=-std=c++20
build --cxxopt=-Wnon-virtual-dtor
build --cxxopt=-Woverloaded-virtual
build --cxxopt=-Wold-style-cast