forked from polymonster/stub-format
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.h
64 lines (52 loc) · 1.71 KB
/
test.h
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
#ifndef HEADER_H
#define HEADER_H
namespace stub_test
{
const void* function_a(); // function with no args
void function_b(int param_a, int* pointer, const int& ref); // function with args
class my_class
{
public:
static const void* s_function(); // static function to strip static
my_class(); // constructor
~my_class(); // destructor
int var; // comments
int function_c(int param); // member function
const void* function_d() = 0; // test for virtual function
int test = int(1); // initialiser
private:
int function_const() const; // const member function
void (*function_pointer)(int b, int c); // test for function pointer
inline void inline_func()
{
int a = (int)0.0f; // some code to avoid
}
};
namespace deeper
{
void function_e(int a, float b, test c);
int function_f(int b = 0); // test for default args
class scope_class // ignore this
{
// parenthesis might span multiple lines
int function_g
(
int a,
int b,
int c = 0
);
};
}
/*
int commented_out_function_a(int b = 0);
struct commented_out
{
int a;
int b;
int c;
};
*/ void function_h(int b); // testing code on the same line as end comment
// int commented_out_function_b();
void 😎 (int a, int 🕺); // test for utf8
}
#endif