Home | History | Annotate | Line # | Download | only in indent
opt_ip.c revision 1.4
      1 /* $NetBSD: opt_ip.c,v 1.4 2021/10/18 07:11:31 rillig Exp $ */
      2 /* $FreeBSD$ */
      3 
      4 /*
      5  * Tests for the options '-ip' and '-nip'.
      6  *
      7  * The option '-ip' indents parameter declarations from the left margin.
      8  *
      9  * The option '-nip' TODO.
     10  */
     11 
     12 /* FIXME: The options -ip and -nip produce the same output. */
     13 
     14 #indent input
     15 int
     16 several_parameters_1(int a,
     17 int b,
     18 const char *cp);
     19 
     20 int
     21 several_parameters_2(
     22 int a,
     23 int b,
     24 const char *cp);
     25 
     26 int
     27 several_parameters_3(
     28 int a1, int a2,
     29 int b1, int b2,
     30 const char *cp);
     31 #indent end
     32 
     33 #indent run -ip
     34 int
     35 several_parameters_1(int a,
     36 		     int b,
     37 		     const char *cp);
     38 
     39 int
     40 several_parameters_2(
     41 		     int a,
     42 		     int b,
     43 		     const char *cp);
     44 
     45 int
     46 several_parameters_3(
     47 		     int a1, int a2,
     48 		     int b1, int b2,
     49 		     const char *cp);
     50 #indent end
     51 
     52 #indent run-equals-prev-output -nip
     53