summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/cpp/30016-custom-open.cpp
blob: 234f5591688a5eb392954f00fe8e07411213ea5e (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

void className::set(const objectName& obj)
{
	statement1();
	MACRO_BEGIN_STUFF(param)
		DOSTUFF(params)
	MACRO_ELSE_STUFF()
		DOMORESTUFF(moreparams)
		junk = 1;
		MACRO2_BEGIN_STUFF
			junk += 3;
		MACRO2_ELSE_STUFF
			junk += 4;
		MACRO2_END_STUFF
		DOLASTSTUFF(lastparams)
	MACRO_END_STUFF()
	statement2();
}


MACRO2_BEGIN_STUFF
	// comment
MACRO2_ELSE_STUFF
	/* Comment */
MACRO2_END_STUFF