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