ccls/index_tests/inheritance/multiple_base_functions.cc

116 lines
3.1 KiB
C++
Raw Normal View History

2018-03-31 03:16:33 +00:00
struct Base0 {
virtual ~Base0() { }
};
struct Base1 {
virtual ~Base1() { }
};
struct Derived : Base0, Base1 {
~Derived() override { }
};
/*
OUTPUT:
{
"includes": [],
2018-07-07 23:56:47 +00:00
"skipped_ranges": [],
"usr2func": [{
"usr": 8401779086123965305,
"detailed_name": "virtual Base1::~Base1() noexcept",
"qual_name_offset": 8,
"short_name": "~Base1",
2018-03-31 03:16:33 +00:00
"kind": 6,
"storage": 0,
2018-03-31 03:16:33 +00:00
"declarations": [],
"spell": "5:11-5:17|15826803741381445676|2|1090|-1",
"extent": "5:3-5:23|15826803741381445676|2|0|-1",
2018-03-31 03:16:33 +00:00
"bases": [],
2018-07-07 23:56:47 +00:00
"derived": [],
2018-03-31 03:16:33 +00:00
"vars": [],
"uses": [],
"callees": []
}, {
"usr": 13164726294460837993,
2018-07-07 23:56:47 +00:00
"detailed_name": "Derived::~Derived() noexcept",
"qual_name_offset": 0,
"short_name": "~Derived",
2018-03-31 03:16:33 +00:00
"kind": 6,
"storage": 0,
2018-03-31 03:16:33 +00:00
"declarations": [],
"spell": "8:3-8:11|10963370434658308541|2|5186|-1",
"extent": "8:3-8:26|10963370434658308541|2|0|-1",
2018-07-07 23:56:47 +00:00
"bases": [],
"derived": [],
2018-03-31 03:16:33 +00:00
"vars": [],
"uses": [],
"callees": []
}, {
"usr": 16347272523198263017,
"detailed_name": "virtual Base0::~Base0() noexcept",
"qual_name_offset": 8,
"short_name": "~Base0",
2018-03-31 03:16:33 +00:00
"kind": 6,
"storage": 0,
2018-03-31 03:16:33 +00:00
"declarations": [],
"spell": "2:11-2:17|11628904180681204356|2|1090|-1",
"extent": "2:3-2:23|11628904180681204356|2|0|-1",
"bases": [],
2018-07-07 23:56:47 +00:00
"derived": [],
2018-03-31 03:16:33 +00:00
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 10963370434658308541,
2018-07-07 23:56:47 +00:00
"detailed_name": "struct Derived : Base0, Base1 {}",
"qual_name_offset": 7,
"short_name": "Derived",
"kind": 23,
2018-07-07 23:56:47 +00:00
"declarations": [],
"spell": "7:8-7:15|0|1|2|-1",
"extent": "7:1-9:2|0|1|0|-1",
"alias_of": 0,
"bases": [11628904180681204356, 15826803741381445676],
"derived": [],
"types": [],
"funcs": [13164726294460837993],
"vars": [],
"instances": [],
"uses": ["8:4-8:11|10963370434658308541|2|4|-1"]
}, {
"usr": 11628904180681204356,
2018-07-07 23:56:47 +00:00
"detailed_name": "struct Base0 {}",
"qual_name_offset": 7,
"short_name": "Base0",
"kind": 23,
2018-07-07 23:56:47 +00:00
"declarations": [],
"spell": "1:8-1:13|0|1|2|-1",
"extent": "1:1-3:2|0|1|0|-1",
"alias_of": 0,
"bases": [],
"derived": [10963370434658308541],
"types": [],
"funcs": [16347272523198263017],
"vars": [],
"instances": [],
"uses": ["2:12-2:17|11628904180681204356|2|4|-1", "7:18-7:23|10963370434658308541|2|2052|-1"]
}, {
"usr": 15826803741381445676,
2018-07-07 23:56:47 +00:00
"detailed_name": "struct Base1 {}",
"qual_name_offset": 7,
"short_name": "Base1",
"kind": 23,
2018-07-07 23:56:47 +00:00
"declarations": [],
"spell": "4:8-4:13|0|1|2|-1",
"extent": "4:1-6:2|0|1|0|-1",
"alias_of": 0,
"bases": [],
"derived": [10963370434658308541],
"types": [],
"funcs": [8401779086123965305],
"vars": [],
"instances": [],
"uses": ["5:12-5:17|15826803741381445676|2|4|-1", "7:25-7:30|10963370434658308541|2|2052|-1"]
}],
"usr2var": []
2018-03-31 03:16:33 +00:00
}
*/