Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: document further shift/reduce conf...



details:   https://anonhg.NetBSD.org/src/rev/4af61aef53a3
branches:  trunk
changeset: 1022171:4af61aef53a3
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Jul 06 21:41:36 2021 +0000

description:
lint: document further shift/reduce conflicts

These cannot be resolved as easily as those from the previous commit.
Anyway, the relevant code from the grammar is not yet covered by the
tests, this needs to be done first.

diffstat:

 usr.bin/xlint/lint1/cgram.y |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r dca67a13c5db -r 4af61aef53a3 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Tue Jul 06 20:56:38 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Tue Jul 06 21:41:36 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.264 2021/07/06 20:56:38 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.265 2021/07/06 21:41:36 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.264 2021/07/06 20:56:38 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.265 2021/07/06 21:41:36 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -749,6 +749,11 @@
          }
        ;
 
+/*
+ * XXX: shift/reduce conflict, caused by:
+ *     type_attribute noclass_declspecs
+ *     noclass_declspecs type_attribute
+ */
 noclass_declspecs:
          clrtyp_typespec {
                add_type($1);
@@ -1352,6 +1357,11 @@
          }
        ;
 
+/*
+ * XXX: shift/reduce conflict, caused by:
+ *     type_attribute direct_abstract_declarator
+ *     direct_abstract_declarator type_attribute
+ */
 direct_abstract_declarator:            /* C99 6.7.6 */
          T_LPAREN abstract_declarator T_RPAREN {
                $$ = $2;



Home | Main Index | Thread Index | Old Index