2018-03-31 03:16:33 +00:00
|
|
|
namespace ns {
|
|
|
|
int Foo;
|
|
|
|
void Accept(int a) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
void Runner() {
|
|
|
|
ns::Accept(ns::Foo);
|
|
|
|
using namespace ns;
|
|
|
|
Accept(Foo);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"includes": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [{
|
|
|
|
"usr": 631910859630953711,
|
|
|
|
"detailed_name": "void Runner()",
|
|
|
|
"qual_name_offset": 5,
|
|
|
|
"short_name": "Runner",
|
|
|
|
"kind": 12,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-09-08 05:29:36 +00:00
|
|
|
"spell": "6:6-6:12|0|1|2|-1",
|
|
|
|
"extent": "6:1-10:2|0|1|0|-1",
|
2018-04-30 04:49:03 +00:00
|
|
|
"bases": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"derived": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"vars": [],
|
|
|
|
"uses": [],
|
2018-07-21 06:27:47 +00:00
|
|
|
"callees": ["7:7-7:13|17328473273923617489|3|16420", "9:3-9:9|17328473273923617489|3|16420"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 17328473273923617489,
|
|
|
|
"detailed_name": "void ns::Accept(int a)",
|
|
|
|
"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": [],
|
2018-09-08 05:29:36 +00:00
|
|
|
"spell": "3:8-3:14|11072669167287398027|2|1026|-1",
|
|
|
|
"extent": "3:3-3:24|11072669167287398027|2|0|-1",
|
2018-04-30 04:49:03 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
2018-07-08 19:49:27 +00:00
|
|
|
"vars": [3649375698083002347],
|
2018-09-08 05:29:36 +00:00
|
|
|
"uses": ["7:7-7:13|631910859630953711|3|16420|-1", "9:3-9:9|631910859630953711|3|16420|-1"],
|
2018-04-30 04:49:03 +00:00
|
|
|
"callees": []
|
|
|
|
}],
|
|
|
|
"usr2type": [{
|
2018-07-07 23:56:47 +00:00
|
|
|
"usr": 53,
|
2018-04-30 04:49:03 +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": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"derived": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [12898699035586282159, 3649375698083002347],
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": []
|
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 11072669167287398027,
|
2018-08-30 04:20:27 +00:00
|
|
|
"detailed_name": "namespace ns {}",
|
2018-07-07 23:56:47 +00:00
|
|
|
"qual_name_offset": 10,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "ns",
|
|
|
|
"kind": 3,
|
2018-09-08 05:29:36 +00:00
|
|
|
"declarations": ["1:11-1:13|1:1-4:2|0|1|1|-1"],
|
2018-04-30 04:49:03 +00:00
|
|
|
"alias_of": 0,
|
2018-07-07 23:56:47 +00:00
|
|
|
"bases": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [17328473273923617489],
|
2018-07-08 19:49:27 +00:00
|
|
|
"vars": [{
|
|
|
|
"L": 12898699035586282159,
|
|
|
|
"R": -1
|
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [],
|
2018-09-08 05:29:36 +00:00
|
|
|
"uses": ["7:3-7:5|631910859630953711|3|4|-1", "7:14-7:16|631910859630953711|3|4|-1", "8:19-8:21|631910859630953711|3|4|-1"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": [{
|
|
|
|
"usr": 3649375698083002347,
|
|
|
|
"detailed_name": "int a",
|
|
|
|
"qual_name_offset": 4,
|
|
|
|
"short_name": "a",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-09-08 05:29:36 +00:00
|
|
|
"spell": "3:19-3:20|17328473273923617489|3|1026|-1",
|
|
|
|
"extent": "3:15-3:20|17328473273923617489|3|0|-1",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 53,
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"kind": 253,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0
|
2018-04-30 04:49:03 +00:00
|
|
|
}, {
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 12898699035586282159,
|
|
|
|
"detailed_name": "int ns::Foo",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 4,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Foo",
|
|
|
|
"declarations": [],
|
2018-09-08 05:29:36 +00:00
|
|
|
"spell": "2:7-2:10|11072669167287398027|2|1026|-1",
|
|
|
|
"extent": "2:3-2:10|11072669167287398027|2|0|-1",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 53,
|
2018-09-08 05:29:36 +00:00
|
|
|
"uses": ["7:18-7:21|631910859630953711|3|12|-1", "9:10-9:13|631910859630953711|3|12|-1"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 13,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0
|
2018-03-31 03:16:33 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|