blob: 44f3f038733c63077753aebca02793fd6a9b16ae [file] [log] [blame]
Robin Lee4fd4d392017-03-14 14:03:05 +00001cc_library_headers {
2 name: "libnetd_client_headers",
3 export_include_dirs: ["include"],
4}
5
Bernie Innocenti0c532742018-06-11 14:12:08 +09006cc_defaults {
7 name: "netd_defaults",
Bernie Innocenti98951792018-06-26 17:13:44 +09008 cflags: [
9 "-Wall",
10 "-Werror",
Bernie Innocenti11cd0202018-10-12 21:27:45 +090011 // Override -Wno-error=implicit-fallthrough from soong
12 "-Werror=implicit-fallthrough",
Bernie Innocentie6305552019-10-30 17:26:00 +090013 "-Werror=sometimes-uninitialized",
14 "-Werror=conditional-uninitialized",
Bernie Innocenti98951792018-06-26 17:13:44 +090015 "-Wnullable-to-nonnull-conversion",
Bernie Innocenti45238a12018-12-04 14:57:48 +090016 "-Wsign-compare",
Bernie Innocenti98951792018-06-26 17:13:44 +090017 "-Wthread-safety",
18 "-Wunused-parameter",
waynema71a0b592018-11-21 13:31:34 +080019 "-Wuninitialized",
Bernie Innocenti98951792018-06-26 17:13:44 +090020 ],
Bernie Innocenti0c532742018-06-11 14:12:08 +090021 tidy: true,
Bernie Innocentidf2640a2019-11-07 16:42:58 +090022 cpp_std: "experimental",
Bernie Innocenti0c532742018-06-11 14:12:08 +090023 tidy_checks: [
24 "android-*",
25 "cert-*",
Bernie Innocenti2a008c52018-10-12 22:30:22 +090026 "clang-analyzer-security*",
Bernie Innocentia5161a02019-01-30 22:40:53 +090027 "google-*",
28 "misc-*",
29 "performance-*",
30 "-cert-err34-c", // TODO: re-enable after removing atoi() and sscanf() calls
31 "-google-readability-*", // Too pedantic
32 "-google-runtime-int", // Too many unavoidable warnings due to strtol()
33 "-google-runtime-references", // Grandfathered usage of pass by non-const reference
34 "-misc-non-private-member-variables-in-classes", // Also complains about structs
Bernie Innocenti2a008c52018-10-12 22:30:22 +090035 ],
36 tidy_flags: [
Bernie Innocentia5161a02019-01-30 22:40:53 +090037 "-warnings-as-errors="
38 + "'android-*'"
39 + ",'clang-analyzer-security*'"
40 + ",'cert-*'"
41 + ",'google-*'"
42 + ",'performance-*'"
43 + ",'misc-*'"
Bernie Innocenti0c532742018-06-11 14:12:08 +090044 ],
45}