| 1 |
#define A 5 |
| 2 |
#define DISALLOW(type) type(type&&) = delete; |
| 3 |
|
| 4 |
struct Foo { |
| 5 |
DISALLOW(Foo); |
| 6 |
}; |
| 7 |
|
| 8 |
int x = A; |
| 9 |
|
| 10 |
/* |
| 11 |
OUTPUT: |
| 12 |
{ |
| 13 |
"includes": [], |
| 14 |
"skipped_ranges": [], |
| 15 |
"usr2func": [{ |
| 16 |
"usr": 13788753348312146871, |
| 17 |
"detailed_name": "Foo::Foo(Foo &&) = delete", |
| 18 |
"qual_name_offset": 0, |
| 19 |
"short_name": "Foo", |
| 20 |
"spell": "5:12-5:15|5:3-5:11|1026|-1", |
| 21 |
"bases": [], |
| 22 |
"vars": [], |
| 23 |
"callees": [], |
| 24 |
"kind": 9, |
| 25 |
"parent_kind": 23, |
| 26 |
"storage": 0, |
| 27 |
"declarations": [], |
| 28 |
"derived": [], |
| 29 |
"uses": ["5:12-5:15|64|0"] |
| 30 |
}], |
| 31 |
"usr2type": [{ |
| 32 |
"usr": 452, |
| 33 |
"detailed_name": "", |
| 34 |
"qual_name_offset": 0, |
| 35 |
"short_name": "", |
| 36 |
"bases": [], |
| 37 |
"funcs": [], |
| 38 |
"types": [], |
| 39 |
"vars": [], |
| 40 |
"alias_of": 0, |
| 41 |
"kind": 0, |
| 42 |
"parent_kind": 0, |
| 43 |
"declarations": [], |
| 44 |
"derived": [], |
| 45 |
"instances": [10677751717622394455], |
| 46 |
"uses": [] |
| 47 |
}, { |
| 48 |
"usr": 15041163540773201510, |
| 49 |
"detailed_name": "struct Foo {}", |
| 50 |
"qual_name_offset": 7, |
| 51 |
"short_name": "Foo", |
| 52 |
"spell": "4:8-4:11|4:1-6:2|2|-1", |
| 53 |
"bases": [], |
| 54 |
"funcs": [13788753348312146871], |
| 55 |
"types": [], |
| 56 |
"vars": [], |
| 57 |
"alias_of": 0, |
| 58 |
"kind": 23, |
| 59 |
"parent_kind": 1, |
| 60 |
"declarations": [], |
| 61 |
"derived": [], |
| 62 |
"instances": [], |
| 63 |
"uses": ["5:12-5:15|4|-1", "5:12-5:15|64|0"] |
| 64 |
}], |
| 65 |
"usr2var": [{ |
| 66 |
"usr": 1569772797058982873, |
| 67 |
"detailed_name": "A", |
| 68 |
"qual_name_offset": 0, |
| 69 |
"short_name": "A", |
| 70 |
"hover": "#define A 5", |
| 71 |
"spell": "1:9-1:10|1:9-1:12|2|-1", |
| 72 |
"type": 0, |
| 73 |
"kind": 255, |
| 74 |
"parent_kind": 1, |
| 75 |
"storage": 0, |
| 76 |
"declarations": [], |
| 77 |
"uses": ["8:9-8:10|64|-1"] |
| 78 |
}, { |
| 79 |
"usr": 4904139678698066671, |
| 80 |
"detailed_name": "DISALLOW", |
| 81 |
"qual_name_offset": 0, |
| 82 |
"short_name": "DISALLOW", |
| 83 |
"hover": "#define DISALLOW(type) type(type&&) = delete;", |
| 84 |
"spell": "2:9-2:17|2:9-2:46|2|-1", |
| 85 |
"type": 0, |
| 86 |
"kind": 255, |
| 87 |
"parent_kind": 1, |
| 88 |
"storage": 0, |
| 89 |
"declarations": [], |
| 90 |
"uses": ["5:3-5:11|64|-1"] |
| 91 |
}, { |
| 92 |
"usr": 10677751717622394455, |
| 93 |
"detailed_name": "int x", |
| 94 |
"qual_name_offset": 4, |
| 95 |
"short_name": "x", |
| 96 |
"hover": "int x = A", |
| 97 |
"spell": "8:5-8:6|8:1-8:10|2|-1", |
| 98 |
"type": 452, |
| 99 |
"kind": 13, |
| 100 |
"parent_kind": 1, |
| 101 |
"storage": 0, |
| 102 |
"declarations": [], |
| 103 |
"uses": [] |
| 104 |
}] |
| 105 |
} |
| 106 |
*/ |