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