mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-27 01:51:57 +00:00
b5305e14f2
This does not handle setting |is_macro|, this CL is about updating the tests.
66 lines
1.5 KiB
C++
66 lines
1.5 KiB
C++
struct Type {
|
|
Type() {}
|
|
};
|
|
|
|
void Make() {
|
|
Type foo;
|
|
auto foo = Type();
|
|
}
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"types": [{
|
|
"id": 0,
|
|
"usr": "c:@S@Type",
|
|
"short_name": "Type",
|
|
"detailed_name": "Type",
|
|
"definition_spelling": "1:8-1:12",
|
|
"definition_extent": "1:1-3:2",
|
|
"funcs": [0],
|
|
"instances": [0],
|
|
"uses": ["1:8-1:12", "2:3-2:7", "6:3-6:7"]
|
|
}],
|
|
"funcs": [{
|
|
"id": 0,
|
|
"usr": "c:@S@Type@F@Type#",
|
|
"short_name": "Type",
|
|
"detailed_name": "void Type::Type()",
|
|
"definition_spelling": "2:3-2:7",
|
|
"definition_extent": "2:3-2:12",
|
|
"declaring_type": 0,
|
|
"callers": ["~1@6:8-6:11"]
|
|
}, {
|
|
"id": 1,
|
|
"usr": "c:@F@Make#",
|
|
"short_name": "Make",
|
|
"detailed_name": "void Make()",
|
|
"definition_spelling": "5:6-5:10",
|
|
"definition_extent": "5:1-8:2",
|
|
"callees": ["~0@6:8-6:11"]
|
|
}],
|
|
"vars": [{
|
|
"id": 0,
|
|
"usr": "c:implicit_constructor.cc@51@F@Make#@foo",
|
|
"short_name": "foo",
|
|
"detailed_name": "Type foo",
|
|
"definition_spelling": "6:8-6:11",
|
|
"definition_extent": "6:3-6:11",
|
|
"variable_type": 0,
|
|
"is_local": true,
|
|
"is_macro": false,
|
|
"uses": ["6:8-6:11"]
|
|
}, {
|
|
"id": 1,
|
|
"usr": "c:implicit_constructor.cc@64@F@Make#@foo",
|
|
"short_name": "foo",
|
|
"detailed_name": "auto foo",
|
|
"definition_spelling": "7:8-7:11",
|
|
"definition_extent": "7:3-7:11",
|
|
"is_local": true,
|
|
"is_macro": false,
|
|
"uses": ["7:8-7:11"]
|
|
}]
|
|
}
|
|
*/
|