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