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