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 the cause for 24 of the 1...
details: https://anonhg.NetBSD.org/src/rev/dca67a13c5db
branches: trunk
changeset: 1022170:dca67a13c5db
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Jul 06 20:56:38 2021 +0000
description:
lint: document the cause for 24 of the 162 grammar conflicts
diffstat:
usr.bin/xlint/lint1/cgram.y | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r 5cfec3a887c0 -r dca67a13c5db usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Tue Jul 06 20:29:08 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Tue Jul 06 20:56:38 2021 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.263 2021/07/06 20:29:08 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.264 2021/07/06 20:56:38 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.263 2021/07/06 20:29:08 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.264 2021/07/06 20:56:38 rillig Exp $");
#endif
#include <limits.h>
@@ -963,6 +963,11 @@
}
;
+/*
+ * XXX: shift/reduce conflict, caused by:
+ * type_attribute notype_direct_decl
+ * notype_direct_decl type_attribute
+ */
notype_direct_decl:
T_NAME {
$$ = declarator_name(getsym($1));
@@ -987,6 +992,11 @@
| notype_direct_decl type_attribute
;
+/*
+ * XXX: shift/reduce conflict, caused by:
+ * type_attribute type_direct_decl
+ * type_direct_decl type_attribute
+ */
type_direct_decl:
identifier {
$$ = declarator_name(getsym($1));
Home |
Main Index |
Thread Index |
Old Index