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