summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-09-27 18:28:19 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-10-06 09:54:25 +0200
commitbe3cf406afcd68bbf1c113607f3362722f4418d1 (patch)
treeba19fa11dedeb8ba306533fa6c4c441ebc5f2de9 /lib
parent126c4622de27197bbe4c6a713f28d114839e636f (diff)
downloadbison-be3cf406afcd68bbf1c113607f3362722f4418d1.tar.gz
diagnostics: suggest fixes for undeclared symbols
From input.y:1.17-19: warning: symbol baz is used, but is not defined as a token and has no rules [-Wother] 1 | %printer {} foo baz | ^~~ to input.y:1.17-19: warning: symbol 'baz' is used, but is not defined as a token and has no rules; did you mean 'bar'? [-Wother] 1 | %printer {} foo baz | ^~~ | bar * bootstrap.conf: We need fstrcmp. * src/symtab.c (symbol_from_uniqstr_fuzzy): New. (complain_symbol_undeclared): Use it. * tests/diagnostics.at (Suggestions): New. * data/bison-default.css (insertion): Rename as... (fixit-insert): this, as this is what GCC uses.
Diffstat (limited to 'lib')
-rw-r--r--lib/.gitignore5
-rw-r--r--lib/glthread/.gitignore2
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/.gitignore b/lib/.gitignore
index 0f007442..dc8934d5 100644
--- a/lib/.gitignore
+++ b/lib/.gitignore
@@ -53,6 +53,7 @@
/config.h
/config.in.h
/configmake.h
+/diffseq.h
/dirname-lgpl.c
/dirname.c
/dirname.h
@@ -91,6 +92,8 @@
/fseterr.c
/fseterr.h
/fstat.c
+/fstrcmp.c
+/fstrcmp.h
/fsync.c
/getdtablesize.c
/gethrxtime.c
@@ -324,6 +327,8 @@
/windows-recmutex.h
/windows-rwlock.c
/windows-rwlock.h
+/windows-tls.c
+/windows-tls.h
/xalloc-die.c
/xalloc-oversized.h
/xalloc.h
diff --git a/lib/glthread/.gitignore b/lib/glthread/.gitignore
index e0605e15..b854214e 100644
--- a/lib/glthread/.gitignore
+++ b/lib/glthread/.gitignore
@@ -1,3 +1,5 @@
/lock.c
/lock.h
/threadlib.c
+/tls.c
+/tls.h