summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cpp/34305-issue_2124-1.cpp
blob: bad0ea55047125f1eadb7752b9c5003aae529ae1 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
if(x) [[likely]] {}
if(x)
[[unlikely]]
{}

g();

if(x) [[likely]] l();
if(x)
[[unlikely]]
	l();

g();

if(x)
[[unlikely]]
	l1();
else
	l2();

g();

if(x)
#if __has_cpp_attribute(likely)
[[likely]]
#endif
	return false;
else
	return true;

g();

while(true) [[likely]] {break;}
while(true)
[[unlikely]]
{break;}

g();

if(x)
[[likely]]
{
	if(y)
	[[likely]]
	{}
}

g();