summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/cmt_trailing_single_line_c_to_cpp.cpp
blob: 1f3cff49ef2b4444ea8d0a54aab7e51c3ca752ee (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
int main(int argc, char **argv){

	// C-style comments on same line with actual code
	// ----------------------------------------------

	int a = 5; /* Trailing, single-line C-style comment */

	int b = /* Single-line C-style comment in the middle */ 5;

	/* Single-line C-style comment at beginning of line */ int c =  5;

	int d = 5; /* Trailing
	              Multi-line
	              C-style
	              comment */

# define A_MACRO \
	do { \
		if (true) { \
			int e = 5; /* Trailing single-line C-style comment inside macro*/ \
		} \
	} while (0)


	// C-style comments with no actual code on the same line
	// -----------------------------------------------------

	/* Single-line C-style comment. */

	/* Multi-line
	 * C-style
	 * comment.
	 * */
}