Debian Codegraph @

src/tools/pg_bsd_indent/tests/comments.0

raw
1 /* $FreeBSD$ */
2 typedef enum x {
3 aaaaaaaaaaaaaaaaaaaaaa = 1 << 0, /* test a */
4 bbbbbbbbbbbbbbbbb = 1 << 1, /* test b */
5 cccccccccccccc = 1 << 1, /* test c */
6 dddddddddddddddddddddddddddddd = 1 << 2 /* test d */
7 } x;
8
9 /* See r303597, r303598, r309219, and r309343 */
10 void t(void) {
11 /*
12 * Old indent wrapped the URL near where this sentence ends.
13 *
14 * https://www.freebsd.org/cgi/man.cgi?query=indent&apropos=0&sektion=0&manpath=FreeBSD+12-current&arch=default&format=html
15 */
16
17 /*
18 * Old indent did not wrap to column 78
19 *
20 * aaaaaa bbbbbb cccccc dddddd eeeeee ffffff ggggg hhhhh iiiii jjjj kk
21 */
22
23 /*
24 * Old indent unnecessarily removed the star comment continuation on the next line.
25 *
26 * *test*
27 */
28
29 /* r309219 Go through linked list, freeing from the malloced (t[-1]) address. */
30
31 /* r309343 */
32 }
33
34 int c(void)
35 {
36 if (1) { /*- a christmas tree *
37 ***
38 ***** */
39 /*- another one *
40 ***
41 ***** */
42 7;
43 }
44
45 if (1) /*- a christmas tree *
46 ***
47 ***** */
48 /*- another one *
49 ***
50 ***** */
51 1;
52 }