blob: c9391e333962391c9d7a1dd65a0ad386f4fab08b [file] [log] [blame]
// RUN: %check_clang_tidy -std=c++20 %s modernize-avoid-c-arrays %t
void f1(int data[], int size) {
// CHECK-MESSAGES: :[[@LINE-1]]:9: warning: do not declare C-style arrays, use 'std::span' instead
int f4[] = {1, 2};
// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: do not declare C-style arrays, use 'std::array' instead
}
void f2(int data[100]) {
// CHECK-MESSAGES: :[[@LINE-1]]:9: warning: do not declare C-style arrays, use 'std::array' instead
}