mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 23:55:08 +00:00
38 lines
805 B
C++
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": []
|
|
}]
|
|
}
|
|
*/ |