blob: 97637304d1f8b9264a97026f7965a7b09e99e6d2 [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,
22 tidy_checks: [
23 "android-*",
24 "cert-*",
Bernie Innocenti2a008c52018-10-12 22:30:22 +090025 "clang-analyzer-security*",
Bernie Innocentia5161a02019-01-30 22:40:53 +090026 "google-*",
27 "misc-*",
28 "performance-*",
29 "-cert-err34-c", // TODO: re-enable after removing atoi() and sscanf() calls
30 "-google-readability-*", // Too pedantic
31 "-google-runtime-int", // Too many unavoidable warnings due to strtol()
32 "-google-runtime-references", // Grandfathered usage of pass by non-const reference
33 "-misc-non-private-member-variables-in-classes", // Also complains about structs
Bernie Innocenti2a008c52018-10-12 22:30:22 +090034 ],
35 tidy_flags: [
Bernie Innocentia5161a02019-01-30 22:40:53 +090036 "-warnings-as-errors="
37 + "'android-*'"
38 + ",'clang-analyzer-security*'"
39 + ",'cert-*'"
40 + ",'google-*'"
41 + ",'performance-*'"
42 + ",'misc-*'"
Bernie Innocenti0c532742018-06-11 14:12:08 +090043 ],
44}