| 1 |
extern int a; |
| 2 |
|
| 3 |
void foo() { |
| 4 |
a = 5; |
| 5 |
} |
| 6 |
/* |
| 7 |
OUTPUT: |
| 8 |
{ |
| 9 |
"includes": [], |
| 10 |
"skipped_ranges": [], |
| 11 |
"usr2func": [{ |
| 12 |
"usr": 4259594751088586730, |
| 13 |
"detailed_name": "void foo()", |
| 14 |
"qual_name_offset": 5, |
| 15 |
"short_name": "foo", |
| 16 |
"spell": "3:6-3:9|3:1-5:2|2|-1", |
| 17 |
"bases": [], |
| 18 |
"vars": [], |
| 19 |
"callees": [], |
| 20 |
"kind": 12, |
| 21 |
"parent_kind": 1, |
| 22 |
"storage": 0, |
| 23 |
"declarations": [], |
| 24 |
"derived": [], |
| 25 |
"uses": [] |
| 26 |
}], |
| 27 |
"usr2type": [{ |
| 28 |
"usr": 452, |
| 29 |
"detailed_name": "", |
| 30 |
"qual_name_offset": 0, |
| 31 |
"short_name": "", |
| 32 |
"bases": [], |
| 33 |
"funcs": [], |
| 34 |
"types": [], |
| 35 |
"vars": [], |
| 36 |
"alias_of": 0, |
| 37 |
"kind": 0, |
| 38 |
"parent_kind": 0, |
| 39 |
"declarations": [], |
| 40 |
"derived": [], |
| 41 |
"instances": [16721564935990383768], |
| 42 |
"uses": [] |
| 43 |
}], |
| 44 |
"usr2var": [{ |
| 45 |
"usr": 16721564935990383768, |
| 46 |
"detailed_name": "extern int a", |
| 47 |
"qual_name_offset": 11, |
| 48 |
"short_name": "a", |
| 49 |
"type": 452, |
| 50 |
"kind": 13, |
| 51 |
"parent_kind": 0, |
| 52 |
"storage": 1, |
| 53 |
"declarations": ["1:12-1:13|1:1-1:13|1|-1"], |
| 54 |
"uses": ["4:3-4:4|20|-1"] |
| 55 |
}] |
| 56 |
} |
| 57 |
*/ |