2018-03-31 03:16:33 +00:00
|
|
|
void called(int a);
|
|
|
|
|
|
|
|
int gen() { return 1; }
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
called(gen() * gen());
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
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()",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "foo",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "5:6-5:9|5:1-7:2|2|-1",
|
|
|
|
"bases": [],
|
|
|
|
"vars": [],
|
|
|
|
"callees": ["6:3-6:9|18319417758892371313|3|16420", "6:10-6:13|11404602816585117695|3|16420", "6:18-6:21|11404602816585117695|3|16420"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 12,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 0,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"declarations": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"derived": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
|
|
|
"usr": 11404602816585117695,
|
|
|
|
"detailed_name": "int gen()",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 4,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "gen",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "3:5-3:8|3:1-3:24|2|-1",
|
|
|
|
"bases": [],
|
|
|
|
"vars": [],
|
|
|
|
"callees": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 12,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 0,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": ["6:10-6:13|16420|-1", "6:18-6:21|16420|-1"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 18319417758892371313,
|
|
|
|
"detailed_name": "void called(int a)",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "called",
|
2018-10-05 06:31:59 +00:00
|
|
|
"bases": [],
|
|
|
|
"vars": [],
|
|
|
|
"callees": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 12,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 0,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-10-05 06:31:59 +00:00
|
|
|
"declarations": ["1:6-1:12|1:1-1:19|1|-1"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"derived": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": ["6:3-6:9|16420|-1"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2type": [],
|
|
|
|
"usr2var": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}
|
|
|
|
*/
|