1785624b2SCongcong Cai // RUN: %check_clang_tidy -std=c++20 %s modernize-avoid-c-arrays %t 2785624b2SCongcong Cai 3785624b2SCongcong Cai int f1(int data[], int size) { 4*5fa742eeSCongcong Cai // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: do not declare C-style arrays, use 'std::span' instead 5785624b2SCongcong Cai int f4[] = {1, 2}; 6*5fa742eeSCongcong Cai // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: do not declare C-style arrays, use 'std::array' instead 7785624b2SCongcong Cai } 8785624b2SCongcong Cai 9785624b2SCongcong Cai int f2(int data[100]) { 10*5fa742eeSCongcong Cai // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: do not declare C-style arrays, use 'std::array' instead 11785624b2SCongcong Cai } 12