2017-04-08 18:36:32 +00:00
|
|
|
void called() {}
|
|
|
|
|
|
|
|
struct Foo {
|
|
|
|
Foo();
|
|
|
|
};
|
|
|
|
|
|
|
|
Foo::Foo() {
|
|
|
|
called();
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"types": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@S@Foo",
|
|
|
|
"short_name": "Foo",
|
|
|
|
"qualified_name": "Foo",
|
|
|
|
"definition_spelling": "3:8-3:11",
|
|
|
|
"definition_extent": "3:1-5:2",
|
|
|
|
"funcs": [1],
|
|
|
|
"uses": ["*3:8-3:11", "4:3-4:6", "7:6-7:9", "7:1-7:4"]
|
|
|
|
}],
|
|
|
|
"funcs": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@F@called#",
|
|
|
|
"short_name": "called",
|
|
|
|
"qualified_name": "called",
|
2017-04-14 05:46:45 +00:00
|
|
|
"hover": "void ()",
|
2017-04-08 18:36:32 +00:00
|
|
|
"definition_spelling": "1:6-1:12",
|
|
|
|
"definition_extent": "1:1-1:17",
|
2017-04-13 07:47:47 +00:00
|
|
|
"callers": ["1@8:3-8:9"]
|
2017-04-08 18:36:32 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
|
|
|
"usr": "c:@S@Foo@F@Foo#",
|
|
|
|
"short_name": "Foo",
|
|
|
|
"qualified_name": "Foo::Foo",
|
2017-04-14 05:46:45 +00:00
|
|
|
"hover": "void ()",
|
2017-04-08 18:36:32 +00:00
|
|
|
"declarations": ["4:3-4:6"],
|
|
|
|
"definition_spelling": "7:6-7:9",
|
|
|
|
"definition_extent": "7:1-9:2",
|
|
|
|
"declaring_type": 0,
|
2017-04-13 07:47:47 +00:00
|
|
|
"callees": ["0@8:3-8:9"]
|
2017-04-08 18:36:32 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|