ccls/tests/vars/class_static_member.cc
2017-04-05 01:06:18 -07:00

32 lines
603 B
C++

class Foo {
static Foo* member;
};
Foo* Foo::member = nullptr;
/*
OUTPUT:
{
"types": [{
"id": 0,
"usr": "c:@S@Foo",
"short_name": "Foo",
"qualified_name": "Foo",
"definition": "1:7",
"vars": [0],
"instantiations": [0],
"uses": ["*1:7", "*2:10", "*4:1", "4:6"]
}],
"vars": [{
"id": 0,
"usr": "c:@S@Foo@member",
"short_name": "member",
"qualified_name": "Foo::member",
"declaration": "2:15",
"definition": "4:11",
"variable_type": 0,
"declaring_type": 0,
"uses": ["2:15", "4:11"]
}]
}
*/