summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/c/brace-remove3.c
blob: 9cde8bbd901a6027b6ee288fab9f5232753cb897 (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
void foo()
{
if(myBoolean) {
#ifdef DEBUG
printf("ACK");
#endif
}
return true;
}

void foo2()
{
    if (m_errno == ERR_NONE) {
        function1(variables);
        function2(variables);
    } else {
        function1(varialbes);
    }
    //MyComment1
    //MyComment2
}

void foo3()
{
    if (statment)
        if (statment) {
            condition;
            return true;
        }
    return false;
}