| 1 |
#include "header.h" |
| 2 |
|
| 3 |
void Impl() { |
| 4 |
Foo1<int>(); |
| 5 |
} |
| 6 |
|
| 7 |
/* |
| 8 |
OUTPUT: header.h |
| 9 |
{ |
| 10 |
"includes": [], |
| 11 |
"skipped_ranges": [], |
| 12 |
"usr2func": [{ |
| 13 |
"usr": 11650481237659640387, |
| 14 |
"detailed_name": "void Foo1()", |
| 15 |
"qual_name_offset": 5, |
| 16 |
"short_name": "Foo1", |
| 17 |
"spell": "10:6-10:10|10:1-10:15|2|-1", |
| 18 |
"bases": [], |
| 19 |
"vars": [], |
| 20 |
"callees": [], |
| 21 |
"kind": 12, |
| 22 |
"parent_kind": 1, |
| 23 |
"storage": 0, |
| 24 |
"declarations": [], |
| 25 |
"derived": [], |
| 26 |
"uses": [] |
| 27 |
}], |
| 28 |
"usr2type": [{ |
| 29 |
"usr": 452, |
| 30 |
"detailed_name": "", |
| 31 |
"qual_name_offset": 0, |
| 32 |
"short_name": "", |
| 33 |
"bases": [], |
| 34 |
"funcs": [], |
| 35 |
"types": [], |
| 36 |
"vars": [], |
| 37 |
"alias_of": 0, |
| 38 |
"kind": 0, |
| 39 |
"parent_kind": 0, |
| 40 |
"declarations": [], |
| 41 |
"derived": [], |
| 42 |
"instances": [2638219001294786365, 8395885290297540138], |
| 43 |
"uses": [] |
| 44 |
}, { |
| 45 |
"usr": 529393482671181129, |
| 46 |
"detailed_name": "struct Foo2 {}", |
| 47 |
"qual_name_offset": 7, |
| 48 |
"short_name": "Foo2", |
| 49 |
"spell": "13:8-13:12|13:1-13:15|2|-1", |
| 50 |
"bases": [], |
| 51 |
"funcs": [], |
| 52 |
"types": [873975420211778410], |
| 53 |
"vars": [], |
| 54 |
"alias_of": 0, |
| 55 |
"kind": 23, |
| 56 |
"parent_kind": 1, |
| 57 |
"declarations": [], |
| 58 |
"derived": [], |
| 59 |
"instances": [], |
| 60 |
"uses": [] |
| 61 |
}, { |
| 62 |
"usr": 619345544228965342, |
| 63 |
"detailed_name": "using Foo0 = SameFileDerived", |
| 64 |
"qual_name_offset": 6, |
| 65 |
"short_name": "Foo0", |
| 66 |
"spell": "7:7-7:11|7:1-7:29|2|-1", |
| 67 |
"bases": [], |
| 68 |
"funcs": [], |
| 69 |
"types": [], |
| 70 |
"vars": [], |
| 71 |
"alias_of": 16750616846959666305, |
| 72 |
"kind": 252, |
| 73 |
"parent_kind": 1, |
| 74 |
"declarations": [], |
| 75 |
"derived": [], |
| 76 |
"instances": [], |
| 77 |
"uses": [] |
| 78 |
}, { |
| 79 |
"usr": 873975420211778410, |
| 80 |
"detailed_name": "T", |
| 81 |
"qual_name_offset": 0, |
| 82 |
"short_name": "", |
| 83 |
"bases": [], |
| 84 |
"funcs": [], |
| 85 |
"types": [], |
| 86 |
"vars": [], |
| 87 |
"alias_of": 0, |
| 88 |
"kind": 26, |
| 89 |
"parent_kind": 0, |
| 90 |
"declarations": ["12:20-12:21|12:11-12:21|1025|-1"], |
| 91 |
"derived": [], |
| 92 |
"instances": [], |
| 93 |
"uses": [] |
| 94 |
}, { |
| 95 |
"usr": 4481210672785600703, |
| 96 |
"detailed_name": "enum Foo3 {}", |
| 97 |
"qual_name_offset": 5, |
| 98 |
"short_name": "Foo3", |
| 99 |
"spell": "15:6-15:10|15:1-15:22|2|-1", |
| 100 |
"bases": [], |
| 101 |
"funcs": [], |
| 102 |
"types": [], |
| 103 |
"vars": [], |
| 104 |
"alias_of": 0, |
| 105 |
"kind": 10, |
| 106 |
"parent_kind": 1, |
| 107 |
"declarations": [], |
| 108 |
"derived": [], |
| 109 |
"instances": [], |
| 110 |
"uses": [] |
| 111 |
}, { |
| 112 |
"usr": 8420119006782424779, |
| 113 |
"detailed_name": "struct Base {}", |
| 114 |
"qual_name_offset": 7, |
| 115 |
"short_name": "Base", |
| 116 |
"spell": "3:8-3:12|3:1-3:15|2|-1", |
| 117 |
"bases": [], |
| 118 |
"funcs": [], |
| 119 |
"types": [], |
| 120 |
"vars": [], |
| 121 |
"alias_of": 0, |
| 122 |
"kind": 23, |
| 123 |
"parent_kind": 1, |
| 124 |
"declarations": [], |
| 125 |
"derived": [16750616846959666305], |
| 126 |
"instances": [], |
| 127 |
"uses": ["5:26-5:30|2052|-1"] |
| 128 |
}, { |
| 129 |
"usr": 11499613911650781751, |
| 130 |
"detailed_name": "T", |
| 131 |
"qual_name_offset": 0, |
| 132 |
"short_name": "", |
| 133 |
"bases": [], |
| 134 |
"funcs": [], |
| 135 |
"types": [], |
| 136 |
"vars": [], |
| 137 |
"alias_of": 0, |
| 138 |
"kind": 26, |
| 139 |
"parent_kind": 0, |
| 140 |
"declarations": ["9:20-9:21|9:11-9:21|1|-1"], |
| 141 |
"derived": [], |
| 142 |
"instances": [], |
| 143 |
"uses": [] |
| 144 |
}, { |
| 145 |
"usr": 16750616846959666305, |
| 146 |
"detailed_name": "struct SameFileDerived : Base {}", |
| 147 |
"qual_name_offset": 7, |
| 148 |
"short_name": "SameFileDerived", |
| 149 |
"spell": "5:8-5:23|5:1-5:33|2|-1", |
| 150 |
"bases": [8420119006782424779], |
| 151 |
"funcs": [], |
| 152 |
"types": [], |
| 153 |
"vars": [], |
| 154 |
"alias_of": 0, |
| 155 |
"kind": 23, |
| 156 |
"parent_kind": 1, |
| 157 |
"declarations": [], |
| 158 |
"derived": [], |
| 159 |
"instances": [], |
| 160 |
"uses": ["7:14-7:29|4|-1"] |
| 161 |
}], |
| 162 |
"usr2var": [{ |
| 163 |
"usr": 2638219001294786365, |
| 164 |
"detailed_name": "int Foo4", |
| 165 |
"qual_name_offset": 4, |
| 166 |
"short_name": "Foo4", |
| 167 |
"spell": "17:5-17:9|17:1-17:9|2|-1", |
| 168 |
"type": 452, |
| 169 |
"kind": 13, |
| 170 |
"parent_kind": 1, |
| 171 |
"storage": 0, |
| 172 |
"declarations": [], |
| 173 |
"uses": [] |
| 174 |
}, { |
| 175 |
"usr": 6141718166919284735, |
| 176 |
"detailed_name": "A", |
| 177 |
"qual_name_offset": 0, |
| 178 |
"short_name": "A", |
| 179 |
"hover": "A = 0", |
| 180 |
"spell": "15:13-15:14|15:13-15:14|1026|-1", |
| 181 |
"type": 4481210672785600703, |
| 182 |
"kind": 22, |
| 183 |
"parent_kind": 1, |
| 184 |
"storage": 0, |
| 185 |
"declarations": [], |
| 186 |
"uses": [] |
| 187 |
}, { |
| 188 |
"usr": 7285646116511901840, |
| 189 |
"detailed_name": "C", |
| 190 |
"qual_name_offset": 0, |
| 191 |
"short_name": "C", |
| 192 |
"hover": "C = 2", |
| 193 |
"spell": "15:19-15:20|15:19-15:20|1026|-1", |
| 194 |
"type": 4481210672785600703, |
| 195 |
"kind": 22, |
| 196 |
"parent_kind": 1, |
| 197 |
"storage": 0, |
| 198 |
"declarations": [], |
| 199 |
"uses": [] |
| 200 |
}, { |
| 201 |
"usr": 8395885290297540138, |
| 202 |
"detailed_name": "static int Foo5", |
| 203 |
"qual_name_offset": 11, |
| 204 |
"short_name": "Foo5", |
| 205 |
"spell": "18:12-18:16|18:1-18:16|2|-1", |
| 206 |
"type": 452, |
| 207 |
"kind": 13, |
| 208 |
"parent_kind": 1, |
| 209 |
"storage": 2, |
| 210 |
"declarations": [], |
| 211 |
"uses": [] |
| 212 |
}, { |
| 213 |
"usr": 17716334512218775320, |
| 214 |
"detailed_name": "B", |
| 215 |
"qual_name_offset": 0, |
| 216 |
"short_name": "B", |
| 217 |
"hover": "B = 1", |
| 218 |
"spell": "15:16-15:17|15:16-15:17|1026|-1", |
| 219 |
"type": 4481210672785600703, |
| 220 |
"kind": 22, |
| 221 |
"parent_kind": 1, |
| 222 |
"storage": 0, |
| 223 |
"declarations": [], |
| 224 |
"uses": [] |
| 225 |
}] |
| 226 |
} |
| 227 |
OUTPUT: impl.cc |
| 228 |
{ |
| 229 |
"includes": [{ |
| 230 |
"line": 0, |
| 231 |
"resolved_path": "&header.h" |
| 232 |
}], |
| 233 |
"skipped_ranges": [], |
| 234 |
"usr2func": [{ |
| 235 |
"usr": 5817708529036841195, |
| 236 |
"detailed_name": "void Impl()", |
| 237 |
"qual_name_offset": 5, |
| 238 |
"short_name": "Impl", |
| 239 |
"spell": "3:6-3:10|3:1-5:2|2|-1", |
| 240 |
"bases": [], |
| 241 |
"vars": [], |
| 242 |
"callees": ["4:3-4:7|11650481237659640387|3|16420"], |
| 243 |
"kind": 12, |
| 244 |
"parent_kind": 1, |
| 245 |
"storage": 0, |
| 246 |
"declarations": [], |
| 247 |
"derived": [], |
| 248 |
"uses": [] |
| 249 |
}, { |
| 250 |
"usr": 11650481237659640387, |
| 251 |
"detailed_name": "void Foo1()", |
| 252 |
"qual_name_offset": 5, |
| 253 |
"short_name": "Foo1", |
| 254 |
"bases": [], |
| 255 |
"vars": [], |
| 256 |
"callees": [], |
| 257 |
"kind": 12, |
| 258 |
"parent_kind": 0, |
| 259 |
"storage": 0, |
| 260 |
"declarations": [], |
| 261 |
"derived": [], |
| 262 |
"uses": ["4:3-4:7|16420|-1"] |
| 263 |
}], |
| 264 |
"usr2type": [], |
| 265 |
"usr2var": [] |
| 266 |
} |
| 267 |
*/ |