public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/100121] New: RFE: plugin support for -Wformat via __attribute__((format()))
@ 2021-04-16 16:15 dmalcolm at gcc dot gnu.org
  2021-04-16 19:33 ` [Bug c/100121] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2021-04-16 16:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100121

            Bug ID: 100121
           Summary: RFE: plugin support for -Wformat via
                    __attribute__((format()))
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
                CC: msebor at gcc dot gnu.org
  Target Milestone: ---

https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-format-function-attribute
documents the various "archetypes" supported by 
   __attribute__ ((format (ARCHETYPE, M, N)));

These are all just built-in to the compiler.

It would be nice to allow users to add their own, via plugins.

Consider e.g.
 
https://gcc-python-plugin.readthedocs.io/en/latest/cpychecker.html#format-string-checking
for which I had to effectively implement my own version of -Wformat, rather
than being able to reuse gcc's implementation.

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

* [Bug c/100121] RFE: plugin support for -Wformat via __attribute__((format()))
  2021-04-16 16:15 [Bug c/100121] New: RFE: plugin support for -Wformat via __attribute__((format())) dmalcolm at gcc dot gnu.org
@ 2021-04-16 19:33 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-04-16 19:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100121

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Related to PR 8294.

Also I think this project is referenced in PR 47781 even.

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

end of thread, other threads:[~2021-04-16 19:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-16 16:15 [Bug c/100121] New: RFE: plugin support for -Wformat via __attribute__((format())) dmalcolm at gcc dot gnu.org
2021-04-16 19:33 ` [Bug c/100121] " pinskia at gcc dot gnu.org

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