2018-03-31 03:16:33 +00:00
|
|
|
struct Foo {
|
|
|
|
static int x;
|
|
|
|
};
|
|
|
|
|
|
|
|
void accept(int);
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
accept(Foo::x);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
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-04-30 04:49:03 +00:00
|
|
|
"spell": "7:6-7:9|0|1|2",
|
|
|
|
"extent": "7:1-9:2|0|1|0",
|
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": ["8:3-8:9|17175780305784503374|3|16420"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 17175780305784503374,
|
|
|
|
"detailed_name": "void accept(int)",
|
|
|
|
"qual_name_offset": 5,
|
|
|
|
"short_name": "accept",
|
|
|
|
"kind": 12,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"declarations": ["5:6-5:12|0|1|1"],
|
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
2018-07-21 06:27:47 +00:00
|
|
|
"uses": ["8:3-8:9|4259594751088586730|3|16420"],
|
2018-04-30 04:49:03 +00:00
|
|
|
"callees": []
|
|
|
|
}],
|
|
|
|
"usr2type": [{
|
2018-07-07 23:56:47 +00:00
|
|
|
"usr": 53,
|
2018-03-31 03:16:33 +00:00
|
|
|
"detailed_name": "",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "",
|
|
|
|
"kind": 0,
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [8599782646965457351],
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": []
|
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"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",
|
|
|
|
"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": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [],
|
2018-07-21 06:27:47 +00:00
|
|
|
"uses": ["8:10-8:13|4259594751088586730|3|4"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": [{
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 8599782646965457351,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "static int Foo::x",
|
|
|
|
"qual_name_offset": 11,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "x",
|
2018-07-10 06:40:26 +00:00
|
|
|
"declarations": ["2:14-2:15|15041163540773201510|2|1025"],
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 53,
|
2018-07-21 06:27:47 +00:00
|
|
|
"uses": ["8:15-8:16|4259594751088586730|3|12"],
|
2018-07-07 23:56:47 +00:00
|
|
|
"kind": 13,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 2
|
2018-03-31 03:16:33 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|