| 1 |
void foo(int p) { |
| 2 |
{ int p = 0; } |
| 3 |
} |
| 4 |
/* |
| 5 |
OUTPUT: |
| 6 |
{ |
| 7 |
"includes": [], |
| 8 |
"skipped_ranges": [], |
| 9 |
"usr2func": [{ |
| 10 |
"usr": 11998306017310352355, |
| 11 |
"detailed_name": "void foo(int p)", |
| 12 |
"qual_name_offset": 5, |
| 13 |
"short_name": "foo", |
| 14 |
"spell": "1:6-1:9|1:1-3:2|2|-1", |
| 15 |
"bases": [], |
| 16 |
"vars": [5875271969926422921, 11404600766177939811], |
| 17 |
"callees": [], |
| 18 |
"kind": 12, |
| 19 |
"parent_kind": 1, |
| 20 |
"storage": 0, |
| 21 |
"declarations": [], |
| 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": [5875271969926422921, 11404600766177939811], |
| 40 |
"uses": [] |
| 41 |
}], |
| 42 |
"usr2var": [{ |
| 43 |
"usr": 5875271969926422921, |
| 44 |
"detailed_name": "int p", |
| 45 |
"qual_name_offset": 4, |
| 46 |
"short_name": "p", |
| 47 |
"spell": "1:14-1:15|1:10-1:15|1026|-1", |
| 48 |
"type": 452, |
| 49 |
"kind": 253, |
| 50 |
"parent_kind": 12, |
| 51 |
"storage": 0, |
| 52 |
"declarations": [], |
| 53 |
"uses": [] |
| 54 |
}, { |
| 55 |
"usr": 11404600766177939811, |
| 56 |
"detailed_name": "int p", |
| 57 |
"qual_name_offset": 4, |
| 58 |
"short_name": "p", |
| 59 |
"hover": "int p = 0", |
| 60 |
"spell": "2:9-2:10|2:5-2:14|2|-1", |
| 61 |
"type": 452, |
| 62 |
"kind": 13, |
| 63 |
"parent_kind": 12, |
| 64 |
"storage": 0, |
| 65 |
"declarations": [], |
| 66 |
"uses": [] |
| 67 |
}] |
| 68 |
} |
| 69 |
*/ |