public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* (!HELP NEEDED) Where is the doc for the format strings in gcc (for example, %q+D, ...)
@ 2021-10-20 15:49 Qing Zhao
  2021-10-20 17:57 ` Marek Polacek
  0 siblings, 1 reply; 4+ messages in thread
From: Qing Zhao @ 2021-10-20 15:49 UTC (permalink / raw)
  To: gcc-patches Nick Alcock via

Hi,

In GCC, there are many utility routines for reporting error, warning, or information, for example:

warning (0, "weak declaration of %q+D not supported", decl);
warning_at (stmtloc, OPT_Wmaybe_uninitialized,  "%qE may be used uninitialized", ptr));
inform (loc, "in a call to %qT declared with " "attribute %<%s%>", fntype, access_str);
error ("%qD is unavailable: %s", node, (const char *) msg);

There are format-strings inside them, “%q+D”, “%qE”, “%qT”, “%qD”, etc, where can I find a doc for the details of
These format-strings? Or which source files I should read to understand the details?

Thanks a lot for your help.

Qing

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

end of thread, other threads:[~2021-10-24 17:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-20 15:49 (!HELP NEEDED) Where is the doc for the format strings in gcc (for example, %q+D, ...) Qing Zhao
2021-10-20 17:57 ` Marek Polacek
2021-10-20 19:25   ` Qing Zhao
2021-10-24 17:07   ` Eric Gallager

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).