summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/30009-Issue_3236.cpp
blob: f9c100def6f4c526a3b740b6d383769e844950de (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))
{
}