} end
| 43 | |
| 44 | // } end |
| 45 | struct MyClass /* ??? */ : MyBase { |
| 46 | |
| 47 | XXXXX undefined_type; |
| 48 | |
| 49 | std::string string; /// documentation for string |
| 50 | std::string string2; /** and for string 2 */ /* more on string 2 */ |
| 51 | |
| 52 | union { |
| 53 | //this is an integer |
| 54 | /*!and this */ int integer; // plop |
| 55 | // plop |
| 56 | /* what is this */ double dbl; |
| 57 | }; |
| 58 | |
| 59 | MyClass() : |
| 60 | MyBase() , // type |
| 61 | string("hello"), //member |
| 62 | dbl(0.6) //ref |
| 63 | { member = 3; //member |
| 64 | bool a, b, c, d, e, f, g, h, i, j, k, l; |
| 65 | } |
| 66 | |
| 67 | ~ MyClass(); |
| 68 | |
| 69 | static std::string function(int hi, |
| 70 | bool ho, |
| 71 | double = 4 + 5, |
| 72 | std::string nothiung = std::string("hell") + "0" ) |
| 73 | { return MyClass().string2; } |
| 74 | |
| 75 | virtual std::string m() const { |
| 76 | std::string local = string; |
| 77 | return function(1,2,2); |
| 78 | } |
| 79 | |
| 80 | inline int hey() { |
| 81 | return m().size(); |
| 82 | } |
| 83 | |
| 84 | int outofline(std::string foo); |
| 85 | |
| 86 | operator std::string() const { return m(); } |
| 87 | }; |
| 88 | |
| 89 | /** |
| 90 | * Regression for getFieldOffset(), founded during processing `struct _IO_FILE` |