mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-23 08:05:07 +00:00
47 lines
1.5 KiB
C++
47 lines
1.5 KiB
C++
|
class Root {};
|
||
|
class MiddleA : public Root {};
|
||
|
class MiddleB : public Root {};
|
||
|
class Derived : public MiddleA, public MiddleB {};
|
||
|
|
||
|
/*
|
||
|
OUTPUT:
|
||
|
{
|
||
|
"types": [{
|
||
|
"id": 0,
|
||
|
"usr": "c:@S@Root",
|
||
|
"short_name": "Root",
|
||
|
"qualified_name": "Root",
|
||
|
"definition": "tests/inheritance/class_multiple_inherit.cc:1:7",
|
||
|
"derived": [1, 2],
|
||
|
"all_uses": ["tests/inheritance/class_multiple_inherit.cc:1:7", "tests/inheritance/class_multiple_inherit.cc:2:24", "tests/inheritance/class_multiple_inherit.cc:3:24"]
|
||
|
}, {
|
||
|
"id": 1,
|
||
|
"usr": "c:@S@MiddleA",
|
||
|
"short_name": "MiddleA",
|
||
|
"qualified_name": "MiddleA",
|
||
|
"definition": "tests/inheritance/class_multiple_inherit.cc:2:7",
|
||
|
"parents": [0],
|
||
|
"derived": [3],
|
||
|
"all_uses": ["tests/inheritance/class_multiple_inherit.cc:2:7", "tests/inheritance/class_multiple_inherit.cc:4:24"]
|
||
|
}, {
|
||
|
"id": 2,
|
||
|
"usr": "c:@S@MiddleB",
|
||
|
"short_name": "MiddleB",
|
||
|
"qualified_name": "MiddleB",
|
||
|
"definition": "tests/inheritance/class_multiple_inherit.cc:3:7",
|
||
|
"parents": [0],
|
||
|
"derived": [3],
|
||
|
"all_uses": ["tests/inheritance/class_multiple_inherit.cc:3:7", "tests/inheritance/class_multiple_inherit.cc:4:40"]
|
||
|
}, {
|
||
|
"id": 3,
|
||
|
"usr": "c:@S@Derived",
|
||
|
"short_name": "Derived",
|
||
|
"qualified_name": "Derived",
|
||
|
"definition": "tests/inheritance/class_multiple_inherit.cc:4:7",
|
||
|
"parents": [1, 2],
|
||
|
"all_uses": ["tests/inheritance/class_multiple_inherit.cc:4:7"]
|
||
|
}],
|
||
|
"functions": [],
|
||
|
"variables": []
|
||
|
}
|
||
|
*/
|