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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| cc_library_headers {
| name: "libnetd_client_headers",
| export_include_dirs: ["include"],
| }
|
| cc_defaults {
| name: "netd_defaults",
| cflags: [
| "-Wall",
| "-Werror",
| // Override -Wno-error=implicit-fallthrough from soong
| "-Werror=implicit-fallthrough",
| "-Wnullable-to-nonnull-conversion",
| "-Wsign-compare",
| "-Wthread-safety",
| "-Wunused-parameter",
| "-Wuninitialized",
| ],
| tidy: true,
| tidy_checks: [
| "android-*",
| "cert-*",
| "clang-analyzer-security*",
| "google-*",
| "misc-*",
| "performance-*",
| "-cert-err34-c", // TODO: re-enable after removing atoi() and sscanf() calls
| "-google-readability-*", // Too pedantic
| "-google-runtime-int", // Too many unavoidable warnings due to strtol()
| "-google-runtime-references", // Grandfathered usage of pass by non-const reference
| "-misc-non-private-member-variables-in-classes", // Also complains about structs
| ],
| tidy_flags: [
| "-warnings-as-errors="
| + "'android-*'"
| + ",'clang-analyzer-security*'"
| + ",'cert-*'"
| + ",'google-*'"
| + ",'performance-*'"
| + ",'misc-*'"
| ],
| }
|
|