ccls/tests/vars/function_param.cc
2017-02-19 22:06:46 -08:00

40 lines
1.2 KiB
C++

struct Foo;
void foo(Foo* p0, Foo* p1) {}
/*
OUTPUT:
{
"types": [{
"id": 0,
"usr": "c:@S@Foo",
"all_uses": ["tests/vars/function_param.cc:1:8", "tests/vars/function_param.cc:3:10", "tests/vars/function_param.cc:3:19"],
"interesting_uses": ["tests/vars/function_param.cc:3:10", "tests/vars/function_param.cc:3:19"]
}],
"functions": [{
"id": 0,
"usr": "c:@F@foo#*$@S@Foo#S0_#",
"short_name": "foo",
"qualified_name": "foo",
"definition": "tests/vars/function_param.cc:3:6",
"all_uses": ["tests/vars/function_param.cc:3:6"]
}],
"variables": [{
"id": 0,
"usr": "c:function_param.cc@24@F@foo#*$@S@Foo#S0_#@p0",
"short_name": "p0",
"qualified_name": "p0",
"declaration": "tests/vars/function_param.cc:3:15",
"variable_type": 0,
"all_uses": ["tests/vars/function_param.cc:3:15"]
}, {
"id": 1,
"usr": "c:function_param.cc@33@F@foo#*$@S@Foo#S0_#@p1",
"short_name": "p1",
"qualified_name": "p1",
"declaration": "tests/vars/function_param.cc:3:24",
"variable_type": 0,
"all_uses": ["tests/vars/function_param.cc:3:24"]
}]
}
*/