mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-30 11:27:07 +00:00
76 lines
1.7 KiB
C++
76 lines
1.7 KiB
C++
class Root {};
|
|
class MiddleA : public Root {};
|
|
class MiddleB : public Root {};
|
|
class Derived : public MiddleA, public MiddleB {};
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"includes": [],
|
|
"skipped_by_preprocessor": [],
|
|
"types": [{
|
|
"id": 0,
|
|
"usr": "c:@S@Root",
|
|
"short_name": "Root",
|
|
"detailed_name": "Root",
|
|
"hover": "Root",
|
|
"definition_spelling": "1:7-1:11",
|
|
"definition_extent": "1:1-1:14",
|
|
"parents": [],
|
|
"derived": [1, 2],
|
|
"types": [],
|
|
"funcs": [],
|
|
"vars": [],
|
|
"instances": [],
|
|
"uses": ["1:7-1:11", "2:24-2:28", "3:24-3:28"]
|
|
}, {
|
|
"id": 1,
|
|
"usr": "c:@S@MiddleA",
|
|
"short_name": "MiddleA",
|
|
"detailed_name": "MiddleA",
|
|
"hover": "MiddleA",
|
|
"definition_spelling": "2:7-2:14",
|
|
"definition_extent": "2:1-2:31",
|
|
"parents": [0],
|
|
"derived": [3],
|
|
"types": [],
|
|
"funcs": [],
|
|
"vars": [],
|
|
"instances": [],
|
|
"uses": ["2:7-2:14", "4:24-4:31"]
|
|
}, {
|
|
"id": 2,
|
|
"usr": "c:@S@MiddleB",
|
|
"short_name": "MiddleB",
|
|
"detailed_name": "MiddleB",
|
|
"hover": "MiddleB",
|
|
"definition_spelling": "3:7-3:14",
|
|
"definition_extent": "3:1-3:31",
|
|
"parents": [0],
|
|
"derived": [3],
|
|
"types": [],
|
|
"funcs": [],
|
|
"vars": [],
|
|
"instances": [],
|
|
"uses": ["3:7-3:14", "4:40-4:47"]
|
|
}, {
|
|
"id": 3,
|
|
"usr": "c:@S@Derived",
|
|
"short_name": "Derived",
|
|
"detailed_name": "Derived",
|
|
"hover": "Derived",
|
|
"definition_spelling": "4:7-4:14",
|
|
"definition_extent": "4:1-4:50",
|
|
"parents": [1, 2],
|
|
"derived": [],
|
|
"types": [],
|
|
"funcs": [],
|
|
"vars": [],
|
|
"instances": [],
|
|
"uses": ["4:7-4:14"]
|
|
}],
|
|
"funcs": [],
|
|
"vars": []
|
|
}
|
|
*/
|