Android.bp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. cc_library_headers {
  2. name: "libnetd_client_headers",
  3. export_include_dirs: ["include"],
  4. }
  5. cc_defaults {
  6. name: "netd_defaults",
  7. cflags: [
  8. "-Wall",
  9. "-Werror",
  10. // Override -Wno-error=implicit-fallthrough from soong
  11. "-Werror=implicit-fallthrough",
  12. "-Wnullable-to-nonnull-conversion",
  13. "-Wsign-compare",
  14. "-Wthread-safety",
  15. "-Wunused-parameter",
  16. "-Wuninitialized",
  17. ],
  18. tidy: true,
  19. tidy_checks: [
  20. "android-*",
  21. "cert-*",
  22. "clang-analyzer-security*",
  23. "google-*",
  24. "misc-*",
  25. "performance-*",
  26. "-cert-err34-c", // TODO: re-enable after removing atoi() and sscanf() calls
  27. "-google-readability-*", // Too pedantic
  28. "-google-runtime-int", // Too many unavoidable warnings due to strtol()
  29. "-google-runtime-references", // Grandfathered usage of pass by non-const reference
  30. "-misc-non-private-member-variables-in-classes", // Also complains about structs
  31. ],
  32. tidy_flags: [
  33. "-warnings-as-errors="
  34. + "'android-*'"
  35. + ",'clang-analyzer-security*'"
  36. + ",'cert-*'"
  37. + ",'google-*'"
  38. + ",'performance-*'"
  39. + ",'misc-*'"
  40. ],
  41. }