Lines Matching full:warning
39 …int d = &y - &x; // expected-warning{{Subtraction of two pointers that do not point to the same me… in f3()
44 d = q-p; // no-warning in f3()
49 …p = (int*) 0x10000; // expected-warning{{Using a fixed address is not portable because that addres… in f4()
55 …p = &x + 1; // expected-warning{{Pointer arithmetic on non-array variables relies on memory layou… in f5()
58 p = a + 1; // no-warning in f5()
63 int d = q - p; // no-warning in f6()
69 clang_analyzer_eval(&&start != 0); // expected-warning{{TRUE}} in null_operand()
70 clang_analyzer_eval(&&start >= 0); // expected-warning{{TRUE}} in null_operand()
71 clang_analyzer_eval(&&start > 0); // expected-warning{{TRUE}} in null_operand()
72 clang_analyzer_eval((&&start - 0) != 0); // expected-warning{{TRUE}} in null_operand()
75 clang_analyzer_eval(&a != 0); // expected-warning{{TRUE}} in null_operand()
76 clang_analyzer_eval(&a >= 0); // expected-warning{{TRUE}} in null_operand()
77 clang_analyzer_eval(&a > 0); // expected-warning{{TRUE}} in null_operand()
78 clang_analyzer_eval((&a - 0) != 0); // expected-warning{{TRUE}} in null_operand()
82 clang_analyzer_eval(0 != &a); // expected-warning{{TRUE}} in null_operand()
83 clang_analyzer_eval(0 <= &a); // expected-warning{{TRUE}} in null_operand()
84 clang_analyzer_eval(0 < &a); // expected-warning{{TRUE}} in null_operand()
87 clang_analyzer_eval(a != 0); // expected-warning{{UNKNOWN}} in null_operand()
88 clang_analyzer_eval(a >= 0); // expected-warning{{TRUE}} in null_operand()
89 clang_analyzer_eval(a <= 0); // expected-warning{{UNKNOWN}} in null_operand()
90 clang_analyzer_eval((a - 0) != 0); // expected-warning{{UNKNOWN}} in null_operand()
93 clang_analyzer_eval(0 != a); // expected-warning{{UNKNOWN}} in null_operand()
94 clang_analyzer_eval(0 <= a); // expected-warning{{TRUE}} in null_operand()
95 clang_analyzer_eval(0 < a); // expected-warning{{UNKNOWN}} in null_operand()
102 clang_analyzer_eval(a != b); // expected-warning{{TRUE}} in const_locs()
103 clang_analyzer_eval(a < b); // expected-warning{{TRUE}} in const_locs()
104 clang_analyzer_eval(a <= b); // expected-warning{{TRUE}} in const_locs()
105 clang_analyzer_eval((b-a) == 0x100); // expected-warning{{TRUE}} in const_locs()
107 clang_analyzer_eval(&&start == a); // expected-warning{{UNKNOWN}} in const_locs()
108 clang_analyzer_eval(a == &&start); // expected-warning{{UNKNOWN}} in const_locs()
109 clang_analyzer_eval(&a == (char**)a); // expected-warning{{UNKNOWN}} in const_locs()
110 clang_analyzer_eval((char**)a == &a); // expected-warning{{UNKNOWN}} in const_locs()
118 clang_analyzer_eval(a != b); // expected-warning{{TRUE}} in array_matching_types()
119 clang_analyzer_eval(a < b); // expected-warning{{TRUE}} in array_matching_types()
120 clang_analyzer_eval(a <= b); // expected-warning{{TRUE}} in array_matching_types()
121 clang_analyzer_eval((b-a) != 0); // expected-warning{{TRUE}} in array_matching_types()
130 …clang_analyzer_eval(a != b); // expected-warning{{TRUE}} expected-warning{{comparison of distinct … in array_different_types()
131 …clang_analyzer_eval(a < b); // expected-warning{{TRUE}} expected-warning{{comparison of distinct p… in array_different_types()
132 …clang_analyzer_eval(a <= b); // expected-warning{{TRUE}} expected-warning{{comparison of distinct … in array_different_types()
139 clang_analyzer_eval(&a.x != &a.y); // expected-warning{{TRUE}} in struct_fields()
140 clang_analyzer_eval(&a.x < &a.y); // expected-warning{{TRUE}} in struct_fields()
141 clang_analyzer_eval(&a.x <= &a.y); // expected-warning{{TRUE}} in struct_fields()
143 clang_analyzer_eval(&a.x != &b.x); // expected-warning{{TRUE}} in struct_fields()
144 clang_analyzer_eval(&a.x > &b.x); // expected-warning{{UNKNOWN}} in struct_fields()
145 clang_analyzer_eval(&a.x >= &b.x); // expected-warning{{UNKNOWN}} in struct_fields()
153 clang_analyzer_eval(&a != &b); // expected-warning{{TRUE}} in mixed_region_types()
154 clang_analyzer_eval(&a > &b); // expected-warning{{UNKNOWN}} in mixed_region_types()
155 clang_analyzer_eval(&a >= &b); // expected-warning{{UNKNOWN}} in mixed_region_types()
161 clang_analyzer_eval(&a != p); // expected-warning{{TRUE}} in symbolic_region()
162 clang_analyzer_eval(&a > p); // expected-warning{{UNKNOWN}} in symbolic_region()
163 clang_analyzer_eval(&a >= p); // expected-warning{{UNKNOWN}} in symbolic_region()
172 clang_analyzer_eval(lhs < rhs); // expected-warning{{UNKNOWN}} in use_symbols()
175 clang_analyzer_eval(lhs < rhs); // expected-warning{{FALSE}} in use_symbols()
177 clang_analyzer_eval(lhs - rhs); // expected-warning{{UNKNOWN}} in use_symbols()
180 clang_analyzer_eval((lhs - rhs) == 5); // expected-warning{{TRUE}} in use_symbols()
184 clang_analyzer_eval(lhs == rhs); // expected-warning{{UNKNOWN}} in equal_implies_zero()
186 clang_analyzer_eval(lhs != rhs); // expected-warning{{FALSE}} in equal_implies_zero()
187 clang_analyzer_eval((rhs - lhs) == 0); // expected-warning{{TRUE}} in equal_implies_zero()
190 clang_analyzer_eval(lhs == rhs); // expected-warning{{FALSE}} in equal_implies_zero()
191 clang_analyzer_eval(lhs != rhs); // expected-warning{{TRUE}} in equal_implies_zero()
192 clang_analyzer_eval((rhs - lhs) == 0); // expected-warning{{FALSE}} in equal_implies_zero()
196 clang_analyzer_eval((rhs - lhs) == 0); // expected-warning{{UNKNOWN}} in zero_implies_equal()
198 clang_analyzer_eval(lhs != rhs); // expected-warning{{FALSE}} in zero_implies_equal()
199 clang_analyzer_eval(lhs == rhs); // expected-warning{{TRUE}} in zero_implies_equal()
202 clang_analyzer_eval((rhs - lhs) == 0); // expected-warning{{FALSE}} in zero_implies_equal()
203 clang_analyzer_eval(lhs == rhs); // expected-warning{{FALSE}} in zero_implies_equal()
204 clang_analyzer_eval(lhs != rhs); // expected-warning{{TRUE}} in zero_implies_equal()
208 clang_analyzer_eval(lhs <= rhs); // expected-warning{{UNKNOWN}} in comparisons_imply_size()
211 clang_analyzer_eval((rhs - lhs) == 0); // expected-warning{{FALSE}} in comparisons_imply_size()
215 clang_analyzer_eval(lhs <= rhs); // expected-warning{{TRUE}} in comparisons_imply_size()
216 clang_analyzer_eval((rhs - lhs) >= 0); // expected-warning{{TRUE}} in comparisons_imply_size()
217 clang_analyzer_eval((rhs - lhs) > 0); // expected-warning{{UNKNOWN}} in comparisons_imply_size()
220 clang_analyzer_eval((rhs - lhs) == 0); // expected-warning{{TRUE}} in comparisons_imply_size()
224 clang_analyzer_eval(lhs == rhs); // expected-warning{{FALSE}} in comparisons_imply_size()
225 clang_analyzer_eval(lhs < rhs); // expected-warning{{TRUE}} in comparisons_imply_size()
226 clang_analyzer_eval((rhs - lhs) > 0); // expected-warning{{TRUE}} in comparisons_imply_size()
230 clang_analyzer_eval(lhs <= rhs); // expected-warning{{UNKNOWN}} in size_implies_comparison()
233 clang_analyzer_eval(lhs == rhs); // expected-warning{{FALSE}} in size_implies_comparison()
237 clang_analyzer_eval(lhs <= rhs); // expected-warning{{TRUE}} in size_implies_comparison()
238 clang_analyzer_eval((rhs - lhs) >= 0); // expected-warning{{TRUE}} in size_implies_comparison()
239 clang_analyzer_eval((rhs - lhs) > 0); // expected-warning{{UNKNOWN}} in size_implies_comparison()
242 clang_analyzer_eval(lhs == rhs); // expected-warning{{TRUE}} in size_implies_comparison()
246 clang_analyzer_eval(lhs == rhs); // expected-warning{{FALSE}} in size_implies_comparison()
247 clang_analyzer_eval(lhs < rhs); // expected-warning{{TRUE}} in size_implies_comparison()
248 clang_analyzer_eval((rhs - lhs) > 0); // expected-warning{{TRUE}} in size_implies_comparison()
256 clang_analyzer_eval((rhs - lhs) == 0); // expected-warning{{UNKNOWN}} in zero_implies_reversed_equal()
259 clang_analyzer_eval(rhs != lhs); // expected-warning{{UNKNOWN}} in zero_implies_reversed_equal()
261 clang_analyzer_eval(rhs == lhs); // expected-warning{{UNKNOWN}} in zero_implies_reversed_equal()
264 clang_analyzer_eval((rhs - lhs) == 0); // expected-warning{{FALSE}} in zero_implies_reversed_equal()
266 clang_analyzer_eval(rhs == lhs); // expected-warning{{UNKNOWN}} in zero_implies_reversed_equal()
268 clang_analyzer_eval(rhs != lhs); // expected-warning{{UNKNOWN}} in zero_implies_reversed_equal()
272 clang_analyzer_eval(lhs == rhs); // expected-warning{{UNKNOWN}} in canonical_equal()
275 clang_analyzer_eval(rhs == lhs); // expected-warning{{UNKNOWN}} in canonical_equal()
278 clang_analyzer_eval(lhs == rhs); // expected-warning{{FALSE}} in canonical_equal()
281 clang_analyzer_eval(rhs == lhs); // expected-warning{{UNKNOWN}} in canonical_equal()
286 clang_analyzer_eval(p == q); // expected-warning{{FALSE}} in compare_element_region_and_base()
294 clang_analyzer_eval(&points[i].x == &points[j].x);// expected-warning{{UNKNOWN}} in symbolicFieldRegion()
295 clang_analyzer_eval(&points[i].x == &points[i].y);// expected-warning{{FALSE}} in symbolicFieldRegion()
296 clang_analyzer_eval(&points[i].x < &points[i].y);// expected-warning{{TRUE}} in symbolicFieldRegion()
301 clang_analyzer_eval(*(str + 1) == 'a'); // expected-warning{{TRUE}} in negativeIndex()
302 clang_analyzer_eval(*(str - 1) == 'a'); // expected-warning{{UNKNOWN}} in negativeIndex()
305 clang_analyzer_eval(*ptr1 == 'a'); // expected-warning{{UNKNOWN}} in negativeIndex()
309 clang_analyzer_eval(*ptr2 == 'a'); // expected-warning{{UNKNOWN}} in negativeIndex()
313 clang_analyzer_eval(*ptr3 == 'a'); // expected-warning{{UNKNOWN}} in negativeIndex()