mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
88 lines
1.8 KiB
C++
88 lines
1.8 KiB
C++
namespace hello {
|
|
class Foo {
|
|
void foo();
|
|
};
|
|
|
|
void Foo::foo() {}
|
|
}
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"includes": [],
|
|
"skipped_by_preprocessor": [],
|
|
"types": [{
|
|
"id": 0,
|
|
"usr": 2029211996748007610,
|
|
"detailed_name": "hello",
|
|
"qual_name_offset": 0,
|
|
"short_name": "hello",
|
|
"kind": 3,
|
|
"declarations": [],
|
|
"spell": "1:11-1:16|-1|1|2",
|
|
"extent": "1:1-7:2|-1|1|0",
|
|
"bases": [1],
|
|
"derived": [],
|
|
"types": [],
|
|
"funcs": [],
|
|
"vars": [],
|
|
"instances": [],
|
|
"uses": ["1:11-1:16|-1|1|4"]
|
|
}, {
|
|
"id": 1,
|
|
"usr": 13838176792705659279,
|
|
"detailed_name": "<fundamental>",
|
|
"qual_name_offset": 0,
|
|
"short_name": "",
|
|
"kind": 0,
|
|
"declarations": [],
|
|
"bases": [],
|
|
"derived": [0],
|
|
"types": [],
|
|
"funcs": [],
|
|
"vars": [],
|
|
"instances": [],
|
|
"uses": []
|
|
}, {
|
|
"id": 2,
|
|
"usr": 4508214972876735896,
|
|
"detailed_name": "hello::Foo",
|
|
"qual_name_offset": 0,
|
|
"short_name": "Foo",
|
|
"kind": 5,
|
|
"declarations": [],
|
|
"spell": "2:7-2:10|0|2|2",
|
|
"extent": "2:1-4:2|0|2|0",
|
|
"bases": [],
|
|
"derived": [],
|
|
"types": [],
|
|
"funcs": [0],
|
|
"vars": [],
|
|
"instances": [],
|
|
"uses": ["6:6-6:9|-1|1|4"]
|
|
}],
|
|
"funcs": [{
|
|
"id": 0,
|
|
"usr": 10487325150128053272,
|
|
"detailed_name": "void hello::Foo::foo()",
|
|
"qual_name_offset": 5,
|
|
"short_name": "foo",
|
|
"kind": 6,
|
|
"storage": 1,
|
|
"declarations": [{
|
|
"spell": "3:8-3:11|2|2|1",
|
|
"param_spellings": []
|
|
}],
|
|
"spell": "6:11-6:14|2|2|2",
|
|
"extent": "6:1-6:19|0|2|0",
|
|
"declaring_type": 2,
|
|
"bases": [],
|
|
"derived": [],
|
|
"vars": [],
|
|
"uses": [],
|
|
"callees": []
|
|
}],
|
|
"vars": []
|
|
}
|
|
*/
|