From: Martin Sebor <msebor@gmail.com>
To: "Joseph S. Myers" <joseph@codesourcery.com>,
Jason Merrill <jason@redhat.com>,
gcc mailing list <gcc@gcc.gnu.org>
Subject: -Wformat-diag: floating-point or floating point?
Date: Tue, 21 May 2019 16:47:00 -0000 [thread overview]
Message-ID: <5ddd8f0f-e2f0-62f2-ae38-c860398cb4bb@gmail.com> (raw)
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
next reply other threads:[~2019-05-21 16:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-21 16:47 Martin Sebor [this message]
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)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5ddd8f0f-e2f0-62f2-ae38-c860398cb4bb@gmail.com \
--to=msebor@gmail.com \
--cc=gcc@gcc.gnu.org \
--cc=jason@redhat.com \
--cc=joseph@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).