summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3236.cpp
blob: ec79686ee343140c820b42827afb6989bc4db17a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* multi boolean */
if (va1 < 0 || va2 > 0)
{
}


/* single condition */
if (auto val = getValue(); condition(val))
{
}

/* multi boolean expression with existing parentheses */
if (auto val = getValue(); (val < 0) || (val > 0))
{
}

/* multi boolean expression without existing parentheses */
if (auto val = getValue(); val < 0 || val > 0)
{
}