ccls/index_tests/enums/enum_decl.cc

58 lines
1.1 KiB
C++
Raw Normal View History

2018-03-31 03:16:33 +00:00
enum Foo {
A,
B = 20
};
/*
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"types": [{
"id": 0,
"usr": 16985894625255407295,
"detailed_name": "Foo",
"short_name": "Foo",
"kind": 10,
"declarations": [],
"spell": "1:6-1:9|-1|1|2",
"extent": "1:1-4:2|-1|1|0",
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}],
"funcs": [],
"vars": [{
"id": 0,
"usr": 439339022761937396,
"detailed_name": "Foo::A",
"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": [],
"kind": 22,
"storage": 0
}, {
"id": 1,
"usr": 15962370213938840720,
"detailed_name": "Foo::B",
"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
}]
}
*/