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.

Reply via email to