2018-03-31 03:16:33 +00:00
|
|
|
void consume(void (*)()) {}
|
|
|
|
|
|
|
|
void used() {}
|
|
|
|
|
|
|
|
void user() {
|
|
|
|
void (*x)() = &used;
|
|
|
|
consume(&used);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"includes": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [{
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 5264867802674151787,
|
|
|
|
"detailed_name": "void used()",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "used",
|
|
|
|
"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:10|0|1|2",
|
|
|
|
"extent": "3:1-3:15|0|1|0",
|
|
|
|
"declaring_type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"uses": ["6:18-6:22|0|1|132", "7:12-7:16|0|1|132"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"callees": []
|
|
|
|
}, {
|
|
|
|
"usr": 9376923949268137283,
|
|
|
|
"detailed_name": "void user()",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "user",
|
|
|
|
"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": "5:6-5:10|0|1|2",
|
|
|
|
"extent": "5:1-8:2|0|1|0",
|
|
|
|
"declaring_type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
2018-07-08 19:49:27 +00:00
|
|
|
"vars": [16088407831770615719],
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"callees": []
|
2018-04-30 04:49:03 +00:00
|
|
|
}, {
|
|
|
|
"usr": 12924914488846929470,
|
|
|
|
"detailed_name": "void consume(void (*)())",
|
|
|
|
"qual_name_offset": 5,
|
|
|
|
"short_name": "consume",
|
|
|
|
"kind": 12,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"declarations": [],
|
|
|
|
"spell": "1:6-1:13|0|1|2",
|
|
|
|
"extent": "1:1-1:28|0|1|0",
|
|
|
|
"declaring_type": 0,
|
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
2018-07-10 06:40:26 +00:00
|
|
|
"uses": ["7:3-7:10|0|1|16420"],
|
2018-04-30 04:49:03 +00:00
|
|
|
"callees": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2type": [],
|
|
|
|
"usr2var": [{
|
|
|
|
"usr": 16088407831770615719,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "void (*x)()",
|
|
|
|
"qual_name_offset": 7,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "x",
|
2018-07-07 23:56:47 +00:00
|
|
|
"hover": "void (*x)() = &used",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "6:10-6:11|9376923949268137283|3|2",
|
|
|
|
"extent": "6:3-6:22|9376923949268137283|3|0",
|
|
|
|
"type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
|
|
|
"kind": 13,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0
|
2018-03-31 03:16:33 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|