Debian Codegraph @

clang/test/ASTMerge/class/Inputs/class1.cpp

raw
1 struct A {
2 public:
3 int x;
4 };
5
6 struct B : A {
7 float y;
8 float foo();
9 };
10
11 struct C {
12 C(int i = 10);
13 C(const C&);
14 C &operator=(C&);
15 ~C();
16 };
17
18 enum E {
19 b = 1
20 };
21
22 //Friend import tests
23 void f();
24 int g(int a);
25 struct X;
26 struct Y;
27
28 struct F1 {
29 public:
30 int x;
31 friend struct X;
32 friend int g(int);
33 friend void f();
34 };
35
36 struct F2 {
37 public:
38 int x;
39 friend struct X;
40 friend void f();
41 };
42
43 struct F3 {
44 public:
45 int x;
46 friend int g(int);
47 friend void f();
48 };