2017-02-18 21:18:08 +00:00
|
|
|
void consume(void*) {}
|
|
|
|
|
|
|
|
void used() {}
|
|
|
|
|
|
|
|
void user() {
|
|
|
|
auto x = &used;
|
|
|
|
consume(&used);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
2017-02-19 02:34:51 +00:00
|
|
|
"types": [],
|
2017-02-18 21:18:08 +00:00
|
|
|
"functions": [{
|
|
|
|
"id": 0,
|
2017-02-18 23:58:40 +00:00
|
|
|
"usr": "c:@F@consume#*v#",
|
2017-02-18 21:18:08 +00:00
|
|
|
"short_name": "consume",
|
|
|
|
"qualified_name": "consume",
|
2017-02-21 04:05:03 +00:00
|
|
|
"definition": "1:1:6",
|
|
|
|
"callers": ["2@1:7:3"],
|
2017-02-21 05:34:46 +00:00
|
|
|
"uses": ["1:1:6", "1:7:3"]
|
2017-02-18 21:18:08 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
2017-02-18 23:58:40 +00:00
|
|
|
"usr": "c:@F@used#",
|
2017-02-18 21:18:08 +00:00
|
|
|
"short_name": "used",
|
|
|
|
"qualified_name": "used",
|
2017-02-21 04:05:03 +00:00
|
|
|
"definition": "1:3:6",
|
|
|
|
"callers": ["2@1:6:13", "2@1:7:12"],
|
2017-02-21 05:34:46 +00:00
|
|
|
"uses": ["1:3:6", "1:6:13", "1:7:12"]
|
2017-02-18 21:18:08 +00:00
|
|
|
}, {
|
|
|
|
"id": 2,
|
2017-02-18 23:58:40 +00:00
|
|
|
"usr": "c:@F@user#",
|
2017-02-18 21:18:08 +00:00
|
|
|
"short_name": "user",
|
|
|
|
"qualified_name": "user",
|
2017-02-21 04:05:03 +00:00
|
|
|
"definition": "1:5:6",
|
|
|
|
"callees": ["1@1:6:13", "0@1:7:3", "1@1:7:12"],
|
2017-02-21 05:34:46 +00:00
|
|
|
"uses": ["1:5:6"]
|
2017-02-18 21:18:08 +00:00
|
|
|
}],
|
|
|
|
"variables": [{
|
|
|
|
"id": 0,
|
2017-02-18 23:58:40 +00:00
|
|
|
"usr": "c:func_usage_addr_func.cc@61@F@user#@x",
|
2017-02-18 21:18:08 +00:00
|
|
|
"short_name": "x",
|
|
|
|
"qualified_name": "x",
|
2017-02-21 04:05:03 +00:00
|
|
|
"definition": "1:6:8",
|
2017-02-21 05:34:46 +00:00
|
|
|
"uses": ["1:6:8"]
|
2017-02-18 21:18:08 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|