| 1 |
enum Foo : int { |
| 2 |
A, |
| 3 |
B = 20 |
| 4 |
}; |
| 5 |
|
| 6 |
typedef int int32_t; |
| 7 |
|
| 8 |
enum class E : int32_t { |
| 9 |
E0, |
| 10 |
E20 = 20 |
| 11 |
}; |
| 12 |
|
| 13 |
/* |
| 14 |
OUTPUT: |
| 15 |
{ |
| 16 |
"includes": [], |
| 17 |
"skipped_ranges": [], |
| 18 |
"usr2func": [], |
| 19 |
"usr2type": [{ |
| 20 |
"usr": 2986879766914123941, |
| 21 |
"detailed_name": "enum class E : int32_t {}", |
| 22 |
"qual_name_offset": 11, |
| 23 |
"short_name": "E", |
| 24 |
"spell": "8:12-8:13|8:1-11:2|2|-1", |
| 25 |
"bases": [], |
| 26 |
"funcs": [], |
| 27 |
"types": [], |
| 28 |
"vars": [{ |
| 29 |
"L": 16614320383091394267, |
| 30 |
"R": -1 |
| 31 |
}, { |
| 32 |
"L": 16847439761518576294, |
| 33 |
"R": -1 |
| 34 |
}], |
| 35 |
"alias_of": 0, |
| 36 |
"kind": 10, |
| 37 |
"parent_kind": 1, |
| 38 |
"declarations": [], |
| 39 |
"derived": [], |
| 40 |
"instances": [], |
| 41 |
"uses": [] |
| 42 |
}, { |
| 43 |
"usr": 14939241684006947339, |
| 44 |
"detailed_name": "typedef int int32_t", |
| 45 |
"qual_name_offset": 12, |
| 46 |
"short_name": "int32_t", |
| 47 |
"spell": "6:13-6:20|6:1-6:20|2|-1", |
| 48 |
"bases": [], |
| 49 |
"funcs": [], |
| 50 |
"types": [], |
| 51 |
"vars": [], |
| 52 |
"alias_of": 0, |
| 53 |
"kind": 252, |
| 54 |
"parent_kind": 1, |
| 55 |
"declarations": [], |
| 56 |
"derived": [], |
| 57 |
"instances": [], |
| 58 |
"uses": ["8:16-8:23|4|-1"] |
| 59 |
}, { |
| 60 |
"usr": 16985894625255407295, |
| 61 |
"detailed_name": "enum Foo : int {}", |
| 62 |
"qual_name_offset": 5, |
| 63 |
"short_name": "Foo", |
| 64 |
"spell": "1:6-1:9|1:1-4:2|2|-1", |
| 65 |
"bases": [], |
| 66 |
"funcs": [], |
| 67 |
"types": [], |
| 68 |
"vars": [], |
| 69 |
"alias_of": 0, |
| 70 |
"kind": 10, |
| 71 |
"parent_kind": 1, |
| 72 |
"declarations": [], |
| 73 |
"derived": [], |
| 74 |
"instances": [], |
| 75 |
"uses": [] |
| 76 |
}], |
| 77 |
"usr2var": [{ |
| 78 |
"usr": 439339022761937396, |
| 79 |
"detailed_name": "A", |
| 80 |
"qual_name_offset": 0, |
| 81 |
"short_name": "A", |
| 82 |
"hover": "A = 0", |
| 83 |
"spell": "2:3-2:4|2:3-2:4|1026|-1", |
| 84 |
"type": 16985894625255407295, |
| 85 |
"kind": 22, |
| 86 |
"parent_kind": 1, |
| 87 |
"storage": 0, |
| 88 |
"declarations": [], |
| 89 |
"uses": [] |
| 90 |
}, { |
| 91 |
"usr": 15962370213938840720, |
| 92 |
"detailed_name": "B = 20", |
| 93 |
"qual_name_offset": 0, |
| 94 |
"short_name": "B", |
| 95 |
"spell": "3:3-3:4|3:3-3:9|1026|-1", |
| 96 |
"type": 16985894625255407295, |
| 97 |
"kind": 22, |
| 98 |
"parent_kind": 1, |
| 99 |
"storage": 0, |
| 100 |
"declarations": [], |
| 101 |
"uses": [] |
| 102 |
}, { |
| 103 |
"usr": 16614320383091394267, |
| 104 |
"detailed_name": "E::E0", |
| 105 |
"qual_name_offset": 0, |
| 106 |
"short_name": "E0", |
| 107 |
"hover": "E::E0 = 0", |
| 108 |
"spell": "9:3-9:5|9:3-9:5|1026|-1", |
| 109 |
"type": 2986879766914123941, |
| 110 |
"kind": 22, |
| 111 |
"parent_kind": 10, |
| 112 |
"storage": 0, |
| 113 |
"declarations": [], |
| 114 |
"uses": [] |
| 115 |
}, { |
| 116 |
"usr": 16847439761518576294, |
| 117 |
"detailed_name": "E::E20 = 20", |
| 118 |
"qual_name_offset": 0, |
| 119 |
"short_name": "E20", |
| 120 |
"spell": "10:3-10:6|10:3-10:11|1026|-1", |
| 121 |
"type": 2986879766914123941, |
| 122 |
"kind": 22, |
| 123 |
"parent_kind": 10, |
| 124 |
"storage": 0, |
| 125 |
"declarations": [], |
| 126 |
"uses": [] |
| 127 |
}] |
| 128 |
} |
| 129 |
*/ |