ccls/tests/inheritance/class_inherit.cc

44 lines
917 B
C++
Raw Normal View History

2017-02-20 07:06:38 +00:00
class Parent {};
class Derived : public Parent {};
/*
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@Parent",
"short_name": "Parent",
"detailed_name": "Parent",
"hover": "Parent",
2017-04-05 08:29:15 +00:00
"definition_spelling": "1:7-1:13",
"definition_extent": "1:1-1:16",
2017-12-12 05:15:37 +00:00
"parents": [],
2017-02-20 07:06:38 +00:00
"derived": [1],
2017-12-12 05:15:37 +00:00
"types": [],
"funcs": [],
"vars": [],
"instances": [],
2017-04-19 04:58:39 +00:00
"uses": ["1:7-1:13", "2:24-2:30"]
2017-02-20 07:06:38 +00:00
}, {
"id": 1,
"usr": "c:@S@Derived",
"short_name": "Derived",
"detailed_name": "Derived",
"hover": "Derived",
2017-04-05 08:29:15 +00:00
"definition_spelling": "2:7-2:14",
"definition_extent": "2:1-2:33",
2017-02-20 07:06:38 +00:00
"parents": [0],
2017-12-12 05:15:37 +00:00
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
2017-04-19 04:58:39 +00:00
"uses": ["2:7-2: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
*/