NetBSD/usr.bin/xlint
rillig 5bd0234249 lint: merge duplicate code in grammar for GCC compound expressions
This increases the number of shift/reduce conflicts, once again.  I
don't know why since the previous two grammar rules only differed in a
single detail.  One of them had a declaration_list while the other
didn't.  This difference is exactly what declaration_list_opt is for.

Anyway, the tests for both cases (with and without declarations) work
exactly as before.

Merging this duplicate code will probably make it easier to fix the
current limitation in lint regarding GCC compound expressions that a
statement followed by a declaration generates a syntax error.

Fixing this is not trivial, my first attempt failed either with
segmentation faults or with sym->s_type becoming NOSPEC during the
expression.
2021-04-23 20:26:43 +00:00
..
arch lint: reduce preprocessor magic for platform target types 2021-01-24 14:47:40 +00:00
common lint: remove WARNS=3, falling back to the default WARNS=5 2021-04-18 22:51:24 +00:00
lint1 lint: merge duplicate code in grammar for GCC compound expressions 2021-04-23 20:26:43 +00:00
lint2 lint: remove WARNS=3, falling back to the default WARNS=5 2021-04-18 22:51:24 +00:00
llib
xlint lint: remove WARNS=3, falling back to the default WARNS=5 2021-04-18 22:51:24 +00:00
Makefile
Makefile.inc lint: remove WARNS=3, falling back to the default WARNS=5 2021-04-18 22:51:24 +00:00