blob: 114b2e16c2b30c7062409ff69ede3bcd33a48de6 [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 Innocenti98951792018-06-26 17:13:44 +090013 "-Wnullable-to-nonnull-conversion",
Bernie Innocenti45238a12018-12-04 14:57:48 +090014 "-Wsign-compare",
Bernie Innocenti98951792018-06-26 17:13:44 +090015 "-Wthread-safety",
16 "-Wunused-parameter",
waynema71a0b592018-11-21 13:31:34 +080017 "-Wuninitialized",
Bernie Innocenti98951792018-06-26 17:13:44 +090018 ],
Bernie Innocenti0c532742018-06-11 14:12:08 +090019 tidy: true,
20 tidy_checks: [
21 "android-*",
22 "cert-*",
Bernie Innocenti2a008c52018-10-12 22:30:22 +090023 "clang-analyzer-security*",
Bernie Innocentia5161a02019-01-30 22:40:53 +090024 "google-*",
25 "misc-*",
26 "performance-*",
27 "-cert-err34-c", // TODO: re-enable after removing atoi() and sscanf() calls
28 "-google-readability-*", // Too pedantic
29 "-google-runtime-int", // Too many unavoidable warnings due to strtol()
30 "-google-runtime-references", // Grandfathered usage of pass by non-const reference
31 "-misc-non-private-member-variables-in-classes", // Also complains about structs
Bernie Innocenti2a008c52018-10-12 22:30:22 +090032 ],
33 tidy_flags: [
Bernie Innocentia5161a02019-01-30 22:40:53 +090034 "-warnings-as-errors="
35 + "'android-*'"
36 + ",'clang-analyzer-security*'"
37 + ",'cert-*'"
38 + ",'google-*'"
39 + ",'performance-*'"
40 + ",'misc-*'"
Bernie Innocenti0c532742018-06-11 14:12:08 +090041 ],
42}