ccls/index_tests/namespaces/function_declaration.cc
2018-03-30 22:02:26 -07:00

62 lines
1.2 KiB
C++

namespace hello {
void foo(int a, int b);
}
/*
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"types": [{
"id": 0,
"usr": 2029211996748007610,
"detailed_name": "hello",
"short_name": "hello",
"kind": 3,
"declarations": [],
"spell": "1:11-1:16|-1|1|2",
"extent": "1:1-3:2|-1|1|0",
"bases": [1],
"derived": [],
"types": [],
"funcs": [0],
"vars": [],
"instances": [],
"uses": ["1:11-1:16|-1|1|4"]
}, {
"id": 1,
"usr": 13838176792705659279,
"detailed_name": "<fundamental>",
"short_name": "",
"kind": 0,
"declarations": [],
"bases": [],
"derived": [0],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}],
"funcs": [{
"id": 0,
"usr": 18343102288837190527,
"detailed_name": "void hello::foo(int a, int b)",
"short_name": "foo",
"kind": 12,
"storage": 1,
"declarations": [{
"spell": "2:6-2:9|0|2|1",
"param_spellings": ["2:14-2:15", "2:21-2:22"]
}],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": []
}],
"vars": []
}
*/