ccls/tests/inheritance/class_multiple_inherit.cc

72 lines
1.6 KiB
C++
Raw Normal View History

2017-02-20 07:06:38 +00:00
class Root {};
class MiddleA : public Root {};
class MiddleB : public Root {};
class Derived : public MiddleA, public MiddleB {};
/*
OUTPUT:
{
2017-12-12 05:15:37 +00:00
"includes": [],
"skipped_by_preprocessor": [],
2017-02-20 07:06:38 +00:00
"types": [{
"id": 0,
"usr": "c:@S@Root",
"short_name": "Root",
"detailed_name": "Root",
2017-04-05 08:29:15 +00:00
"definition_spelling": "1:7-1:11",
"definition_extent": "1:1-1:14",
2017-12-12 05:15:37 +00:00
"parents": [],
2017-02-20 07:06:38 +00:00
"derived": [1, 2],
2017-12-12 05:15:37 +00:00
"types": [],
"funcs": [],
"vars": [],
"instances": [],
2017-04-19 04:58:39 +00:00
"uses": ["1:7-1:11", "2:24-2:28", "3:24-3:28"]
2017-02-20 07:06:38 +00:00
}, {
"id": 1,
"usr": "c:@S@MiddleA",
"short_name": "MiddleA",
"detailed_name": "MiddleA",
2017-04-05 08:29:15 +00:00
"definition_spelling": "2:7-2:14",
"definition_extent": "2:1-2:31",
2017-02-20 07:06:38 +00:00
"parents": [0],
"derived": [3],
2017-12-12 05:15:37 +00:00
"types": [],
"funcs": [],
"vars": [],
"instances": [],
2017-04-19 04:58:39 +00:00
"uses": ["2:7-2:14", "4:24-4:31"]
2017-02-20 07:06:38 +00:00
}, {
"id": 2,
"usr": "c:@S@MiddleB",
"short_name": "MiddleB",
"detailed_name": "MiddleB",
2017-04-05 08:29:15 +00:00
"definition_spelling": "3:7-3:14",
"definition_extent": "3:1-3:31",
2017-02-20 07:06:38 +00:00
"parents": [0],
"derived": [3],
2017-12-12 05:15:37 +00:00
"types": [],
"funcs": [],
"vars": [],
"instances": [],
2017-04-19 04:58:39 +00:00
"uses": ["3:7-3:14", "4:40-4:47"]
2017-02-20 07:06:38 +00:00
}, {
"id": 3,
"usr": "c:@S@Derived",
"short_name": "Derived",
"detailed_name": "Derived",
2017-04-05 08:29:15 +00:00
"definition_spelling": "4:7-4:14",
"definition_extent": "4:1-4:50",
2017-02-20 07:06:38 +00:00
"parents": [1, 2],
2017-12-12 05:15:37 +00:00
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
2017-04-19 04:58:39 +00:00
"uses": ["4:7-4:14"]
2017-12-12 05:15:37 +00:00
}],
"funcs": [],
"vars": []
2017-02-20 07:06:38 +00:00
}
2017-03-08 00:21:23 +00:00
*/