Module Name:    src
Committed By:   rillig
Date:           Sun Feb 28 20:04:52 UTC 2021

Modified Files:
        src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: document where in C99 the behavior of cconv is specified


To generate a diff of this commit:
cvs rdiff -u -r1.230 -r1.231 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/tree.c
diff -u src/usr.bin/xlint/lint1/tree.c:1.230 src/usr.bin/xlint/lint1/tree.c:1.231
--- src/usr.bin/xlint/lint1/tree.c:1.230	Sun Feb 28 19:24:15 2021
+++ src/usr.bin/xlint/lint1/tree.c	Sun Feb 28 20:04:52 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: tree.c,v 1.230 2021/02/28 19:24:15 rillig Exp $	*/
+/*	$NetBSD: tree.c,v 1.231 2021/02/28 20:04:52 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.230 2021/02/28 19:24:15 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.231 2021/02/28 20:04:52 rillig Exp $");
 #endif
 
 #include <float.h>
@@ -673,6 +673,10 @@ build(op_t op, tnode_t *ln, tnode_t *rn)
  * Arrays of type T are converted into pointers to type T.
  * Functions are converted to pointers to functions.
  * Lvalues are converted to rvalues.
+ *
+ * C99 6.3 "Conversions"
+ * C99 6.3.2 "Other operands"
+ * C99 6.3.2.1 "Lvalues, arrays, and function designators"
  */
 tnode_t *
 cconv(tnode_t *tn)

Reply via email to