ccls/index_tests/enums/enum_decl.cc

72 lines
1.5 KiB
C++
Raw Normal View History

2018-03-31 03:16:33 +00:00
enum Foo {
A,
B = 20
};
/*
OUTPUT:
{
"includes": [],
2018-07-07 23:56:47 +00:00
"skipped_ranges": [],
"usr2func": [{
2018-03-31 03:16:33 +00:00
"usr": 16985894625255407295,
2018-07-07 23:56:47 +00:00
"detailed_name": "",
"qual_name_offset": 0,
2018-07-07 23:56:47 +00:00
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [439339022761937396, 15962370213938840720],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 16985894625255407295,
"detailed_name": "enum Foo {\n}",
"qual_name_offset": 5,
2018-03-31 03:16:33 +00:00
"short_name": "Foo",
"kind": 10,
"declarations": [],
"spell": "1:6-1:9|0|1|2",
"extent": "1:1-4:2|0|1|0",
"alias_of": 0,
2018-03-31 03:16:33 +00:00
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}],
"usr2var": [{
2018-03-31 03:16:33 +00:00
"usr": 439339022761937396,
2018-07-07 23:56:47 +00:00
"detailed_name": "A",
"qual_name_offset": 0,
2018-03-31 03:16:33 +00:00
"short_name": "A",
2018-07-07 23:56:47 +00:00
"hover": "A = 0",
2018-03-31 03:16:33 +00:00
"declarations": [],
2018-07-07 23:56:47 +00:00
"spell": "2:3-2:4|16985894625255407295|2|514",
"extent": "2:3-2:4|16985894625255407295|2|0",
2018-07-07 23:56:47 +00:00
"type": 0,
2018-03-31 03:16:33 +00:00
"uses": [],
"kind": 22,
"storage": 0
}, {
"usr": 15962370213938840720,
2018-07-07 23:56:47 +00:00
"detailed_name": "B = 20",
"qual_name_offset": 0,
2018-03-31 03:16:33 +00:00
"short_name": "B",
"declarations": [],
2018-07-07 23:56:47 +00:00
"spell": "3:3-3:4|16985894625255407295|2|514",
"extent": "3:3-3:9|16985894625255407295|2|0",
2018-07-07 23:56:47 +00:00
"type": 0,
2018-03-31 03:16:33 +00:00
"uses": [],
"kind": 22,
"storage": 0
}]
}
*/