Lines Matching full:warning
7 char b[2] = "abc"; // expected-warning{{too long}} in string_literal_init()
10 clang_analyzer_eval(a[1] == 'b'); // expected-warning{{TRUE}} in string_literal_init()
11 clang_analyzer_eval(b[1] == 'b'); // expected-warning{{TRUE}} in string_literal_init()
12 clang_analyzer_eval(c[1] == 'b'); // expected-warning{{TRUE}} in string_literal_init()
14 clang_analyzer_eval(a[3] == 0); // expected-warning{{TRUE}} in string_literal_init()
15 clang_analyzer_eval(c[3] == 0); // expected-warning{{TRUE}} in string_literal_init()
17 clang_analyzer_eval(c[4] == 0); // expected-warning{{TRUE}} in string_literal_init()
23 …int vec[6][2] = {{0.195, 0.02}, {0.383, 0.067}, {0.55, 0.169}, // expected-warning 6 {{implicit c… in nested_compound_literals()
24 …{0.831, 0.45}, {0.924, 0.617}, {0.98, 0.805}}; // expected-warning 6 {{implicit conversion from 'd… in nested_compound_literals()
28 vec[a][0] *= rad; // no-warning in nested_compound_literals()
29 vec[a][1] *= rad; // no-warning in nested_compound_literals()
39 vec[a][0] *= rad; // no-warning in nested_compound_literals_float()
40 vec[a][1] *= rad; // no-warning in nested_compound_literals_float()
51 clang_analyzer_eval(a.x == 5); // expected-warning{{TRUE}} in struct_as_array()
52 clang_analyzer_eval(p[0].x == 5); // expected-warning{{TRUE}} in struct_as_array()
55 clang_analyzer_eval(a.y == 5); // expected-warning{{TRUE}} in struct_as_array()
56 clang_analyzer_eval(p->y == 5); // expected-warning{{TRUE}} in struct_as_array()
74 clang_analyzer_eval(c.r == 5); // expected-warning{{TRUE}} in struct_in_struct()
91 return c.r; // no-warning in struct_in_struct_f()
101 clang_analyzer_eval(vals[0] == 42); // expected-warning{{TRUE}} in testSymbolicInvalidation()
104 clang_analyzer_eval(vals[0] == 42); // expected-warning{{UNKNOWN}} in testSymbolicInvalidation()
106 return vals[index]; // no-warning in testSymbolicInvalidation()
113 clang_analyzer_eval(vals[index] == 42); // expected-warning{{TRUE}} in testConcreteInvalidation()
115 clang_analyzer_eval(vals[index] == 42); // expected-warning{{UNKNOWN}} in testConcreteInvalidation()
117 return vals[0]; // no-warning in testConcreteInvalidation()
131 clang_analyzer_eval(vals[0].x == 42); // expected-warning{{TRUE}} in testSymbolicInvalidationStruct()
134 clang_analyzer_eval(vals[0].x == 42); // expected-warning{{UNKNOWN}} in testSymbolicInvalidationStruct()
136 return vals[index].x; // no-warning in testSymbolicInvalidationStruct()
143 clang_analyzer_eval(vals[index].x == 42); // expected-warning{{TRUE}} in testConcreteInvalidationStruct()
145 clang_analyzer_eval(vals[index].x == 42); // expected-warning{{UNKNOWN}} in testConcreteInvalidationStruct()
147 return vals[0].x; // no-warning in testConcreteInvalidationStruct()
160 clang_analyzer_eval(vals.a[0].x == 42); // expected-warning{{TRUE}} in testSymbolicInvalidationDoubleStruct()
161 clang_analyzer_eval(vals.b[0].x == 42); // expected-warning{{TRUE}} in testSymbolicInvalidationDoubleStruct()
164 clang_analyzer_eval(vals.a[0].x == 42); // expected-warning{{UNKNOWN}} in testSymbolicInvalidationDoubleStruct()
165 clang_analyzer_eval(vals.b[0].x == 42); // expected-warning{{TRUE}} in testSymbolicInvalidationDoubleStruct()
167 return vals.b[index].x; // no-warning in testSymbolicInvalidationDoubleStruct()
175 clang_analyzer_eval(vals.a[index].x == 42); // expected-warning{{TRUE}} in testConcreteInvalidationDoubleStruct()
176 clang_analyzer_eval(vals.b[index].x == 42); // expected-warning{{TRUE}} in testConcreteInvalidationDoubleStruct()
179 clang_analyzer_eval(vals.a[index].x == 42); // expected-warning{{UNKNOWN}} in testConcreteInvalidationDoubleStruct()
180 clang_analyzer_eval(vals.b[index].x == 42); // expected-warning{{TRUE}} in testConcreteInvalidationDoubleStruct()
182 return vals.b[0].x; // no-warning in testConcreteInvalidationDoubleStruct()
191 clang_analyzer_eval(val.x == 1); // expected-warning{{TRUE}} in testNonOverlappingStructFieldsSimple()
192 clang_analyzer_eval(val.y == 2); // expected-warning{{TRUE}} in testNonOverlappingStructFieldsSimple()
194 return val.z; // expected-warning{{garbage}} in testNonOverlappingStructFieldsSimple()
202 clang_analyzer_eval(vals.a[index].x == 42); // expected-warning{{TRUE}} in testNonOverlappingStructFieldsSymbolicBase()
203 clang_analyzer_eval(vals.a[index].y == 42); // expected-warning{{TRUE}} in testNonOverlappingStructFieldsSymbolicBase()
206 clang_analyzer_eval(vals.a[index].x == 42); // expected-warning{{UNKNOWN}} in testNonOverlappingStructFieldsSymbolicBase()
207 clang_analyzer_eval(vals.a[index].y == 42); // expected-warning{{TRUE}} in testNonOverlappingStructFieldsSymbolicBase()
210 return vals.a[index].z; // no-warning in testNonOverlappingStructFieldsSymbolicBase()
218 clang_analyzer_eval(vals[index].a[0].x == 42); // expected-warning{{TRUE}} in testStructFieldChains()
219 clang_analyzer_eval(vals[anotherIndex].a[1].y == 42); // expected-warning{{TRUE}} in testStructFieldChains()
223 clang_analyzer_eval(vals[index].a[0].x == 42); // expected-warning{{TRUE}} in testStructFieldChains()
224 clang_analyzer_eval(vals[anotherIndex].a[1].y == 42); // expected-warning{{TRUE}} in testStructFieldChains()
225 clang_analyzer_eval(vals[anotherIndex].b[1].x == 42); // expected-warning{{TRUE}} in testStructFieldChains()
229 clang_analyzer_eval(vals[index].a[0].x == 42); // expected-warning{{UNKNOWN}} in testStructFieldChains()
230 clang_analyzer_eval(vals[anotherIndex].a[0].x == 42); // expected-warning{{UNKNOWN}} in testStructFieldChains()
231 clang_analyzer_eval(vals[anotherIndex].a[1].y == 42); // expected-warning{{TRUE}} in testStructFieldChains()
232 clang_analyzer_eval(vals[anotherIndex].b[1].x == 42); // expected-warning{{TRUE}} in testStructFieldChains()
235 return vals[index].a[0].z; // no-warning in testStructFieldChains()
242 clang_analyzer_eval(vals[index].a[0].x == 42); // expected-warning{{TRUE}} in testStructFieldChainsNested()
245 clang_analyzer_eval(vals[index].a[0].x == 42); // expected-warning{{TRUE}} in testStructFieldChainsNested()
248 clang_analyzer_eval(vals[index].a[0].x == 42); // expected-warning{{UNKNOWN}} in testStructFieldChainsNested()
251 clang_analyzer_eval(vals[index].a[0].x == 42); // expected-warning{{TRUE}} in testStructFieldChainsNested()
267 test13116945(r.center); // no-warning in radar13116945()
285 clang_analyzer_eval(s3.data[0] == 'a'); // expected-warning{{TRUE}} in testArrayStructCopy()
286 clang_analyzer_eval(s3.data[1] == 'b'); // expected-warning{{TRUE}} in testArrayStructCopy()
287 clang_analyzer_eval(s3.data[2] == 'c'); // expected-warning{{TRUE}} in testArrayStructCopy()
292 clang_analyzer_eval(s4.data[0] == 'z'); // expected-warning{{TRUE}} in testArrayStructCopy()
293 clang_analyzer_eval(s4.data[1] == 'b'); // expected-warning{{TRUE}} in testArrayStructCopy()
294 clang_analyzer_eval(s4.data[2] == 'c'); // expected-warning{{TRUE}} in testArrayStructCopy()
303 clang_analyzer_eval(w.str.data[0] == 'a'); // expected-warning{{TRUE}} in testArrayStructCopyNested()
304 clang_analyzer_eval(w.str.data[1] == 'b'); // expected-warning{{TRUE}} in testArrayStructCopyNested()
305 clang_analyzer_eval(w.str.data[2] == 'c'); // expected-warning{{TRUE}} in testArrayStructCopyNested()
306 clang_analyzer_eval(w.length == 0); // expected-warning{{TRUE}} in testArrayStructCopyNested()
309 clang_analyzer_eval(w2.str.data[0] == 'a'); // expected-warning{{TRUE}} in testArrayStructCopyNested()
310 clang_analyzer_eval(w2.str.data[1] == 'b'); // expected-warning{{TRUE}} in testArrayStructCopyNested()
311 clang_analyzer_eval(w2.str.data[2] == 'c'); // expected-warning{{TRUE}} in testArrayStructCopyNested()
312 clang_analyzer_eval(w2.length == 0); // expected-warning{{TRUE}} in testArrayStructCopyNested()
315 clang_analyzer_eval(w3.str.data[0] == 'a'); // expected-warning{{TRUE}} in testArrayStructCopyNested()
316 clang_analyzer_eval(w3.str.data[1] == 'b'); // expected-warning{{TRUE}} in testArrayStructCopyNested()
317 clang_analyzer_eval(w3.str.data[2] == 'c'); // expected-warning{{TRUE}} in testArrayStructCopyNested()
318 clang_analyzer_eval(w3.length == 0); // expected-warning{{TRUE}} in testArrayStructCopyNested()
332 clang_analyzer_eval(vals.a[index].x == 42); // expected-warning{{UNKNOWN}} in testMixSymbolicAndConcrete()
334 clang_analyzer_eval(vals.a[0].y == 42); // expected-warning{{TRUE}} in testMixSymbolicAndConcrete()
339 clang_analyzer_eval(vals.a[index].x == 42); // expected-warning{{UNKNOWN}} in testMixSymbolicAndConcrete()
341 clang_analyzer_eval(vals.a[0].y == 42); // expected-warning{{UNKNOWN}} in testMixSymbolicAndConcrete()
343 return vals.a[0].x; // no-warning in testMixSymbolicAndConcrete()
350 clang_analyzer_eval(vals[index].a[0].x == 42); // expected-warning{{TRUE}} in testFieldChainIsNotEnough()
354 clang_analyzer_eval(vals[index].a[0].x == 42); // expected-warning{{UNKNOWN}} in testFieldChainIsNotEnough()