summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cpp/30017-custom-open.cpp
blob: 6acd92e5581b87222c5c69c62243a190ec8dc4c6 (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