summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2371.cpp
blob: 26444ad31a3093f3649bed45b4743a4f68253a99 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
class CMyClass
{
	CMyClass( int a = 0, int b = 0 );
};

class CMyClass2
{
	CMyClass2( int a = 0, int b = 0 );
	CMyClass2( int a = 0 );
};

class CMyClass3
{
	CMyClass3( int a, int b = 0 );
	CMyClass3( int a = 0 );
};

class CMyClass4
{
	CMyClass4( int a = 0, int b = 0 );
	CMyClass4( short aa = 0, char * p = 0 );
};

class CMyClass5
{
	CMyClass5() = default;
	CMyClass5( int a = 0, int b = 0 );
	CMyClass5( short aa = 0, char * p = 0 );
};

class CMyClass6
{
	CMyClass6( const CMyClass6& ) = default;
	CMyClass6( int a = 0, int b = 0 );
	CMyClass6( short aa = 0, char * p = 0 );
};

class CMyClass7
{
	virtual void foo( const void* p = nullptr ) = 0;
	CMyClass7( int a = 0, int b = 0 );
	CMyClass7( short aa = 0, char * p = 0 );
};

class CMyClass8
{
	CMyClass8( int a = 0, int b = 0 );
	CMyClass8( short aa = 0, char * p = 0 );
	virtual void foo( const void* p = nullptr ) = 0;
};

class CMyClass9
{
	CMyClass9( int a = 0, int b = 0 );
	CMyClass9( short aa = 0, char * p = 0 );
	virtual void foo( const void* = nullptr ) = 0;
};

class CMyClassA
{
	CMyClassA( int a = 0, int b = 0 );
	CMyClassA( short aa = 0, char * p = 0 );
	virtual void foo( const void* /* p */ = nullptr ) = 0;
};

class CMyClassB
{
	CMyClassB( int a = 0, int b = 0 );
	CMyClassB( short aa = 0, char * p = 0 );
	virtual void foo( const void* /* p */ = NULL ) = 0;
};

#define UNUSED(x)

class CMyClassC
{
	CMyClassC( int a = 0, int b = 0 );
	CMyClassC( short aa = 0, char * p = 0 );
	virtual void foo( const void* UNUSED(p) = NULL ) = 0;
};

class CMyClassD
{
	CMyClassD( int a = 0, int b = 0 );
	CMyClassD( short aa = 0, char * p = 0 );
	virtual void foo( const std::string s = "" ) = 0;
};

class CMyClassE
{
	CMyClassE( int a = 0, int b = 0 );
	CMyClassE( short aa = 0, char * p = 0 );
	virtual void foo( const std::string s = std::string() ) = 0;
};

class CMyClassF
{
	CMyClassF( int a = 0, int b = 0 );
	CMyClassF( short aa = 0, char * p = 0 );
	virtual void foo( const CString& s = _T( "" ) ) = 0;
};