ccls/tests/inheritance/class_inherit.cc

28 lines
586 B
C++
Raw Normal View History

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