summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/cpp/custom-open.cpp
blob: 1544fd7447d41b7ce56045bd7467079880b02656 (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