2018-03-31 03:16:33 +00:00
|
|
|
void called() {}
|
|
|
|
|
|
|
|
void caller() {
|
|
|
|
auto x = &called;
|
|
|
|
x();
|
|
|
|
|
|
|
|
called();
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"includes": [],
|
|
|
|
"skipped_by_preprocessor": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [{
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 468307235068920063,
|
|
|
|
"detailed_name": "void called()",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "called",
|
|
|
|
"kind": 12,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "1:6-1:12|0|1|2",
|
|
|
|
"extent": "1:1-1:17|0|1|0",
|
|
|
|
"declaring_type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"uses": ["4:13-4:19|11404881820527069090|3|32", "7:3-7:9|11404881820527069090|3|32"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"callees": []
|
|
|
|
}, {
|
|
|
|
"usr": 11404881820527069090,
|
|
|
|
"detailed_name": "void caller()",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "caller",
|
|
|
|
"kind": 12,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "3:6-3:12|0|1|2",
|
|
|
|
"extent": "3:1-8:2|0|1|0",
|
|
|
|
"declaring_type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"vars": [9121974011454213596],
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"callees": ["4:13-4:19|468307235068920063|3|32", "4:13-4:19|468307235068920063|3|32", "7:3-7:9|468307235068920063|3|32"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2type": [],
|
|
|
|
"usr2var": [{
|
|
|
|
"usr": 9121974011454213596,
|
2018-03-31 03:16:33 +00:00
|
|
|
"detailed_name": "void (*)() x",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 11,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "x",
|
2018-06-01 23:51:39 +00:00
|
|
|
"hover": "void (*)() x = &called",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "4:8-4:9|11404881820527069090|3|2",
|
|
|
|
"extent": "4:3-4:19|11404881820527069090|3|0",
|
|
|
|
"type": 0,
|
|
|
|
"uses": ["5:3-5:4|11404881820527069090|3|4"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 13,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0
|
2018-03-31 03:16:33 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|