summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/30840-nl_func_type_name.cpp
blob: a4302001dc81231270d0451d55914f9e9c241352 (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

// zero
// one
//  two
//   three
void foo(void);

struct A
{
public:
	long_complicated_type f();
	A&                    operator+(const A& other);
};

A& A::operator+(const A& other)
{
}

B operator+(const B& other)
{
}

B foo(const B& other)
{
}

class A
{
public:
explicit A(int);
int aFunct() {
	return a;
}
int bFunc();
};

// Another file
int A::bFunc()
{
// some code
}

template<typename T>
typename Foo<T>::Type Foo<T>::Func()
{
}

void Foo::bar() {
}

namespace foo {
Foo::Foo() {
}
}

Foo::~Foo() {
}

class Object
{
~Object(void);
};

template <class T>
void SampleClassTemplate<T>::connect()
{
}

template <>
inline void bar<MyType>(MyType r)
{
	foo(r);
}

template <T>
inline void baz<>(T r)
{
	foo(r);
}