Module Name: src
Committed By: rillig
Date: Sun Mar 21 12:06:10 UTC 2021
Modified Files:
src/usr.bin/xlint/lint1: lint1.h
Log Message:
lint: document the precise meaning of control_statement.c_break
No functional change.
To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/usr.bin/xlint/lint1/lint1.h
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/lint1.h
diff -u src/usr.bin/xlint/lint1/lint1.h:1.82 src/usr.bin/xlint/lint1/lint1.h:1.83
--- src/usr.bin/xlint/lint1/lint1.h:1.82 Sun Mar 21 12:03:56 2021
+++ src/usr.bin/xlint/lint1/lint1.h Sun Mar 21 12:06:10 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: lint1.h,v 1.82 2021/03/21 12:03:56 rillig Exp $ */
+/* $NetBSD: lint1.h,v 1.83 2021/03/21 12:06:10 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -385,9 +385,8 @@ typedef struct control_statement {
int c_env; /* type of statement (T_IF, ...) */
bool c_loop : 1; /* continue && break are valid */
bool c_switch : 1; /* case && break are valid */
- bool c_break : 1; /* loop/switch has break */
- /* TODO: is the break guaranteed to be
- * reachable? */
+ bool c_break : 1; /* the loop/switch has a reachable
+ * break statement */
bool c_cont : 1; /* loop has continue */
bool c_default : 1; /* switch has default */
bool c_maybe_endless : 1; /* the controlling expression is