ccls/index_tests/inheritance/class_multiple_inherit.cc

84 lines
2.1 KiB
C++
Raw Permalink Normal View History

2018-03-31 03:16:33 +00:00
class Root {};
class MiddleA : public Root {};
class MiddleB : public Root {};
class Derived : public MiddleA, public MiddleB {};
/*
OUTPUT:
{
"includes": [],
2018-07-07 23:56:47 +00:00
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
2018-03-31 03:16:33 +00:00
"usr": 3897841498936210886,
2018-07-07 23:56:47 +00:00
"detailed_name": "class Root {}",
"qual_name_offset": 6,
2018-03-31 03:16:33 +00:00
"short_name": "Root",
"spell": "1:7-1:11|1:1-1:14|2|-1",
2018-03-31 03:16:33 +00:00
"bases": [],
"funcs": [],
"types": [],
2018-03-31 03:16:33 +00:00
"vars": [],
"alias_of": 0,
"kind": 5,
"parent_kind": 0,
"declarations": [],
"derived": [11863524815063131483, 14022569716337624303],
2018-03-31 03:16:33 +00:00
"instances": [],
"uses": ["2:24-2:28|2052|-1", "3:24-3:28|2052|-1"]
2018-03-31 03:16:33 +00:00
}, {
"usr": 10963370434658308541,
2018-07-07 23:56:47 +00:00
"detailed_name": "class Derived : public MiddleA, public MiddleB {}",
"qual_name_offset": 6,
"short_name": "Derived",
"spell": "4:7-4:14|4:1-4:50|2|-1",
"bases": [11863524815063131483, 14022569716337624303],
2018-03-31 03:16:33 +00:00
"funcs": [],
"types": [],
2018-03-31 03:16:33 +00:00
"vars": [],
"alias_of": 0,
"kind": 5,
"parent_kind": 0,
"declarations": [],
"derived": [],
2018-03-31 03:16:33 +00:00
"instances": [],
"uses": []
2018-03-31 03:16:33 +00:00
}, {
"usr": 11863524815063131483,
2018-07-07 23:56:47 +00:00
"detailed_name": "class MiddleA : public Root {}",
"qual_name_offset": 6,
"short_name": "MiddleA",
"spell": "2:7-2:14|2:1-2:31|2|-1",
"bases": [3897841498936210886],
2018-03-31 03:16:33 +00:00
"funcs": [],
"types": [],
2018-03-31 03:16:33 +00:00
"vars": [],
"alias_of": 0,
"kind": 5,
"parent_kind": 0,
"declarations": [],
"derived": [10963370434658308541],
2018-03-31 03:16:33 +00:00
"instances": [],
"uses": ["4:24-4:31|2052|-1"]
2018-03-31 03:16:33 +00:00
}, {
"usr": 14022569716337624303,
2018-07-07 23:56:47 +00:00
"detailed_name": "class MiddleB : public Root {}",
"qual_name_offset": 6,
"short_name": "MiddleB",
"spell": "3:7-3:14|3:1-3:31|2|-1",
"bases": [3897841498936210886],
2018-03-31 03:16:33 +00:00
"funcs": [],
"types": [],
2018-03-31 03:16:33 +00:00
"vars": [],
"alias_of": 0,
"kind": 5,
"parent_kind": 0,
"declarations": [],
"derived": [10963370434658308541],
2018-03-31 03:16:33 +00:00
"instances": [],
"uses": ["4:40-4:47|2052|-1"]
2018-03-31 03:16:33 +00:00
}],
"usr2var": []
2018-03-31 03:16:33 +00:00
}
*/