mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
namespace ns {
|
|
int Foo;
|
|
void Accept(int a) {}
|
|
}
|
|
|
|
void Runner() {
|
|
ns::Accept(ns::Foo);
|
|
using namespace ns;
|
|
Accept(Foo);
|
|
}
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"funcs": [{
|
|
"id": 0,
|
|
"usr": "c:@N@ns@F@Accept#I#",
|
|
"short_name": "Accept",
|
|
"detailed_name": "void ns::Accept(int)",
|
|
"definition_spelling": "3:8-3:14",
|
|
"definition_extent": "3:3-3:24",
|
|
"callers": ["1@7:7-7:13", "1@9:3-9:9"]
|
|
}, {
|
|
"id": 1,
|
|
"usr": "c:@F@Runner#",
|
|
"short_name": "Runner",
|
|
"detailed_name": "void Runner()",
|
|
"definition_spelling": "6:6-6:12",
|
|
"definition_extent": "6:1-10:2",
|
|
"callees": ["0@7:7-7:13", "0@9:3-9:9"]
|
|
}],
|
|
"vars": [{
|
|
"id": 0,
|
|
"usr": "c:@N@ns@Foo",
|
|
"short_name": "Foo",
|
|
"detailed_name": "int ns::Foo",
|
|
"definition_spelling": "2:7-2:10",
|
|
"definition_extent": "2:3-2:10",
|
|
"uses": ["2:7-2:10", "7:18-7:21", "9:10-9:13"]
|
|
}, {
|
|
"id": 1,
|
|
"usr": "c:namespace_reference.cc@42@N@ns@F@Accept#I#@a",
|
|
"short_name": "a",
|
|
"detailed_name": "int a",
|
|
"definition_spelling": "3:19-3:20",
|
|
"definition_extent": "3:15-3:20",
|
|
"uses": ["3:19-3:20"]
|
|
}]
|
|
}
|
|
*/
|
|
|
|
|
|
|