diagnostics: keep the fixits

Introduce proper support for fixits, instead of just printing them on
demand.

* bootstrap.conf: We need gnulib's xlists.
* src/fixits.h, src/fixits.c: New.
* src/complain.c (deprecated_directive): Use fixits_register.
* src/main.c (main): Use fixits_free.
This commit is contained in:
Akim Demaille
2019-01-12 18:22:41 +01:00
parent dad14ec3e4
commit ffe2e4aaec
7 changed files with 177 additions and 47 deletions

View File

@@ -17,7 +17,7 @@
# gnulib modules used by this package.
gnulib_modules='
argmatch assert
argmatch array-list assert
bitsetv
calloc-posix close closeout config-h c-strcase
configmake
@@ -26,7 +26,9 @@ gnulib_modules='
getopt-gnu
gettext git-version-gen gitlog-to-changelog
gpl-3.0 hash inttypes isnan javacomp-script
javaexec-script ldexpl malloc-gnu
javaexec-script
ldexpl
malloc-gnu
mbswidth
non-recursive-gnulib-prefix-hack
obstack
@@ -44,6 +46,7 @@ gnulib_modules='
xalloc
xalloc-die
xconcat-filename
xlist
xmemdup0
xstrndup