| 1 |
namespace hello { |
| 2 |
void foo(int a, int b); |
| 3 |
} |
| 4 |
|
| 5 |
/* |
| 6 |
OUTPUT: |
| 7 |
{ |
| 8 |
"includes": [], |
| 9 |
"skipped_ranges": [], |
| 10 |
"usr2func": [{ |
| 11 |
"usr": 18343102288837190527, |
| 12 |
"detailed_name": "void hello::foo(int a, int b)", |
| 13 |
"qual_name_offset": 5, |
| 14 |
"short_name": "foo", |
| 15 |
"bases": [], |
| 16 |
"vars": [11261617957951052010, 6927976078246688450], |
| 17 |
"callees": [], |
| 18 |
"kind": 12, |
| 19 |
"parent_kind": 0, |
| 20 |
"storage": 0, |
| 21 |
"declarations": ["2:6-2:9|2:1-2:23|1025|-1"], |
| 22 |
"derived": [], |
| 23 |
"uses": [] |
| 24 |
}], |
| 25 |
"usr2type": [{ |
| 26 |
"usr": 452, |
| 27 |
"detailed_name": "", |
| 28 |
"qual_name_offset": 0, |
| 29 |
"short_name": "", |
| 30 |
"bases": [], |
| 31 |
"funcs": [], |
| 32 |
"types": [], |
| 33 |
"vars": [], |
| 34 |
"alias_of": 0, |
| 35 |
"kind": 0, |
| 36 |
"parent_kind": 0, |
| 37 |
"declarations": [], |
| 38 |
"derived": [], |
| 39 |
"instances": [11261617957951052010, 6927976078246688450], |
| 40 |
"uses": [] |
| 41 |
}, { |
| 42 |
"usr": 2029211996748007610, |
| 43 |
"detailed_name": "namespace hello {}", |
| 44 |
"qual_name_offset": 10, |
| 45 |
"short_name": "hello", |
| 46 |
"bases": [], |
| 47 |
"funcs": [18343102288837190527], |
| 48 |
"types": [], |
| 49 |
"vars": [], |
| 50 |
"alias_of": 0, |
| 51 |
"kind": 3, |
| 52 |
"parent_kind": 0, |
| 53 |
"declarations": ["1:11-1:16|1:1-3:2|1|-1"], |
| 54 |
"derived": [], |
| 55 |
"instances": [], |
| 56 |
"uses": [] |
| 57 |
}], |
| 58 |
"usr2var": [{ |
| 59 |
"usr": 6927976078246688450, |
| 60 |
"detailed_name": "int b", |
| 61 |
"qual_name_offset": 4, |
| 62 |
"short_name": "b", |
| 63 |
"spell": "2:21-2:22|2:17-2:22|1026|-1", |
| 64 |
"type": 452, |
| 65 |
"kind": 253, |
| 66 |
"parent_kind": 12, |
| 67 |
"storage": 0, |
| 68 |
"declarations": [], |
| 69 |
"uses": [] |
| 70 |
}, { |
| 71 |
"usr": 11261617957951052010, |
| 72 |
"detailed_name": "int a", |
| 73 |
"qual_name_offset": 4, |
| 74 |
"short_name": "a", |
| 75 |
"spell": "2:14-2:15|2:10-2:15|1026|-1", |
| 76 |
"type": 452, |
| 77 |
"kind": 253, |
| 78 |
"parent_kind": 12, |
| 79 |
"storage": 0, |
| 80 |
"declarations": [], |
| 81 |
"uses": [] |
| 82 |
}] |
| 83 |
} |
| 84 |
*/ |