2017-12-20 17:43:26 +00:00
|
|
|
void consume(void (*)()) {}
|
2017-02-18 21:18:08 +00:00
|
|
|
|
|
|
|
void used() {}
|
|
|
|
|
|
|
|
void user() {
|
2017-12-20 17:43:26 +00:00
|
|
|
void (*x)() = &used;
|
2017-02-18 21:18:08 +00:00
|
|
|
consume(&used);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
2017-12-12 05:15:37 +00:00
|
|
|
"includes": [],
|
|
|
|
"skipped_by_preprocessor": [],
|
|
|
|
"types": [],
|
2017-03-08 00:21:23 +00:00
|
|
|
"funcs": [{
|
2017-02-18 21:18:08 +00:00
|
|
|
"id": 0,
|
2017-12-02 01:07:03 +00:00
|
|
|
"is_operator": false,
|
2017-12-20 17:43:26 +00:00
|
|
|
"usr": "c:@F@consume#*Fv#",
|
2017-02-18 21:18:08 +00:00
|
|
|
"short_name": "consume",
|
2017-12-20 17:43:26 +00:00
|
|
|
"detailed_name": "void consume(void (*)())",
|
|
|
|
"hover": "void consume(void (*)())",
|
2017-12-12 05:15:37 +00:00
|
|
|
"declarations": [],
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "1:6-1:13",
|
2017-12-20 17:43:26 +00:00
|
|
|
"definition_extent": "1:1-1:28",
|
2017-12-19 06:15:46 +00:00
|
|
|
"base": [],
|
2017-12-12 05:15:37 +00:00
|
|
|
"derived": [],
|
|
|
|
"locals": [],
|
|
|
|
"callers": ["2@7:3-7:10"],
|
|
|
|
"callees": []
|
2017-02-18 21:18:08 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
2017-12-02 01:07:03 +00:00
|
|
|
"is_operator": false,
|
2017-02-18 23:58:40 +00:00
|
|
|
"usr": "c:@F@used#",
|
2017-02-18 21:18:08 +00:00
|
|
|
"short_name": "used",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "void used()",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "void used()",
|
2017-12-12 05:15:37 +00:00
|
|
|
"declarations": [],
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "3:6-3:10",
|
|
|
|
"definition_extent": "3:1-3:15",
|
2017-12-19 06:15:46 +00:00
|
|
|
"base": [],
|
2017-12-12 05:15:37 +00:00
|
|
|
"derived": [],
|
|
|
|
"locals": [],
|
2017-12-20 17:43:26 +00:00
|
|
|
"callers": ["2@6:18-6:22", "2@7:12-7:16"],
|
2017-12-12 05:15:37 +00:00
|
|
|
"callees": []
|
2017-02-18 21:18:08 +00:00
|
|
|
}, {
|
|
|
|
"id": 2,
|
2017-12-02 01:07:03 +00:00
|
|
|
"is_operator": false,
|
2017-02-18 23:58:40 +00:00
|
|
|
"usr": "c:@F@user#",
|
2017-02-18 21:18:08 +00:00
|
|
|
"short_name": "user",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "void user()",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "void user()",
|
2017-12-12 05:15:37 +00:00
|
|
|
"declarations": [],
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "5:6-5:10",
|
|
|
|
"definition_extent": "5:1-8:2",
|
2017-12-19 06:15:46 +00:00
|
|
|
"base": [],
|
2017-12-12 05:15:37 +00:00
|
|
|
"derived": [],
|
|
|
|
"locals": [],
|
|
|
|
"callers": [],
|
2017-12-20 17:43:26 +00:00
|
|
|
"callees": ["1@6:18-6:22", "0@7:3-7:10", "1@7:12-7:16"]
|
2017-02-18 21:18:08 +00:00
|
|
|
}],
|
2017-03-08 00:21:23 +00:00
|
|
|
"vars": [{
|
2017-02-18 21:18:08 +00:00
|
|
|
"id": 0,
|
2017-12-20 17:43:26 +00:00
|
|
|
"usr": "c:func_usage_addr_func.cc@66@F@user#@x",
|
2017-02-18 21:18:08 +00:00
|
|
|
"short_name": "x",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "void (*)() x",
|
2017-12-20 17:43:26 +00:00
|
|
|
"definition_spelling": "6:10-6:11",
|
|
|
|
"definition_extent": "6:3-6:22",
|
2017-05-21 01:26:50 +00:00
|
|
|
"is_local": true,
|
2017-06-29 06:25:19 +00:00
|
|
|
"is_macro": false,
|
2017-12-20 17:43:26 +00:00
|
|
|
"uses": ["6:10-6:11"]
|
2017-02-18 21:18:08 +00:00
|
|
|
}]
|
|
|
|
}
|
2017-03-08 00:21:23 +00:00
|
|
|
*/
|