mirror of
https://github.com/MaskRay/ccls.git
synced 2024-12-12 09:27:08 +00:00
77 lines
1.6 KiB
C++
77 lines
1.6 KiB
C++
enum class Foo {
|
|
A,
|
|
B = 20
|
|
};
|
|
|
|
Foo x = Foo::A;
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"includes": [],
|
|
"skipped_by_preprocessor": [],
|
|
"types": [{
|
|
"id": 0,
|
|
"usr": 16985894625255407295,
|
|
"detailed_name": "Foo",
|
|
"qual_name_offset": 0,
|
|
"short_name": "Foo",
|
|
"kind": 10,
|
|
"declarations": [],
|
|
"spell": "1:12-1:15|-1|1|2",
|
|
"extent": "1:1-4:2|-1|1|0",
|
|
"bases": [],
|
|
"derived": [],
|
|
"types": [],
|
|
"funcs": [],
|
|
"vars": [],
|
|
"instances": [2],
|
|
"uses": ["6:1-6:4|-1|1|4", "6:9-6:12|-1|1|4"]
|
|
}],
|
|
"funcs": [],
|
|
"vars": [{
|
|
"id": 0,
|
|
"usr": 439339022761937396,
|
|
"detailed_name": "Foo::A",
|
|
"qual_name_offset": 0,
|
|
"short_name": "A",
|
|
"hover": "Foo::A = 0",
|
|
"declarations": [],
|
|
"spell": "2:3-2:4|0|2|2",
|
|
"extent": "2:3-2:4|0|2|0",
|
|
"type": 0,
|
|
"uses": ["6:14-6:15|-1|1|4"],
|
|
"kind": 22,
|
|
"storage": 0
|
|
}, {
|
|
"id": 1,
|
|
"usr": 15962370213938840720,
|
|
"detailed_name": "Foo::B",
|
|
"qual_name_offset": 0,
|
|
"short_name": "B",
|
|
"hover": "Foo::B = 20",
|
|
"declarations": [],
|
|
"spell": "3:3-3:4|0|2|2",
|
|
"extent": "3:3-3:9|0|2|0",
|
|
"type": 0,
|
|
"uses": [],
|
|
"kind": 22,
|
|
"storage": 0
|
|
}, {
|
|
"id": 2,
|
|
"usr": 10677751717622394455,
|
|
"detailed_name": "Foo x",
|
|
"qual_name_offset": 4,
|
|
"short_name": "x",
|
|
"hover": "Foo x = Foo::A",
|
|
"declarations": [],
|
|
"spell": "6:5-6:6|-1|1|2",
|
|
"extent": "6:1-6:15|-1|1|0",
|
|
"type": 0,
|
|
"uses": [],
|
|
"kind": 13,
|
|
"storage": 1
|
|
}]
|
|
}
|
|
*/
|