summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00408-star-style.c
blob: e2e834e2f088188b7284c184671ed2aa5545f5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//          gap ↘ |123456| ↙ gap
static int               *a;
static unsigned int      **b;
static short int         *c;
static long int          d;
static int               ***e;
//          gap ↗ |123456| ↖ gap

//                                gap ↘ |12345678| ↙ gap
int function_with_no_star_parameters (int        parameter)
//                                gap ↗ |12345678| ↖ gap
{
	return 0;
}

//                           gap ↘ |12345678| ↙ gap
int function_with_stars(int                 *f,
                        unsigned int        **g,
                        short int           *h,
                        long int            i,
                        int                 ***j)
//                           gap ↗ |12345678| ↖ gap
{
//           gap ↘ |123456| ↙ gap
	int               *k;
	unsigned int      **l;
	short int         *m;
	long int          n;
	int               ***o;
//           gap ↗ |123456| ↖ gap
	return 0;
}

//                                            gap ↘ |12345678| ↙ gap
int function_closer_than_16_lines_from_j(int                 *p,
                                         unsigned int        **q,
                                         short int           *r,
                                         long int            s,
                                         int                 ***t)
//                                            gap ↗ |12345678| ↖ gap
{
//           gap ↘ |123456| ↙ gap
	int               *u;
	unsigned int      **v;
	short int         *w;
	long int          x;
	int               ***y;
//           gap ↗ |123456| ↖ gap

	/* The point of this comment is merely to make the
	 * function longer than 16 lines.
	 *
	 * We're doing this to show that parameter alignment is
	 * per parameter list, and that parameter lists from
	 * multiple functions aren't lined up with each other.
	 *
	 * You can see that by noticing that function_with_stars and this
	 * function don't have parameter lists aligned with each
	 * other, and this function and the function below it are
	 * too far away anyway.
	 */
	return 0;
}

//                                 gap ↘ |12345678| ↙ gap
int more_than_16_lines_from_t(int                 *z,
                              unsigned int        **zz,
                              short int           *zzz,
                              long int            zzzz,
                              int                 ***zzzzz)
//                                 gap ↗ |12345678| ↖ gap
{
//           gap ↘ |123456| ↙ gap
	int               *zzzzzz;
	unsigned int      **zzzzzzz;
	short int         *zzzzzzzz;
	long int          zzzzzzzzz;
	int               ***zzzzzzzzzz;
//           gap ↗ |123456| ↖ gap
	return 0;
}