| 1 |
class Foo { |
| 2 |
static Foo* member; |
| 3 |
}; |
| 4 |
Foo* Foo::member = nullptr; |
| 5 |
|
| 6 |
/* |
| 7 |
OUTPUT: |
| 8 |
{ |
| 9 |
"includes": [], |
| 10 |
"skipped_ranges": [], |
| 11 |
"usr2func": [], |
| 12 |
"usr2type": [{ |
| 13 |
"usr": 15041163540773201510, |
| 14 |
"detailed_name": "class Foo {}", |
| 15 |
"qual_name_offset": 6, |
| 16 |
"short_name": "Foo", |
| 17 |
"spell": "1:7-1:10|1:1-3:2|2|-1", |
| 18 |
"bases": [], |
| 19 |
"funcs": [], |
| 20 |
"types": [], |
| 21 |
"vars": [], |
| 22 |
"alias_of": 0, |
| 23 |
"kind": 5, |
| 24 |
"parent_kind": 1, |
| 25 |
"declarations": [], |
| 26 |
"derived": [], |
| 27 |
"instances": [5844987037615239736, 5844987037615239736], |
| 28 |
"uses": ["2:10-2:13|4|-1", "4:1-4:4|4|-1", "4:6-4:9|4|-1"] |
| 29 |
}], |
| 30 |
"usr2var": [{ |
| 31 |
"usr": 5844987037615239736, |
| 32 |
"detailed_name": "static Foo *Foo::member", |
| 33 |
"qual_name_offset": 12, |
| 34 |
"short_name": "member", |
| 35 |
"spell": "4:11-4:17|4:1-4:27|1026|-1", |
| 36 |
"type": 15041163540773201510, |
| 37 |
"kind": 8, |
| 38 |
"parent_kind": 5, |
| 39 |
"storage": 2, |
| 40 |
"declarations": ["2:15-2:21|2:3-2:21|1025|-1"], |
| 41 |
"uses": [] |
| 42 |
}] |
| 43 |
} |
| 44 |
*/ |