2018-03-31 03:16:33 +00:00
|
|
|
class Root {
|
|
|
|
virtual void foo();
|
|
|
|
};
|
|
|
|
class Derived : public Root {
|
|
|
|
void foo() override {}
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"includes": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [{
|
|
|
|
"usr": 6666242542855173890,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "void Derived::foo()",
|
2018-04-30 04:49:03 +00:00
|
|
|
"qual_name_offset": 5,
|
|
|
|
"short_name": "foo",
|
|
|
|
"kind": 6,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"declarations": [],
|
2018-07-10 06:40:26 +00:00
|
|
|
"spell": "5:8-5:11|10963370434658308541|2|5186",
|
2018-04-30 04:49:03 +00:00
|
|
|
"extent": "5:3-5:25|10963370434658308541|2|0",
|
|
|
|
"bases": [9948027785633571339],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
|
|
|
"uses": [],
|
|
|
|
"callees": []
|
|
|
|
}, {
|
|
|
|
"usr": 9948027785633571339,
|
2018-06-01 23:51:39 +00:00
|
|
|
"detailed_name": "virtual void Root::foo()",
|
|
|
|
"qual_name_offset": 13,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "foo",
|
|
|
|
"kind": 6,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-07-10 06:40:26 +00:00
|
|
|
"declarations": ["2:16-2:19|3897841498936210886|2|1089"],
|
2018-04-30 04:49:03 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [6666242542855173890],
|
|
|
|
"vars": [],
|
|
|
|
"uses": [],
|
|
|
|
"callees": []
|
|
|
|
}],
|
|
|
|
"usr2type": [{
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 3897841498936210886,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "class Root {}",
|
|
|
|
"qual_name_offset": 6,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Root",
|
|
|
|
"kind": 5,
|
2018-07-07 23:56:47 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "1:7-1:11|0|1|2",
|
|
|
|
"extent": "1:1-3:2|0|1|0",
|
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"derived": [10963370434658308541],
|
2018-03-31 03:16:33 +00:00
|
|
|
"types": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"funcs": [9948027785633571339],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2018-07-21 06:27:47 +00:00
|
|
|
"uses": ["4:24-4:28|10963370434658308541|2|2052"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
|
|
|
"usr": 10963370434658308541,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "class Derived : public Root {}",
|
|
|
|
"qual_name_offset": 6,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Derived",
|
|
|
|
"kind": 5,
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "4:7-4:14|0|1|2",
|
|
|
|
"extent": "4:1-6:2|0|1|0",
|
|
|
|
"alias_of": 0,
|
|
|
|
"bases": [3897841498936210886],
|
2018-03-31 03:16:33 +00:00
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"funcs": [6666242542855173890],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
|
|
|
"uses": []
|
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}
|
|
|
|
*/
|