2018-03-31 03:16:33 +00:00
|
|
|
struct Foo {
|
|
|
|
void Used();
|
|
|
|
};
|
|
|
|
|
|
|
|
void user() {
|
|
|
|
Foo* f = nullptr;
|
|
|
|
f->Used();
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"includes": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [{
|
|
|
|
"usr": 9376923949268137283,
|
|
|
|
"detailed_name": "void user()",
|
|
|
|
"qual_name_offset": 5,
|
|
|
|
"short_name": "user",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "5:6-5:10|5:1-8:2|2|-1",
|
|
|
|
"bases": [],
|
|
|
|
"vars": [14045150712868309451],
|
|
|
|
"callees": ["7:6-7:10|18417145003926999463|3|16420"],
|
2018-04-30 04:49:03 +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": []
|
2018-04-30 04:49:03 +00:00
|
|
|
}, {
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 18417145003926999463,
|
|
|
|
"detailed_name": "void Foo::Used()",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Used",
|
2018-10-05 06:31:59 +00:00
|
|
|
"bases": [],
|
|
|
|
"vars": [],
|
|
|
|
"callees": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 6,
|
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": ["2:8-2:12|2:3-2:14|1025|-1"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"derived": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": ["7:6-7:10|16420|-1"]
|
2018-04-30 04:49:03 +00:00
|
|
|
}],
|
|
|
|
"usr2type": [{
|
|
|
|
"usr": 15041163540773201510,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "struct Foo {}",
|
|
|
|
"qual_name_offset": 7,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "Foo",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "1:8-1:11|1:1-3:2|2|-1",
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"funcs": [18417145003926999463],
|
2018-10-05 06:31:59 +00:00
|
|
|
"types": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"vars": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"alias_of": 0,
|
|
|
|
"kind": 23,
|
|
|
|
"parent_kind": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [14045150712868309451],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": ["6:3-6:6|4|-1"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": [{
|
|
|
|
"usr": 14045150712868309451,
|
2018-03-31 03:16:33 +00:00
|
|
|
"detailed_name": "Foo *f",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "f",
|
|
|
|
"hover": "Foo *f = nullptr",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "6:8-6:9|6:3-6:19|2|-1",
|
2018-04-30 04:49:03 +00:00
|
|
|
"type": 15041163540773201510,
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 13,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 12,
|
|
|
|
"storage": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"uses": ["7:3-7:4|12|-1"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|