mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-24 08:35:08 +00:00
70 lines
1.6 KiB
C++
70 lines
1.6 KiB
C++
template<class T>
|
|
class Template {};
|
|
|
|
struct Foo {
|
|
void Bar(Template<double>&);
|
|
};
|
|
|
|
void Foo::Bar(Template<double>&) {}
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"includes": [],
|
|
"skipped_by_preprocessor": [],
|
|
"usr2func": [{
|
|
"usr": 8412238651648388423,
|
|
"detailed_name": "void Foo::Bar(Template<double> &)",
|
|
"qual_name_offset": 5,
|
|
"short_name": "Bar",
|
|
"kind": 6,
|
|
"storage": 0,
|
|
"declarations": ["5:8-5:11|15041163540773201510|2|1"],
|
|
"spell": "8:11-8:14|15041163540773201510|2|2",
|
|
"extent": "8:1-8:36|0|1|0",
|
|
"declaring_type": 15041163540773201510,
|
|
"bases": [],
|
|
"derived": [],
|
|
"vars": [],
|
|
"uses": [],
|
|
"callees": []
|
|
}],
|
|
"usr2type": [{
|
|
"usr": 15041163540773201510,
|
|
"detailed_name": "Foo",
|
|
"qual_name_offset": 0,
|
|
"short_name": "Foo",
|
|
"kind": 23,
|
|
"declarations": [],
|
|
"spell": "4:8-4:11|0|1|2",
|
|
"extent": "4:1-6:2|0|1|0",
|
|
"alias_of": 0,
|
|
"bases": [],
|
|
"derived": [],
|
|
"types": [],
|
|
"funcs": [8412238651648388423],
|
|
"vars": [],
|
|
"instances": [],
|
|
"uses": ["8:6-8:9|0|1|4"]
|
|
}, {
|
|
"usr": 17107291254533526269,
|
|
"detailed_name": "Template",
|
|
"qual_name_offset": 0,
|
|
"short_name": "Template",
|
|
"kind": 5,
|
|
"declarations": [],
|
|
"spell": "2:7-2:15|0|1|2",
|
|
"extent": "2:1-2:18|0|1|0",
|
|
"alias_of": 0,
|
|
"bases": [],
|
|
"derived": [],
|
|
"types": [],
|
|
"funcs": [],
|
|
"vars": [],
|
|
"instances": [],
|
|
"uses": ["5:12-5:20|0|1|4", "8:15-8:23|0|1|4"]
|
|
}],
|
|
"usr2var": []
|
|
}
|
|
*/
|