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