| 1 |
struct Wrapper { |
| 2 |
Wrapper(int i); |
| 3 |
}; |
| 4 |
|
| 5 |
int called() { return 1; } |
| 6 |
|
| 7 |
Wrapper caller() { |
| 8 |
return called(); |
| 9 |
} |
| 10 |
|
| 11 |
/* |
| 12 |
OUTPUT: |
| 13 |
{ |
| 14 |
"includes": [], |
| 15 |
"skipped_ranges": [], |
| 16 |
"usr2func": [{ |
| 17 |
"usr": 468307235068920063, |
| 18 |
"detailed_name": "int called()", |
| 19 |
"qual_name_offset": 4, |
| 20 |
"short_name": "called", |
| 21 |
"spell": "5:5-5:11|5:1-5:27|2|-1", |
| 22 |
"bases": [], |
| 23 |
"vars": [], |
| 24 |
"callees": [], |
| 25 |
"kind": 12, |
| 26 |
"parent_kind": 1, |
| 27 |
"storage": 0, |
| 28 |
"declarations": [], |
| 29 |
"derived": [], |
| 30 |
"uses": ["8:10-8:16|16420|-1"] |
| 31 |
}, { |
| 32 |
"usr": 10544127002917214589, |
| 33 |
"detailed_name": "Wrapper::Wrapper(int i)", |
| 34 |
"qual_name_offset": 0, |
| 35 |
"short_name": "Wrapper", |
| 36 |
"bases": [], |
| 37 |
"vars": [17356425290273905453], |
| 38 |
"callees": [], |
| 39 |
"kind": 9, |
| 40 |
"parent_kind": 0, |
| 41 |
"storage": 0, |
| 42 |
"declarations": ["2:3-2:10|2:3-2:17|1025|-1"], |
| 43 |
"derived": [], |
| 44 |
"uses": ["8:10-8:16|16676|-1"] |
| 45 |
}, { |
| 46 |
"usr": 11404881820527069090, |
| 47 |
"detailed_name": "Wrapper caller()", |
| 48 |
"qual_name_offset": 8, |
| 49 |
"short_name": "caller", |
| 50 |
"spell": "7:9-7:15|7:1-9:2|2|-1", |
| 51 |
"bases": [], |
| 52 |
"vars": [], |
| 53 |
"callees": ["8:10-8:16|10544127002917214589|3|16676", "8:10-8:16|468307235068920063|3|16420"], |
| 54 |
"kind": 12, |
| 55 |
"parent_kind": 1, |
| 56 |
"storage": 0, |
| 57 |
"declarations": [], |
| 58 |
"derived": [], |
| 59 |
"uses": [] |
| 60 |
}], |
| 61 |
"usr2type": [{ |
| 62 |
"usr": 452, |
| 63 |
"detailed_name": "", |
| 64 |
"qual_name_offset": 0, |
| 65 |
"short_name": "", |
| 66 |
"bases": [], |
| 67 |
"funcs": [], |
| 68 |
"types": [], |
| 69 |
"vars": [], |
| 70 |
"alias_of": 0, |
| 71 |
"kind": 0, |
| 72 |
"parent_kind": 0, |
| 73 |
"declarations": [], |
| 74 |
"derived": [], |
| 75 |
"instances": [17356425290273905453], |
| 76 |
"uses": [] |
| 77 |
}, { |
| 78 |
"usr": 13611487872560323389, |
| 79 |
"detailed_name": "struct Wrapper {}", |
| 80 |
"qual_name_offset": 7, |
| 81 |
"short_name": "Wrapper", |
| 82 |
"spell": "1:8-1:15|1:1-3:2|2|-1", |
| 83 |
"bases": [], |
| 84 |
"funcs": [10544127002917214589], |
| 85 |
"types": [], |
| 86 |
"vars": [], |
| 87 |
"alias_of": 0, |
| 88 |
"kind": 23, |
| 89 |
"parent_kind": 1, |
| 90 |
"declarations": [], |
| 91 |
"derived": [], |
| 92 |
"instances": [], |
| 93 |
"uses": ["2:3-2:10|4|-1", "7:1-7:8|4|-1"] |
| 94 |
}], |
| 95 |
"usr2var": [{ |
| 96 |
"usr": 17356425290273905453, |
| 97 |
"detailed_name": "int i", |
| 98 |
"qual_name_offset": 4, |
| 99 |
"short_name": "i", |
| 100 |
"spell": "2:15-2:16|2:11-2:16|1026|-1", |
| 101 |
"type": 452, |
| 102 |
"kind": 253, |
| 103 |
"parent_kind": 9, |
| 104 |
"storage": 0, |
| 105 |
"declarations": [], |
| 106 |
"uses": [] |
| 107 |
}] |
| 108 |
} |
| 109 |
*/ |