ccls/tests/vars/class_static_member.cc
Jacob Dufault 46cec6f083 wip
2017-02-18 13:18:08 -08:00

38 lines
805 B
C++

class Foo {
static int member;
};
int Foo::member = 0;
/*
OUTPUT:
{
"types": [{
"id": 0,
"short_name": "Foo",
"qualified_name": "Foo",
"declaration": null,
"definition": "tests/vars/class_static_member.cc:1:7",
"parents": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [0],
"uses": []
}, {
"id": 1,
"short_name": "",
"qualified_name": "",
"declaration": null
}],
"functions": [],
"variables": [{
"id": 0,
"short_name": "member",
"qualified_name": "Foo::member",
"declaration": "tests/vars/class_static_member.cc:2:14",
"initializations": ["tests/vars/class_static_member.cc:4:10"],
"variable_type": 1,
"declaring_type": 0,
"uses": []
}]
}
*/