2017-02-20 07:51:31 +00:00
|
|
|
class Foo {
|
|
|
|
void declonly();
|
|
|
|
virtual void purevirtual() = 0;
|
|
|
|
void def();
|
|
|
|
};
|
|
|
|
|
|
|
|
void Foo::def() {}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"types": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@S@Foo",
|
|
|
|
"short_name": "Foo",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "Foo",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "1:7-1:10",
|
|
|
|
"definition_extent": "1:1-5:2",
|
2017-02-21 05:16:45 +00:00
|
|
|
"funcs": [0, 1, 2],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["1:7-1:10", "7:6-7:9"]
|
2017-02-20 07:51:31 +00:00
|
|
|
}],
|
2017-03-07 18:17:49 +00:00
|
|
|
"funcs": [{
|
2017-02-20 07:51:31 +00:00
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@S@Foo@F@declonly#",
|
|
|
|
"short_name": "declonly",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "void Foo::declonly()",
|
2017-11-07 09:00:59 +00:00
|
|
|
"is_constructor": false,
|
2017-05-27 21:09:20 +00:00
|
|
|
"declarations": [{
|
2017-05-28 01:53:22 +00:00
|
|
|
"spelling": "2:8-2:16",
|
|
|
|
"extent": "2:3-2:18",
|
|
|
|
"content": "void declonly()"
|
2017-05-27 21:09:20 +00:00
|
|
|
}],
|
2017-04-13 07:47:47 +00:00
|
|
|
"declaring_type": 0
|
2017-02-20 07:51:31 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
|
|
|
"usr": "c:@S@Foo@F@purevirtual#",
|
|
|
|
"short_name": "purevirtual",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "void Foo::purevirtual()",
|
2017-11-07 09:00:59 +00:00
|
|
|
"is_constructor": false,
|
2017-05-27 21:09:20 +00:00
|
|
|
"declarations": [{
|
2017-05-28 01:53:22 +00:00
|
|
|
"spelling": "3:16-3:27",
|
|
|
|
"extent": "3:3-3:33",
|
|
|
|
"content": "virtual void purevirtual() = 0"
|
2017-05-27 21:09:20 +00:00
|
|
|
}],
|
2017-04-13 07:47:47 +00:00
|
|
|
"declaring_type": 0
|
2017-02-20 07:51:31 +00:00
|
|
|
}, {
|
|
|
|
"id": 2,
|
|
|
|
"usr": "c:@S@Foo@F@def#",
|
|
|
|
"short_name": "def",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "void Foo::def()",
|
2017-11-07 09:00:59 +00:00
|
|
|
"is_constructor": false,
|
2017-05-27 21:09:20 +00:00
|
|
|
"declarations": [{
|
2017-05-28 01:53:22 +00:00
|
|
|
"spelling": "4:8-4:11",
|
|
|
|
"extent": "4:3-4:13",
|
|
|
|
"content": "void def()"
|
2017-05-27 21:09:20 +00:00
|
|
|
}],
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "7:11-7:14",
|
|
|
|
"definition_extent": "7:1-7:19",
|
2017-04-13 07:47:47 +00:00
|
|
|
"declaring_type": 0
|
2017-03-08 08:09:15 +00:00
|
|
|
}]
|
2017-02-20 07:51:31 +00:00
|
|
|
}
|
2017-03-07 18:17:49 +00:00
|
|
|
*/
|