-Wformat-diag: floating-point or floating point?
Bill Schmidt
wschmidt@linux.ibm.com
Tue May 21 20:18:00 GMT 2019
On 5/21/19 11:47 AM, Martin Sebor wrote:
> The GCC coding style says to use "floating-point" as an adjective
> rather than "floating point."Â After enhancing the -Wformat-diag
> checker to detect this I found a bunch of uses of the latter, such
> as in:
>
> Â gcc/c/c-decl.c:10944
> Â gcc/c/c-parser.c:9423, 9446, 9450, etc.
> Â gcc/convert.c:418, 422
> Â gcc/cp/call.c:5070
> Â gcc/cp/cvt.c:886
>
> Before I fix them all and adjust the tests, I want to make sure
> we really want to follow this rule. The C standard uses both
> interchangeably. With just one exception, the C++ standard uses
> the hyphenated form.
The hyphenated form is correct English, so I certainly prefer it. :-)
Bill
>
> Thanks
> Martin
>
More information about the Gcc
mailing list