2017-03-06 06:34:17 +00:00
|
|
|
namespace ns {
|
|
|
|
int Foo;
|
|
|
|
void Accept(int a) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
void Runner() {
|
|
|
|
ns::Accept(ns::Foo);
|
|
|
|
using namespace ns;
|
|
|
|
Accept(Foo);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
2017-03-07 18:17:49 +00:00
|
|
|
"funcs": [{
|
2017-03-06 06:34:17 +00:00
|
|
|
"id": 0,
|
2017-12-02 01:07:03 +00:00
|
|
|
"is_operator": false,
|
2017-03-06 06:34:17 +00:00
|
|
|
"usr": "c:@N@ns@F@Accept#I#",
|
|
|
|
"short_name": "Accept",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "void ns::Accept(int)",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "3:8-3:14",
|
|
|
|
"definition_extent": "3:3-3:24",
|
2017-04-13 07:47:47 +00:00
|
|
|
"callers": ["1@7:7-7:13", "1@9:3-9:9"]
|
2017-03-06 06:34:17 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
2017-12-02 01:07:03 +00:00
|
|
|
"is_operator": false,
|
2017-03-06 06:34:17 +00:00
|
|
|
"usr": "c:@F@Runner#",
|
|
|
|
"short_name": "Runner",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "void Runner()",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "6:6-6:12",
|
|
|
|
"definition_extent": "6:1-10:2",
|
2017-04-13 07:47:47 +00:00
|
|
|
"callees": ["0@7:7-7:13", "0@9:3-9:9"]
|
2017-03-06 06:34:17 +00:00
|
|
|
}],
|
2017-03-08 08:09:15 +00:00
|
|
|
"vars": [{
|
2017-03-06 06:34:17 +00:00
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@N@ns@Foo",
|
|
|
|
"short_name": "Foo",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "int ns::Foo",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "2:7-2:10",
|
|
|
|
"definition_extent": "2:3-2:10",
|
2017-05-21 01:26:50 +00:00
|
|
|
"is_local": false,
|
2017-06-29 06:25:19 +00:00
|
|
|
"is_macro": false,
|
2017-04-05 08:29:15 +00:00
|
|
|
"uses": ["2:7-2:10", "7:18-7:21", "9:10-9:13"]
|
2017-03-06 06:34:17 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
|
|
|
"usr": "c:namespace_reference.cc@42@N@ns@F@Accept#I#@a",
|
|
|
|
"short_name": "a",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "int a",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "3:19-3:20",
|
|
|
|
"definition_extent": "3:15-3:20",
|
2017-05-21 01:26:50 +00:00
|
|
|
"is_local": true,
|
2017-06-29 06:25:19 +00:00
|
|
|
"is_macro": false,
|
2017-04-05 08:29:15 +00:00
|
|
|
"uses": ["3:19-3:20"]
|
2017-03-06 06:34:17 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|