2018-03-31 03:16:33 +00:00
|
|
|
template<typename T>
|
|
|
|
void accept(T);
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
accept(1);
|
|
|
|
accept(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"includes": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [{
|
|
|
|
"usr": 4259594751088586730,
|
|
|
|
"detailed_name": "void foo()",
|
|
|
|
"qual_name_offset": 5,
|
|
|
|
"short_name": "foo",
|
|
|
|
"kind": 12,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-09-08 05:29:36 +00:00
|
|
|
"spell": "4:6-4:9|0|1|2|-1",
|
|
|
|
"extent": "4:1-7:2|0|1|0|-1",
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"uses": [],
|
2018-07-21 06:27:47 +00:00
|
|
|
"callees": ["5:3-5:9|10585861037135727329|3|16420", "6:3-6:9|10585861037135727329|3|16420"]
|
2018-04-30 04:49:03 +00:00
|
|
|
}, {
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 10585861037135727329,
|
|
|
|
"detailed_name": "void accept(T)",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "accept",
|
|
|
|
"kind": 12,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-09-08 05:29:36 +00:00
|
|
|
"declarations": ["2:6-2:12|2:1-2:15|0|1|1|-1"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
2018-09-08 05:29:36 +00:00
|
|
|
"uses": ["5:3-5:9|4259594751088586730|3|16420|-1", "6:3-6:9|4259594751088586730|3|16420|-1"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"callees": []
|
2018-04-30 04:49:03 +00:00
|
|
|
}],
|
2018-07-07 23:56:47 +00:00
|
|
|
"usr2type": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}
|
|
|
|
*/
|