ccls/index_tests/usage/func_usage_call_func.cc

46 lines
945 B
C++
Raw Normal View History

2018-03-31 03:16:33 +00:00
void called() {}
void caller() {
called();
}
/*
OUTPUT:
{
"includes": [],
2018-07-07 23:56:47 +00:00
"skipped_ranges": [],
"usr2func": [{
2018-03-31 03:16:33 +00:00
"usr": 468307235068920063,
"detailed_name": "void called()",
"qual_name_offset": 5,
2018-03-31 03:16:33 +00:00
"short_name": "called",
"spell": "1:6-1:12|1:1-1:17|2|-1",
"bases": [],
"vars": [],
"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": ["3:3-3:9|16420|-1"]
2018-03-31 03:16:33 +00:00
}, {
"usr": 11404881820527069090,
"detailed_name": "void caller()",
"qual_name_offset": 5,
2018-03-31 03:16:33 +00:00
"short_name": "caller",
"spell": "2:6-2:12|2:1-4:2|2|-1",
"bases": [],
"vars": [],
"callees": ["3:3-3:9|468307235068920063|3|16420"],
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": [],
"usr2var": []
2018-03-31 03:16:33 +00:00
}
*/