Debian Codegraph @

tests/sanitize-inline-keyword/main.cpp.fixed.expected

raw
1 class MyClass
2 {
3 inline int a();
4 inline int b();
5 inline int c();
6 inline int d();
7 };
8
9 inline int MyClass::a()
10 {
11 return 7;
12 }
13
14 int MyClass::b()
15 {
16 return 3;
17 }
18
19 int MyClass::c()
20 {
21 return 5;
22 }
23
24 // inline not the first Token on the line
25 int MyClass::d()
26 {
27 return 9;
28 }
29
30 // Checks only exported classes, i.e. visibility "default"
31 class __attribute__((visibility("hidden"))) MyHiddenClass
32 {
33 inline int a();
34 inline int b();
35 int c(); // Left as-is
36 };
37
38 inline int MyHiddenClass::a()
39 {
40 return 7;
41 }
42
43 int MyHiddenClass::b()
44 {
45 return 3;
46 }
47
48 inline int MyHiddenClass::c()
49 {
50 return 5;
51 }