Lines Matching +full:no +full:- +full:cast

5  * Demonstrate the case-by-case queries.  Unlike warnings, queries do not
7 * inspect manually on a case-by-case basis.
18 /* lint1-extra-flags: -q 1,2,3,4,5,6,7,8,9,10 */
19 /* lint1-extra-flags: -q 11,12,13,14,15,16,17,18,19,20 */
20 /* lint1-extra-flags: -q 21,22,23,24 */
21 /* lint1-extra-flags: -X 351 */
91 /* expect+1: cast from floating point 'double' to integer 'int' [Q2] */
157 /* expect+1: pointer addition has integer on the left-hand side [Q5] */
164 /* expect+1: pointer addition has integer on the left-hand side [Q5] */
172 /* expect+1: no-op cast from 'int' to 'int' [Q6] */
175 /* expect+1: no-op cast from 'int' to 'int' [Q6] */
185 /* expect+2: no-op cast from '_Bool' to '_Bool' [Q6] */
186 /* expect+1: redundant cast from '_Bool' to '_Bool' before assignment [Q7] */
191 /* expect+2: no-op cast from 'unsigned char' to 'unsigned char' [Q6] */
192 /* expect+1: redundant cast from 'unsigned char' to 'unsigned char' before assignment [Q7] */
196 /* expect+1: no-op cast from 'unsigned short' to 'unsigned short' [Q6] */
198 /* expect+1: no-op cast from 'unsigned char' to 'unsigned char' [Q6] */
201 /* expect+1: redundant cast from 'unsigned char' to 'unsigned short' before assignment [Q7] */
203 /* expect+2: no-op cast from 'unsigned short' to 'unsigned short' [Q6] */
204 /* expect+1: redundant cast from 'unsigned short' to 'unsigned short' before assignment [Q7] */
210 /* expect+1: redundant cast from 'unsigned char' to 'short' before assignment [Q7] */
212 /* expect+1: redundant cast from 'signed char' to 'short' before assignment [Q7] */
217 * Neither GCC nor Clang accept typeof(bit-field), as that would add
219 * bit-field portion from the type; see dcs_add_type.
221 /* expect+1: redundant cast from 'unsigned char' to 'unsigned int' before assignment [Q7] */
225 /* expect+2: no-op cast from 'float' to 'float' [Q6] */
226 /* expect+1: redundant cast from 'float' to 'float' before assignment [Q7] */
230 /* expect+1: no-op cast from 'double' to 'double' [Q6] */
232 /* expect+1: no-op cast from 'float' to 'float' [Q6] */
235 /* expect+1: redundant cast from 'float' to 'double' before assignment [Q7] */
237 /* expect+2: no-op cast from 'double' to 'double' [Q6] */
238 /* expect+1: redundant cast from 'double' to 'double' before assignment [Q7] */
242 /* expect+2: no-op cast from 'float _Complex' to 'float _Complex' [Q6] */
243 /* expect+1: redundant cast from 'float _Complex' to 'float _Complex' before assignment [Q7] */
247 /* expect+1: no-op cast from 'double _Complex' to 'double _Complex' [Q6] */
249 /* expect+1: no-op cast from 'float _Complex' to 'float _Complex' [Q6] */
252 /* expect+1: redundant cast from 'float _Complex' to 'double _Complex' before assignment [Q7] */
254 /* expect+2: no-op cast from 'double _Complex' to 'double _Complex' [Q6] */
255 /* expect+1: redundant cast from 'double _Complex' to 'double _Complex' before assignment [Q7] */
260 /* expect+1: no-op cast from 'float' to 'float' [Q6] */
263 /* expect+1: no-op cast from 'float' to 'float' [Q6] */
272 * an explicit cast in C++, as it is a narrowing conversion. In C,
276 /* expect+1: redundant cast from 'pointer to void' to 'pointer to char' before assignment [Q7] */
278 /* expect+1: redundant cast from 'pointer to void' to 'pointer to const char' before assignment [Q7] */
282 /* expect+2: no-op cast from 'pointer to char' to 'pointer to char' [Q6] */
283 /* expect+1: redundant cast from 'pointer to char' to 'pointer to char' before assignment [Q7] */
288 /* expect+2: no-op cast from 'pointer to const char' to 'pointer to const char' [Q6] */
291 /* expect+1: no-op cast from 'pointer to char' to 'pointer to char' [Q6] */
295 /* expect+2: no-op cast from 'pointer to const char' to 'pointer to const char' [Q6] */
296 /* expect+1: redundant cast from 'pointer to const char' to 'pointer to const char' before assignment [Q7] */
299 /* expect+2: no-op cast from 'pointer to char' to 'pointer to char' [Q6] */
300 /* expect+1: redundant cast from 'pointer to char' to 'pointer to char' before assignment [Q7] */
305 /* expect+2: no-op cast from 'pointer to volatile char' to 'pointer to volatile char' [Q6] */
308 /* expect+1: no-op cast from 'pointer to char' to 'pointer to char' [Q6] */
312 /* expect+2: no-op cast from 'pointer to volatile char' to 'pointer to volatile char' [Q6] */
313 /* expect+1: redundant cast from 'pointer to volatile char' to 'pointer to volatile char' before assignment [Q7] */
325 * Octal numbers were common in the 1970s, especially on 36-bit machines.
357 return -(13);
400 /* expect+2: chained assignment with '*=' and '-=' [Q10] */
402 a += b *= c -= 0;
441 // Plain 'char' is platform-dependent, see queries-{schar,uchar}.c.
479 * non-'static' declaration, it may look confusing.
482 /* expect+3: 'Q16' was declared 'static', now non-'static' [Q16] */
538 /* expect+1: redundant cast from 'pointer to void' to 'pointer to int' before assignment [Q7] */