| 1 |
class Foo { |
| 2 |
Foo* make(); |
| 3 |
}; |
| 4 |
|
| 5 |
Foo* Foo::make() { |
| 6 |
Foo f; |
| 7 |
return nullptr; |
| 8 |
} |
| 9 |
|
| 10 |
extern Foo foo; |
| 11 |
|
| 12 |
/* |
| 13 |
OUTPUT: |
| 14 |
{ |
| 15 |
"includes": [], |
| 16 |
"skipped_ranges": [], |
| 17 |
"usr2func": [{ |
| 18 |
"usr": 9488177941273031343, |
| 19 |
"detailed_name": "Foo *Foo::make()", |
| 20 |
"qual_name_offset": 5, |
| 21 |
"short_name": "make", |
| 22 |
"spell": "5:11-5:15|5:1-8:2|1026|-1", |
| 23 |
"bases": [], |
| 24 |
"vars": [16380484338511689669], |
| 25 |
"callees": [], |
| 26 |
"kind": 6, |
| 27 |
"parent_kind": 5, |
| 28 |
"storage": 0, |
| 29 |
"declarations": ["2:8-2:12|2:3-2:14|1025|-1"], |
| 30 |
"derived": [], |
| 31 |
"uses": [] |
| 32 |
}], |
| 33 |
"usr2type": [{ |
| 34 |
"usr": 15041163540773201510, |
| 35 |
"detailed_name": "class Foo {}", |
| 36 |
"qual_name_offset": 6, |
| 37 |
"short_name": "Foo", |
| 38 |
"spell": "1:7-1:10|1:1-3:2|2|-1", |
| 39 |
"bases": [], |
| 40 |
"funcs": [9488177941273031343], |
| 41 |
"types": [], |
| 42 |
"vars": [], |
| 43 |
"alias_of": 0, |
| 44 |
"kind": 5, |
| 45 |
"parent_kind": 1, |
| 46 |
"declarations": [], |
| 47 |
"derived": [], |
| 48 |
"instances": [16380484338511689669, 14455976355866885943], |
| 49 |
"uses": ["2:3-2:6|4|-1", "5:1-5:4|4|-1", "5:6-5:9|4|-1", "6:3-6:6|4|-1", "10:8-10:11|4|-1"] |
| 50 |
}], |
| 51 |
"usr2var": [{ |
| 52 |
"usr": 14455976355866885943, |
| 53 |
"detailed_name": "extern Foo foo", |
| 54 |
"qual_name_offset": 11, |
| 55 |
"short_name": "foo", |
| 56 |
"type": 15041163540773201510, |
| 57 |
"kind": 13, |
| 58 |
"parent_kind": 0, |
| 59 |
"storage": 1, |
| 60 |
"declarations": ["10:12-10:15|10:1-10:15|1|-1"], |
| 61 |
"uses": [] |
| 62 |
}, { |
| 63 |
"usr": 16380484338511689669, |
| 64 |
"detailed_name": "Foo f", |
| 65 |
"qual_name_offset": 4, |
| 66 |
"short_name": "f", |
| 67 |
"spell": "6:7-6:8|6:3-6:8|2|-1", |
| 68 |
"type": 15041163540773201510, |
| 69 |
"kind": 13, |
| 70 |
"parent_kind": 6, |
| 71 |
"storage": 0, |
| 72 |
"declarations": [], |
| 73 |
"uses": [] |
| 74 |
}] |
| 75 |
} |
| 76 |
*/ |