Disable modernize-avoid-c-arrays clang-tidy check

Bug: http://b/122481018

Upcoming clang update has a clang-tidy warning about using c arrays and
instead use std::array:
    warning: do not declare C-style arrays, use std::array<> instead

Disable this warning for now (even before the new clang update lands)
since clang-tidy doesn't complain about flags it doesn't know.

Test: Build with new clang.
Change-Id: I971b84301e6cd1180326bc54711d0be193f09ccb
This commit is contained in:
Pirama Arumuga Nainar
2019-01-17 12:12:49 -08:00
parent db11760580
commit 4b2d55b082

View File

@@ -20,6 +20,7 @@ cc_defaults {
"misc-*",
"modernize-*",
"readability-*",
"-modernize-avoid-c-arrays",
],
tidy_flags: [
"-system-headers",