ccls/index_tests/declaration_vs_definition/class_member_static.cc
2019-11-09 20:03:28 -08:00

62 lines
1.3 KiB
C++

class Foo {
static int foo;
};
int Foo::foo;
/*
OUTPUT:
{
"includes": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"bases": [],
"funcs": [],
"types": [],
"vars": [],
"alias_of": 0,
"kind": 0,
"parent_kind": 0,
"declarations": [],
"derived": [],
"instances": [8942920329766232482, 8942920329766232482],
"uses": []
}, {
"usr": 15041163540773201510,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"spell": "1:7-1:10|1:1-3:2|2|-1",
"bases": [],
"funcs": [],
"types": [],
"vars": [],
"alias_of": 0,
"kind": 5,
"parent_kind": 0,
"declarations": [],
"derived": [],
"instances": [],
"uses": ["5:5-5:8|4|-1"]
}],
"usr2var": [{
"usr": 8942920329766232482,
"detailed_name": "static int Foo::foo",
"qual_name_offset": 11,
"short_name": "foo",
"spell": "5:10-5:13|5:1-5:13|1026|-1",
"type": 53,
"kind": 13,
"parent_kind": 5,
"storage": 2,
"declarations": ["2:14-2:17|2:3-2:17|1025|-1"],
"uses": []
}]
}
*/