Warning, /sdk/clazy/tests/sanitize-inline-keyword/main.cpp.fixed.expected is written in an unsupported language. File is not indexed.

0001 class MyClass
0002 {
0003     inline int a();
0004     inline int b();
0005     inline int c();
0006     inline int d();
0007 };
0008 
0009 inline int MyClass::a()
0010 {
0011     return 7;
0012 }
0013 
0014 int MyClass::b()
0015 {
0016     return 3;
0017 }
0018 
0019  int MyClass::c()
0020 {
0021     return 5;
0022 }
0023 
0024 // inline not the first Token on the line
0025 int  MyClass::d()
0026 {
0027     return 9;
0028 }
0029 
0030 // Checks only exported classes, i.e. visibility "default"
0031 class __attribute__((visibility("hidden"))) MyHiddenClass
0032 {
0033     inline int a();
0034     inline int b();
0035     int c(); // Left as-is
0036 };
0037 
0038 inline int MyHiddenClass::a()
0039 {
0040     return 7;
0041 }
0042 
0043 int MyHiddenClass::b()
0044 {
0045     return 3;
0046 }
0047 
0048 inline int MyHiddenClass::c()
0049 {
0050     return 5;
0051 }