mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 23:55:08 +00:00
94 lines
2.0 KiB
C++
94 lines
2.0 KiB
C++
struct Foo {
|
|
static int x;
|
|
};
|
|
|
|
void accept(int);
|
|
|
|
void foo() {
|
|
accept(Foo::x);
|
|
}
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"includes": [],
|
|
"skipped_ranges": [],
|
|
"usr2func": [{
|
|
"usr": 4259594751088586730,
|
|
"detailed_name": "void foo()",
|
|
"qual_name_offset": 5,
|
|
"short_name": "foo",
|
|
"spell": "7:6-7:9|7:1-9:2|2|-1",
|
|
"bases": [],
|
|
"vars": [],
|
|
"callees": ["8:3-8:9|17175780305784503374|3|16420"],
|
|
"kind": 12,
|
|
"parent_kind": 0,
|
|
"storage": 0,
|
|
"declarations": [],
|
|
"derived": [],
|
|
"uses": []
|
|
}, {
|
|
"usr": 17175780305784503374,
|
|
"detailed_name": "void accept(int)",
|
|
"qual_name_offset": 5,
|
|
"short_name": "accept",
|
|
"bases": [],
|
|
"vars": [],
|
|
"callees": [],
|
|
"kind": 12,
|
|
"parent_kind": 0,
|
|
"storage": 0,
|
|
"declarations": ["5:6-5:12|5:1-5:17|1|-1"],
|
|
"derived": [],
|
|
"uses": ["8:3-8:9|16420|-1"]
|
|
}],
|
|
"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": [8599782646965457351],
|
|
"uses": []
|
|
}, {
|
|
"usr": 15041163540773201510,
|
|
"detailed_name": "struct Foo {}",
|
|
"qual_name_offset": 7,
|
|
"short_name": "Foo",
|
|
"spell": "1:8-1:11|1:1-3:2|2|-1",
|
|
"bases": [],
|
|
"funcs": [],
|
|
"types": [],
|
|
"vars": [],
|
|
"alias_of": 0,
|
|
"kind": 23,
|
|
"parent_kind": 0,
|
|
"declarations": [],
|
|
"derived": [],
|
|
"instances": [],
|
|
"uses": ["8:10-8:13|4|-1"]
|
|
}],
|
|
"usr2var": [{
|
|
"usr": 8599782646965457351,
|
|
"detailed_name": "static int Foo::x",
|
|
"qual_name_offset": 11,
|
|
"short_name": "x",
|
|
"type": 53,
|
|
"kind": 13,
|
|
"parent_kind": 23,
|
|
"storage": 2,
|
|
"declarations": ["2:14-2:15|2:3-2:15|1025|-1"],
|
|
"uses": ["8:15-8:16|12|-1"]
|
|
}]
|
|
}
|
|
*/
|