ccls/index_tests/vars/function_param.cc

70 lines
1.6 KiB
C++
Raw Permalink Normal View History

2018-03-31 03:16:33 +00:00
struct Foo;
void foo(Foo* p0, Foo* p1) {}
/*
OUTPUT:
{
"includes": [],
2018-07-07 23:56:47 +00:00
"skipped_ranges": [],
"usr2func": [{
2018-03-31 03:16:33 +00:00
"usr": 8908726657907936744,
"detailed_name": "void foo(Foo *p0, Foo *p1)",
"qual_name_offset": 5,
2018-03-31 03:16:33 +00:00
"short_name": "foo",
"spell": "3:6-3:9|3:1-3:30|2|-1",
"bases": [],
"vars": [8730439006497971620, 2525014371090380500],
"callees": [],
2018-03-31 03:16:33 +00:00
"kind": 12,
"parent_kind": 0,
"storage": 0,
2018-03-31 03:16:33 +00:00
"declarations": [],
"derived": [],
"uses": []
2018-03-31 03:16:33 +00:00
}],
"usr2type": [{
"usr": 15041163540773201510,
2018-07-07 23:56:47 +00:00
"detailed_name": "struct Foo",
"qual_name_offset": 7,
"short_name": "Foo",
"bases": [],
"funcs": [],
"types": [],
"vars": [],
"alias_of": 0,
"kind": 23,
"parent_kind": 0,
"declarations": ["1:8-1:11|1:1-1:11|1|-1"],
"derived": [],
"instances": [8730439006497971620, 2525014371090380500],
"uses": ["3:10-3:13|4|-1", "3:19-3:22|4|-1"]
}],
"usr2var": [{
"usr": 2525014371090380500,
"detailed_name": "Foo *p1",
"qual_name_offset": 5,
"short_name": "p1",
"spell": "3:24-3:26|3:19-3:26|1026|-1",
"type": 15041163540773201510,
2018-03-31 03:16:33 +00:00
"kind": 253,
"parent_kind": 12,
"storage": 0,
"declarations": [],
"uses": []
2018-03-31 03:16:33 +00:00
}, {
"usr": 8730439006497971620,
"detailed_name": "Foo *p0",
"qual_name_offset": 5,
"short_name": "p0",
"spell": "3:15-3:17|3:10-3:17|1026|-1",
"type": 15041163540773201510,
2018-03-31 03:16:33 +00:00
"kind": 253,
"parent_kind": 12,
"storage": 0,
"declarations": [],
"uses": []
2018-03-31 03:16:33 +00:00
}]
}
*/