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",
|
|
|
|
"qualified_name": "Foo",
|
2017-02-21 04:05:03 +00:00
|
|
|
"definition": "1:1:7",
|
2017-02-21 05:16:45 +00:00
|
|
|
"funcs": [0, 1, 2],
|
2017-02-21 05:55:48 +00:00
|
|
|
"uses": ["*1:1:7", "1:7:6"]
|
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",
|
|
|
|
"qualified_name": "Foo::declonly",
|
2017-02-25 06:08:14 +00:00
|
|
|
"declarations": ["1:2:8"],
|
2017-02-21 05:16:45 +00:00
|
|
|
"declaring_type": 0,
|
2017-02-21 05:34:46 +00:00
|
|
|
"uses": ["1:2:8"]
|
2017-02-20 07:51:31 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
|
|
|
"usr": "c:@S@Foo@F@purevirtual#",
|
|
|
|
"short_name": "purevirtual",
|
|
|
|
"qualified_name": "Foo::purevirtual",
|
2017-02-25 06:08:14 +00:00
|
|
|
"declarations": ["1:3:16"],
|
2017-02-20 07:51:31 +00:00
|
|
|
"declaring_type": 0,
|
2017-02-21 05:34:46 +00:00
|
|
|
"uses": ["1:3:16"]
|
2017-02-20 07:51:31 +00:00
|
|
|
}, {
|
|
|
|
"id": 2,
|
|
|
|
"usr": "c:@S@Foo@F@def#",
|
|
|
|
"short_name": "def",
|
|
|
|
"qualified_name": "Foo::def",
|
2017-02-25 06:08:14 +00:00
|
|
|
"declarations": ["1:4:8"],
|
2017-02-21 04:05:03 +00:00
|
|
|
"definition": "1:7:11",
|
2017-02-20 07:51:31 +00:00
|
|
|
"declaring_type": 0,
|
2017-02-21 05:34:46 +00:00
|
|
|
"uses": ["1:4:8", "1:7:11"]
|
2017-03-08 08:09:15 +00:00
|
|
|
}]
|
2017-02-20 07:51:31 +00:00
|
|
|
}
|
2017-03-07 18:17:49 +00:00
|
|
|
*/
|