summaryrefslogtreecommitdiff
path: root/tools/gcc-plugins
AgeCommit message (Collapse)Author
2023-09-06Merge pull request #14344 from opensourcerouting/freebsd-printf-sync-20230903Donald Sharp
lib/printf: sync with FreeBSD for ISO C23 enhancements
2023-09-04tools/gcc-plugins: fix for GCC 13David Lamparter
As usual, new GCC version, new small random changes in the API. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-09-03tools/gcc-plugins: allow ISO C23 `%b`David Lamparter
It behaves exactly like `%x`, so adding it is a single byte diff. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-02-09*: manual SPDX License ID conversionsDavid Lamparter
The files converted in this commit either had some random misspelling or formatting weirdness that made them escape automated replacement, or have a particularly "weird" licensing setup (e.g. dual-licensed.) This also marks a bunch of "public domain" files as SPDX License "NONE". Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-02-09*: sort out & explain licenses used in FRRDavid Lamparter
New "introduction" note in `COPYING`, and all the licenses moved into `doc/licenses/`. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-07-26tools/gcc-plugins: make GCC 12 compatibleDavid Lamparter
check_function_arguments_recurse() has received a new function argument in GCC 12. Fill it in and add a compatibility wrapper. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-03-26tools/gcc-plugin: support [un]signed in pragmaDavid Lamparter
Need `unsigned char *` for `%pHX`. Signed-off-by: David Lamparter <equinox@diac24.net>
2021-03-26tools/gcc-plugin: fix format precision/width typeDavid Lamparter
`%*.*pEXT` applied the extension type to the precision and width (*.*) too. Oops. Signed-off-by: David Lamparter <equinox@diac24.net>
2020-11-03tools/gcc-frr-format: fix ICE in gcc-10David Lamparter
gcc-10 has a more strict internal assert for type checks so the plugin currently causes an Internal Compiler Error. Fix. Signed-off-by: David Lamparter <equinox@diac24.net>
2020-10-07*: reformat python fileswhitespace
We are now using black. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2020-07-17tools/gcc-frr-format: update READMEDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2020-07-17tools/gcc-frr-format: update debian bitsDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2020-07-17tools/gcc-frr-format: improve testDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2020-07-17tools/gcc-frr-format: update for gcc 10David Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2020-07-14*: un-split strings across linesDavid Lamparter
Remove mid-string line breaks, cf. workflow doc: .. [#tool_style_conflicts] For example, lines over 80 characters are allowed for text strings to make it possible to search the code for them: please see `Linux kernel style (breaking long lines and strings) <https://www.kernel.org/doc/html/v4.10/process/coding-style.html#breaking-long-lines-and-strings>`_ and `Issue #1794 <https://github.com/FRRouting/frr/issues/1794>`_. Scripted commit, idempotent to running: ``` python3 tools/stringmangle.py --unwrap `git ls-files | egrep '\.[ch]$'` ``` Signed-off-by: David Lamparter <equinox@diac24.net>
2020-03-29tools/gcc-plugins: add small test for frr-formatDavid Lamparter
Just enough to check that it works. Signed-off-by: David Lamparter <equinox@diac24.net>
2020-03-29tools/gcc-plugins: frr-formatDavid Lamparter
This provides the first reasonably-working version of the frr-format GCC plugin. I've only tested it with gcc 9.3.0. Signed-off-by: David Lamparter <equinox@diac24.net>
2020-03-29tools/gcc-plugins: cut c-format.c to sizeDavid Lamparter
... remove everything we don't need (or can't use because GCC doesn't export all of its internal classes & stuff.) Signed-off-by: David Lamparter <equinox@diac24.net>
2020-03-29tools/gcc-plugins: import c-format from GCCDavid Lamparter
(and gcc-common.h from the Linux kernel) Signed-off-by: David Lamparter <equinox@diac24.net>