ccls/tests/inheritance/class_inherit.cc

27 lines
517 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",
"qualified_name": "Parent",
2017-02-21 04:05:03 +00:00
"definition": "1:1:7",
2017-02-20 07:06:38 +00:00
"derived": [1],
2017-02-21 05:55:48 +00:00
"uses": ["*1:1:7", "*1:2:24"]
2017-02-20 07:06:38 +00:00
}, {
"id": 1,
"usr": "c:@S@Derived",
"short_name": "Derived",
"qualified_name": "Derived",
2017-02-21 04:05:03 +00:00
"definition": "1:2:7",
2017-02-20 07:06:38 +00:00
"parents": [0],
2017-02-21 05:55:48 +00:00
"uses": ["*1:2:7"]
2017-02-20 07:06:38 +00:00
}],
"functions": [],
"variables": []
}
*/