summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/nl_func_type_name.cpp
blob: 26e496634e1e54cca6535575e064676a8134cf19 (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

//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);
}