blob: 01859b3ad98f4be318d889bc68369bed14e8cab1 [file] [log] [blame]
// RUN: %check_clang_tidy %s \
// RUN: cppcoreguidelines-pro-type-member-init %t \
// RUN: -config="{CheckOptions: \
// RUN: {cppcoreguidelines-pro-type-member-init.IgnoreArrays: true}}"
typedef int TypedefArray[4];
using UsingArray = int[4];
struct HasArrayMember {
HasArrayMember() {}
// CHECK-MESSAGES: warning: constructor does not initialize these fields: Number
UsingArray U;
TypedefArray T;
int RawArray[4];
int Number;
};