summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/bug_1003.cpp
blob: 7495b93def5dcd028506f94254b779b5278e05bb (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
class Foo
{
public:
	Foo(
		int x_,
		int y_
	) : x(x_), y(y_)
	{
	}
private:
	int x;
	int y;
};

class Bar
{
public:
	// Splits 3,5 onto newlines
	Bar() : Bar(3, 5)
	{
	}

	// No split here
	Bar(
		int x,
		int y
	) : foo(x, y)
	{
	}

	Foo foo;
};