Module Name:    src
Committed By:   rillig
Date:           Sun Apr  2 19:47:54 UTC 2023

Modified Files:
        src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: clean up indentation and wrapping in C parser


To generate a diff of this commit:
cvs rdiff -u -r1.433 -r1.434 src/usr.bin/xlint/lint1/cgram.y

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/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.433 src/usr.bin/xlint/lint1/cgram.y:1.434
--- src/usr.bin/xlint/lint1/cgram.y:1.433	Mon Feb  6 21:01:55 2023
+++ src/usr.bin/xlint/lint1/cgram.y	Sun Apr  2 19:47:54 2023
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.433 2023/02/06 21:01:55 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.434 2023/04/02 19:47:54 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID)
-__RCSID("$NetBSD: cgram.y,v 1.433 2023/02/06 21:01:55 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.434 2023/04/02 19:47:54 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -2058,9 +2058,9 @@ gcc_attribute_specifier_list:
 
 gcc_attribute_specifier:
 	  T_ATTRIBUTE T_LPAREN T_LPAREN {
-	    in_gcc_attribute = true;
+		in_gcc_attribute = true;
 	  } gcc_attribute_list {
-	    in_gcc_attribute = false;
+		in_gcc_attribute = false;
 	  } T_RPAREN T_RPAREN
 	;
 
@@ -2078,8 +2078,7 @@ gcc_attribute:
 		else if (is_either(name, "used", "__used__") ||
 		    is_either(name, "unused", "__unused__"))
 			dcs_set_used();
-		else if (is_either(name, "fallthrough",
-		    "__fallthrough__"))
+		else if (is_either(name, "fallthrough", "__fallthrough__"))
 			fallthru(1);
 	}
 	| T_NAME T_LPAREN T_RPAREN

Reply via email to