mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 09:31:59 +00:00
32 lines
638 B
C++
32 lines
638 B
C++
void foo(int p) {
|
|
int p = 0;
|
|
}
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"types": [],
|
|
"functions": [{
|
|
"id": 0,
|
|
"usr": "c:@F@foo#I#",
|
|
"short_name": "foo",
|
|
"qualified_name": "foo",
|
|
"definition": "1:1:6",
|
|
"uses": ["1:1:6"]
|
|
}],
|
|
"variables": [{
|
|
"id": 0,
|
|
"usr": "c:function_shadow_param.cc@9@F@foo#I#@p",
|
|
"short_name": "p",
|
|
"qualified_name": "p",
|
|
"definition": "1:1:14",
|
|
"uses": ["1:1:14"]
|
|
}, {
|
|
"id": 1,
|
|
"usr": "c:function_shadow_param.cc@21@F@foo#I#@p",
|
|
"short_name": "p",
|
|
"qualified_name": "p",
|
|
"definition": "1:2:7",
|
|
"uses": ["1:2:7"]
|
|
}]
|
|
}
|
|
*/ |