| 1 |
struct Foo; |
| 2 |
|
| 3 |
void foo(Foo* p0, Foo* p1) {} |
| 4 |
|
| 5 |
/* |
| 6 |
OUTPUT: |
| 7 |
{ |
| 8 |
"includes": [], |
| 9 |
"skipped_ranges": [], |
| 10 |
"usr2func": [{ |
| 11 |
"usr": 8908726657907936744, |
| 12 |
"detailed_name": "void foo(Foo *p0, Foo *p1)", |
| 13 |
"qual_name_offset": 5, |
| 14 |
"short_name": "foo", |
| 15 |
"spell": "3:6-3:9|3:1-3:30|2|-1", |
| 16 |
"bases": [], |
| 17 |
"vars": [8730439006497971620, 2525014371090380500], |
| 18 |
"callees": [], |
| 19 |
"kind": 12, |
| 20 |
"parent_kind": 1, |
| 21 |
"storage": 0, |
| 22 |
"declarations": [], |
| 23 |
"derived": [], |
| 24 |
"uses": [] |
| 25 |
}], |
| 26 |
"usr2type": [{ |
| 27 |
"usr": 15041163540773201510, |
| 28 |
"detailed_name": "struct Foo", |
| 29 |
"qual_name_offset": 7, |
| 30 |
"short_name": "Foo", |
| 31 |
"bases": [], |
| 32 |
"funcs": [], |
| 33 |
"types": [], |
| 34 |
"vars": [], |
| 35 |
"alias_of": 0, |
| 36 |
"kind": 23, |
| 37 |
"parent_kind": 0, |
| 38 |
"declarations": ["1:8-1:11|1:1-1:11|1|-1"], |
| 39 |
"derived": [], |
| 40 |
"instances": [8730439006497971620, 2525014371090380500], |
| 41 |
"uses": ["3:10-3:13|4|-1", "3:19-3:22|4|-1"] |
| 42 |
}], |
| 43 |
"usr2var": [{ |
| 44 |
"usr": 2525014371090380500, |
| 45 |
"detailed_name": "Foo *p1", |
| 46 |
"qual_name_offset": 5, |
| 47 |
"short_name": "p1", |
| 48 |
"spell": "3:24-3:26|3:19-3:26|1026|-1", |
| 49 |
"type": 15041163540773201510, |
| 50 |
"kind": 253, |
| 51 |
"parent_kind": 12, |
| 52 |
"storage": 0, |
| 53 |
"declarations": [], |
| 54 |
"uses": [] |
| 55 |
}, { |
| 56 |
"usr": 8730439006497971620, |
| 57 |
"detailed_name": "Foo *p0", |
| 58 |
"qual_name_offset": 5, |
| 59 |
"short_name": "p0", |
| 60 |
"spell": "3:15-3:17|3:10-3:17|1026|-1", |
| 61 |
"type": 15041163540773201510, |
| 62 |
"kind": 253, |
| 63 |
"parent_kind": 12, |
| 64 |
"storage": 0, |
| 65 |
"declarations": [], |
| 66 |
"uses": [] |
| 67 |
}] |
| 68 |
} |
| 69 |
*/ |