Disable tidy DeprecatedOrUnsafeBufferHandling check

This check is disabled in global default,
see build/soong/cc/config/tidy.go.
This bpf_defaults is used to compile an external/bcc module.
Unless all such warnings can be fixed in the external/bcc source,
we should not enable this check locally.

Test: presubmit; make tidy-external-bcc_subset
Change-Id: I97f6dd944dfb21fed664175c5c7eec02c10ebe4c
This commit is contained in:
Chih-Hung Hsieh 2023-01-05 16:38:01 -08:00
parent 4fba4f7a22
commit ef3f44b639

View file

@ -28,9 +28,10 @@ cc_defaults {
tidy_checks: [ tidy_checks: [
"android-*", "android-*",
"cert-*", "cert-*",
"clang-analyzer-security*",
"-cert-err34-c", "-cert-err34-c",
"clang-analyzer-security*", "clang-analyzer-security*",
// Many calls to snprintf/sscanf/memset/memcpy in libbpf.c have the following warning.
"-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling",
// Disabling due to many unavoidable warnings from POSIX API usage. // Disabling due to many unavoidable warnings from POSIX API usage.
"-google-runtime-int", "-google-runtime-int",
], ],