1 | // RUN: %check_clang_tidy %s \ |
---|---|
2 | // RUN: cppcoreguidelines-pro-type-member-init %t \ |
3 | // RUN: -config="{CheckOptions: \ |
4 | // RUN: {cppcoreguidelines-pro-type-member-init.IgnoreArrays: true}}" |
5 | |
6 | typedef int TypedefArray[4]; |
7 | using UsingArray = int[4]; |
8 | |
9 | struct HasArrayMember { |
10 | HasArrayMember() {} |
11 | // CHECK-MESSAGES: warning: constructor does not initialize these fields: Number |
12 | UsingArray U; |
13 | TypedefArray T; |
14 | int RawArray[4]; |
15 | int Number; |
16 | }; |
17 |