| 1 |
namespace hello { |
| 2 |
class Foo { |
| 3 |
void foo() {} |
| 4 |
}; |
| 5 |
} |
| 6 |
|
| 7 |
/* |
| 8 |
OUTPUT: |
| 9 |
{ |
| 10 |
"includes": [], |
| 11 |
"skipped_ranges": [], |
| 12 |
"usr2func": [{ |
| 13 |
"usr": 10487325150128053272, |
| 14 |
"detailed_name": "void hello::Foo::foo()", |
| 15 |
"qual_name_offset": 5, |
| 16 |
"short_name": "foo", |
| 17 |
"spell": "3:8-3:11|3:3-3:16|1026|-1", |
| 18 |
"bases": [], |
| 19 |
"vars": [], |
| 20 |
"callees": [], |
| 21 |
"kind": 6, |
| 22 |
"parent_kind": 5, |
| 23 |
"storage": 0, |
| 24 |
"declarations": [], |
| 25 |
"derived": [], |
| 26 |
"uses": [] |
| 27 |
}], |
| 28 |
"usr2type": [{ |
| 29 |
"usr": 2029211996748007610, |
| 30 |
"detailed_name": "namespace hello {}", |
| 31 |
"qual_name_offset": 10, |
| 32 |
"short_name": "hello", |
| 33 |
"bases": [], |
| 34 |
"funcs": [], |
| 35 |
"types": [4508214972876735896], |
| 36 |
"vars": [], |
| 37 |
"alias_of": 0, |
| 38 |
"kind": 3, |
| 39 |
"parent_kind": 0, |
| 40 |
"declarations": ["1:11-1:16|1:1-5:2|1|-1"], |
| 41 |
"derived": [], |
| 42 |
"instances": [], |
| 43 |
"uses": [] |
| 44 |
}, { |
| 45 |
"usr": 4508214972876735896, |
| 46 |
"detailed_name": "class hello::Foo {}", |
| 47 |
"qual_name_offset": 6, |
| 48 |
"short_name": "Foo", |
| 49 |
"spell": "2:7-2:10|2:1-4:2|1026|-1", |
| 50 |
"bases": [], |
| 51 |
"funcs": [10487325150128053272], |
| 52 |
"types": [], |
| 53 |
"vars": [], |
| 54 |
"alias_of": 0, |
| 55 |
"kind": 5, |
| 56 |
"parent_kind": 3, |
| 57 |
"declarations": [], |
| 58 |
"derived": [], |
| 59 |
"instances": [], |
| 60 |
"uses": [] |
| 61 |
}], |
| 62 |
"usr2var": [] |
| 63 |
} |
| 64 |
*/ |