| 1 |
class Foo { |
| 2 |
void operator()(int) { } |
| 3 |
void operator()(bool); |
| 4 |
int operator()(int a, int b); |
| 5 |
}; |
| 6 |
|
| 7 |
Foo &operator += (const Foo&, const int&); |
| 8 |
|
| 9 |
/* |
| 10 |
OUTPUT: |
| 11 |
{ |
| 12 |
"includes": [], |
| 13 |
"skipped_ranges": [], |
| 14 |
"usr2func": [{ |
| 15 |
"usr": 3545323327609582678, |
| 16 |
"detailed_name": "void Foo::operator()(bool)", |
| 17 |
"qual_name_offset": 5, |
| 18 |
"short_name": "operator()", |
| 19 |
"bases": [], |
| 20 |
"vars": [], |
| 21 |
"callees": [], |
| 22 |
"kind": 6, |
| 23 |
"parent_kind": 0, |
| 24 |
"storage": 0, |
| 25 |
"declarations": ["3:8-3:16|3:3-3:24|1025|-1"], |
| 26 |
"derived": [], |
| 27 |
"uses": [] |
| 28 |
}, { |
| 29 |
"usr": 3986818119971932909, |
| 30 |
"detailed_name": "int Foo::operator()(int a, int b)", |
| 31 |
"qual_name_offset": 4, |
| 32 |
"short_name": "operator()", |
| 33 |
"bases": [], |
| 34 |
"vars": [18194802024223591994, 3165816734756776484], |
| 35 |
"callees": [], |
| 36 |
"kind": 6, |
| 37 |
"parent_kind": 0, |
| 38 |
"storage": 0, |
| 39 |
"declarations": ["4:7-4:15|4:3-4:31|1025|-1"], |
| 40 |
"derived": [], |
| 41 |
"uses": [] |
| 42 |
}, { |
| 43 |
"usr": 7874436189163837815, |
| 44 |
"detailed_name": "void Foo::operator()(int)", |
| 45 |
"qual_name_offset": 5, |
| 46 |
"short_name": "operator()", |
| 47 |
"spell": "2:8-2:18|2:3-2:27|1026|-1", |
| 48 |
"bases": [], |
| 49 |
"vars": [], |
| 50 |
"callees": [], |
| 51 |
"kind": 6, |
| 52 |
"parent_kind": 5, |
| 53 |
"storage": 0, |
| 54 |
"declarations": [], |
| 55 |
"derived": [], |
| 56 |
"uses": [] |
| 57 |
}, { |
| 58 |
"usr": 8288368475529136092, |
| 59 |
"detailed_name": "Foo &operator+=(const Foo &, const int &)", |
| 60 |
"qual_name_offset": 5, |
| 61 |
"short_name": "operator+=", |
| 62 |
"bases": [], |
| 63 |
"vars": [], |
| 64 |
"callees": [], |
| 65 |
"kind": 12, |
| 66 |
"parent_kind": 0, |
| 67 |
"storage": 0, |
| 68 |
"declarations": ["7:6-7:14|7:1-7:42|1|-1"], |
| 69 |
"derived": [], |
| 70 |
"uses": [] |
| 71 |
}], |
| 72 |
"usr2type": [{ |
| 73 |
"usr": 452, |
| 74 |
"detailed_name": "", |
| 75 |
"qual_name_offset": 0, |
| 76 |
"short_name": "", |
| 77 |
"bases": [], |
| 78 |
"funcs": [], |
| 79 |
"types": [], |
| 80 |
"vars": [], |
| 81 |
"alias_of": 0, |
| 82 |
"kind": 0, |
| 83 |
"parent_kind": 0, |
| 84 |
"declarations": [], |
| 85 |
"derived": [], |
| 86 |
"instances": [18194802024223591994, 3165816734756776484], |
| 87 |
"uses": [] |
| 88 |
}, { |
| 89 |
"usr": 15041163540773201510, |
| 90 |
"detailed_name": "class Foo {}", |
| 91 |
"qual_name_offset": 6, |
| 92 |
"short_name": "Foo", |
| 93 |
"spell": "1:7-1:10|1:1-5:2|2|-1", |
| 94 |
"bases": [], |
| 95 |
"funcs": [7874436189163837815, 3545323327609582678, 3986818119971932909], |
| 96 |
"types": [], |
| 97 |
"vars": [], |
| 98 |
"alias_of": 0, |
| 99 |
"kind": 5, |
| 100 |
"parent_kind": 1, |
| 101 |
"declarations": [], |
| 102 |
"derived": [], |
| 103 |
"instances": [], |
| 104 |
"uses": ["7:1-7:4|4|-1", "7:25-7:28|4|-1"] |
| 105 |
}], |
| 106 |
"usr2var": [{ |
| 107 |
"usr": 3165816734756776484, |
| 108 |
"detailed_name": "int b", |
| 109 |
"qual_name_offset": 4, |
| 110 |
"short_name": "b", |
| 111 |
"spell": "4:29-4:30|4:25-4:30|1026|-1", |
| 112 |
"type": 452, |
| 113 |
"kind": 253, |
| 114 |
"parent_kind": 6, |
| 115 |
"storage": 0, |
| 116 |
"declarations": [], |
| 117 |
"uses": [] |
| 118 |
}, { |
| 119 |
"usr": 18194802024223591994, |
| 120 |
"detailed_name": "int a", |
| 121 |
"qual_name_offset": 4, |
| 122 |
"short_name": "a", |
| 123 |
"spell": "4:22-4:23|4:18-4:23|1026|-1", |
| 124 |
"type": 452, |
| 125 |
"kind": 253, |
| 126 |
"parent_kind": 6, |
| 127 |
"storage": 0, |
| 128 |
"declarations": [], |
| 129 |
"uses": [] |
| 130 |
}] |
| 131 |
} |
| 132 |
*/ |