| 1 |
class Foo { |
| 2 |
static int foo; |
| 3 |
}; |
| 4 |
|
| 5 |
int Foo::foo; |
| 6 |
|
| 7 |
/* |
| 8 |
OUTPUT: |
| 9 |
{ |
| 10 |
"includes": [], |
| 11 |
"skipped_ranges": [], |
| 12 |
"usr2func": [], |
| 13 |
"usr2type": [{ |
| 14 |
"usr": 452, |
| 15 |
"detailed_name": "", |
| 16 |
"qual_name_offset": 0, |
| 17 |
"short_name": "", |
| 18 |
"bases": [], |
| 19 |
"funcs": [], |
| 20 |
"types": [], |
| 21 |
"vars": [], |
| 22 |
"alias_of": 0, |
| 23 |
"kind": 0, |
| 24 |
"parent_kind": 0, |
| 25 |
"declarations": [], |
| 26 |
"derived": [], |
| 27 |
"instances": [8942920329766232482, 8942920329766232482], |
| 28 |
"uses": [] |
| 29 |
}, { |
| 30 |
"usr": 15041163540773201510, |
| 31 |
"detailed_name": "class Foo {}", |
| 32 |
"qual_name_offset": 6, |
| 33 |
"short_name": "Foo", |
| 34 |
"spell": "1:7-1:10|1:1-3:2|2|-1", |
| 35 |
"bases": [], |
| 36 |
"funcs": [], |
| 37 |
"types": [], |
| 38 |
"vars": [], |
| 39 |
"alias_of": 0, |
| 40 |
"kind": 5, |
| 41 |
"parent_kind": 1, |
| 42 |
"declarations": [], |
| 43 |
"derived": [], |
| 44 |
"instances": [], |
| 45 |
"uses": ["5:5-5:8|4|-1"] |
| 46 |
}], |
| 47 |
"usr2var": [{ |
| 48 |
"usr": 8942920329766232482, |
| 49 |
"detailed_name": "static int Foo::foo", |
| 50 |
"qual_name_offset": 11, |
| 51 |
"short_name": "foo", |
| 52 |
"spell": "5:10-5:13|5:1-5:13|1026|-1", |
| 53 |
"type": 452, |
| 54 |
"kind": 8, |
| 55 |
"parent_kind": 5, |
| 56 |
"storage": 2, |
| 57 |
"declarations": ["2:14-2:17|2:3-2:17|1025|-1"], |
| 58 |
"uses": [] |
| 59 |
}] |
| 60 |
} |
| 61 |
*/ |