Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:arr

77   char arr[I]; // expected-note 3 {{declared here}}
81 s.arr[4] = 0; // expected-warning 2 {{array index 4 is past the end of the array (which contains 3 elements)}}
82 s.arr[I] = 0; // expected-warning {{array index 5 is past the end of the array (which contains 3 elements)}}
90 #define ARR_IN_MACRO(flag, arr, idx) flag ? arr[idx] : 1
93 int arr[SIZE]; // expected-note {{array 'arr' declared here}}
94 return ARR_IN_MACRO(0, arr, SIZE) + // no-warning
95 ARR_IN_MACRO(1, arr, SIZE); // expected-warning{{array index 10 is past the end of the array (which contains 10 elements)}}
108 int arr[3 + (extendArray ? 1 : 0)];
111 arr[3] = 42; // no-warning
116 int arr[3 + (extendArray ? 1 : 0)]; // expected-note {{array 'arr' declared here}}
119 arr[3] = 42; // expected-warning{{array index 3 is past the end of the array (which contains 3 elements)}}
135 int arr[2] = { 0, 0 }; // expected-note {{array 'arr' declared here}}
137 return sizeof(char) != sizeof(char) ? arr[2] : arr[1];
138 return sizeof(char) == sizeof(char) ? arr[2] : arr[1]; // expected-warning {{array index 2 is past the end of the array (which contains 2 elements)}}
144 int arr[2];
145 arr[2] = 1; // no-warning
149 int arr[2]; // expected-note {{array 'arr' declared here}}
150 arr[2] = 1; // expected-warning {{array index 2 is past the end of the array (which contains 2 elements)}}
154 int arr[2];
155 arr[2] = 1; // no-warning