ccls/tests/inheritance/class_inherit.cc
2017-04-18 21:58:39 -07:00

28 lines
586 B
C++

class Parent {};
class Derived : public Parent {};
/*
OUTPUT:
{
"types": [{
"id": 0,
"usr": "c:@S@Parent",
"short_name": "Parent",
"detailed_name": "Parent",
"definition_spelling": "1:7-1:13",
"definition_extent": "1:1-1:16",
"derived": [1],
"uses": ["1:7-1:13", "2:24-2:30"]
}, {
"id": 1,
"usr": "c:@S@Derived",
"short_name": "Derived",
"detailed_name": "Derived",
"definition_spelling": "2:7-2:14",
"definition_extent": "2:1-2:33",
"parents": [0],
"uses": ["2:7-2:14"]
}]
}
*/