arocc
arocc copied to clipboard
Print _BitInt size in diagnostics
_BitInt(10) x = 1.2;
Currently our warning looks like this:
test.c:1:17: warning: implicit conversion from 'double' to '_BitInt' changes value from 1.2 to 1 [-Wfloat-conversion]
_BitInt(10) x = 1.2;
^
When it should be
test.c:1:17: warning: implicit conversion from 'double' to '_BitInt(10)' changes value from 1.2 to 1 [-Wfloat-conversion]
_BitInt(10) x = 1.2;
^
- Change the
unsigned_bit_int_too_small,signed_bit_int_too_small, andbit_int_too_bigmessages to not take a string parameter. - Change
Builder.Specifier.strto returnnullfor the_BitIntspecifiers - Handle
_BitInttypes inType.printPrologue