mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
39 lines
822 B
C++
39 lines
822 B
C++
struct Foo;
|
|
|
|
void foo(Foo* p0, Foo* p1) {}
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"types": [{
|
|
"id": 0,
|
|
"usr": "c:@S@Foo",
|
|
"uses": ["1:1:8", "*1:3:10", "*1:3:19"]
|
|
}],
|
|
"functions": [{
|
|
"id": 0,
|
|
"usr": "c:@F@foo#*$@S@Foo#S0_#",
|
|
"short_name": "foo",
|
|
"qualified_name": "foo",
|
|
"definition": "1:3:6",
|
|
"uses": ["1:3:6"]
|
|
}],
|
|
"variables": [{
|
|
"id": 0,
|
|
"usr": "c:function_param.cc@24@F@foo#*$@S@Foo#S0_#@p0",
|
|
"short_name": "p0",
|
|
"qualified_name": "p0",
|
|
"definition": "1:3:15",
|
|
"variable_type": 0,
|
|
"uses": ["1:3:15"]
|
|
}, {
|
|
"id": 1,
|
|
"usr": "c:function_param.cc@33@F@foo#*$@S@Foo#S0_#@p1",
|
|
"short_name": "p1",
|
|
"qualified_name": "p1",
|
|
"definition": "1:3:24",
|
|
"variable_type": 0,
|
|
"uses": ["1:3:24"]
|
|
}]
|
|
}
|
|
*/ |