public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* -Wformat-diag: floating-point or floating point?
@ 2019-05-21 16:47 Martin Sebor
  2019-05-21 20:18 ` Bill Schmidt
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Sebor @ 2019-05-21 16:47 UTC (permalink / raw)
  To: Joseph S. Myers, Jason Merrill, gcc mailing list

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.

Thanks
Martin

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-05-23 16:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-21 16:47 -Wformat-diag: floating-point or floating point? Martin Sebor
2019-05-21 20:18 ` Bill Schmidt
2019-05-21 21:33   ` Martin Sebor
2019-05-22 10:19   ` Richard Earnshaw (lists)
2019-05-22 12:17     ` Bill Schmidt
2019-05-22 12:28       ` Richard Earnshaw (lists)
2019-05-22 14:58         ` Martin Sebor
2019-05-22 15:04           ` Bill Schmidt
2019-05-23 16:45           ` Joseph Myers
2019-05-22 12:33       ` Richard Earnshaw (lists)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).