mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 17:41:58 +00:00
48 lines
947 B
C++
48 lines
947 B
C++
void consume(void*) {}
|
|
|
|
void used() {}
|
|
|
|
void user() {
|
|
auto x = &used;
|
|
consume(&used);
|
|
}
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"funcs": [{
|
|
"id": 0,
|
|
"usr": "c:@F@consume#*v#",
|
|
"short_name": "consume",
|
|
"qualified_name": "consume",
|
|
"definition": "1:6",
|
|
"callers": ["2@7:3"],
|
|
"uses": ["1:6", "7:3"]
|
|
}, {
|
|
"id": 1,
|
|
"usr": "c:@F@used#",
|
|
"short_name": "used",
|
|
"qualified_name": "used",
|
|
"definition": "3:6",
|
|
"callers": ["2@6:13", "2@7:12"],
|
|
"uses": ["3:6", "6:13", "7:12"]
|
|
}, {
|
|
"id": 2,
|
|
"usr": "c:@F@user#",
|
|
"short_name": "user",
|
|
"qualified_name": "user",
|
|
"definition": "5:6",
|
|
"callees": ["1@6:13", "0@7:3", "1@7:12"],
|
|
"uses": ["5:6"]
|
|
}],
|
|
"vars": [{
|
|
"id": 0,
|
|
"usr": "c:func_usage_addr_func.cc@61@F@user#@x",
|
|
"short_name": "x",
|
|
"qualified_name": "x",
|
|
"definition": "6:8",
|
|
"uses": ["6:8"]
|
|
}]
|
|
}
|
|
*/
|