2018-03-31 03:16:33 +00:00
|
|
|
#include "header.h"
|
|
|
|
|
|
|
|
void Impl() {
|
|
|
|
Foo1<int>();
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT: header.h
|
|
|
|
{
|
|
|
|
"includes": [],
|
|
|
|
"skipped_by_preprocessor": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [{
|
|
|
|
"usr": 11650481237659640387,
|
|
|
|
"detailed_name": "void Foo1()",
|
|
|
|
"qual_name_offset": 5,
|
|
|
|
"short_name": "Foo1",
|
|
|
|
"kind": 12,
|
|
|
|
"storage": 1,
|
|
|
|
"declarations": [],
|
|
|
|
"spell": "10:6-10:10|0|1|2",
|
|
|
|
"extent": "10:1-10:15|0|1|0",
|
|
|
|
"declaring_type": 0,
|
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
|
|
|
"uses": [],
|
|
|
|
"callees": []
|
|
|
|
}],
|
|
|
|
"usr2type": [{
|
|
|
|
"usr": 17,
|
|
|
|
"detailed_name": "",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "",
|
|
|
|
"kind": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"derived": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [2638219001294786365, 8395885290297540138],
|
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 529393482671181129,
|
|
|
|
"detailed_name": "Foo2",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "Foo2",
|
|
|
|
"kind": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "13:8-13:12|0|1|2",
|
|
|
|
"extent": "13:1-13:15|0|1|0",
|
|
|
|
"alias_of": 0,
|
|
|
|
"bases": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
|
|
|
"usr": 619345544228965342,
|
|
|
|
"detailed_name": "Foo0",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Foo0",
|
|
|
|
"kind": 252,
|
|
|
|
"hover": "using Foo0 = SameFileDerived",
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "7:7-7:11|0|1|2",
|
|
|
|
"extent": "7:1-7:29|0|1|0",
|
|
|
|
"alias_of": 16750616846959666305,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"uses": ["7:7-7:11|0|1|4"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 4481210672785600703,
|
|
|
|
"detailed_name": "Foo3",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "Foo3",
|
|
|
|
"kind": 10,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "15:6-15:10|0|1|2",
|
|
|
|
"extent": "15:1-15:22|0|1|0",
|
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
|
|
|
"uses": []
|
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 8420119006782424779,
|
|
|
|
"detailed_name": "Base",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "Base",
|
|
|
|
"kind": 23,
|
|
|
|
"declarations": ["5:26-5:30|0|1|4"],
|
|
|
|
"spell": "3:8-3:12|0|1|2",
|
|
|
|
"extent": "3:1-3:15|0|1|0",
|
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"derived": [16750616846959666305],
|
2018-03-31 03:16:33 +00:00
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"uses": ["5:26-5:30|0|1|4"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 16750616846959666305,
|
|
|
|
"detailed_name": "SameFileDerived",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "SameFileDerived",
|
|
|
|
"kind": 23,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "5:8-5:23|0|1|2",
|
|
|
|
"extent": "5:1-5:33|0|1|0",
|
|
|
|
"alias_of": 0,
|
|
|
|
"bases": [8420119006782424779],
|
2018-03-31 03:16:33 +00:00
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [],
|
|
|
|
"uses": ["7:14-7:29|0|1|4"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": [{
|
|
|
|
"usr": 2638219001294786365,
|
|
|
|
"detailed_name": "int Foo4",
|
|
|
|
"qual_name_offset": 4,
|
|
|
|
"short_name": "Foo4",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "17:5-17:9|0|1|2",
|
|
|
|
"extent": "17:1-17:9|0|1|0",
|
|
|
|
"type": 17,
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"kind": 13,
|
|
|
|
"storage": 1
|
|
|
|
}, {
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 6141718166919284735,
|
|
|
|
"detailed_name": "Foo3::A",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "A",
|
|
|
|
"hover": "Foo3::A = 0",
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "15:13-15:14|4481210672785600703|2|2",
|
|
|
|
"extent": "15:13-15:14|4481210672785600703|2|0",
|
|
|
|
"type": 4481210672785600703,
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
|
|
|
"kind": 22,
|
|
|
|
"storage": 0
|
|
|
|
}, {
|
|
|
|
"usr": 7285646116511901840,
|
|
|
|
"detailed_name": "Foo3::C",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "C",
|
|
|
|
"hover": "Foo3::C = 2",
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "15:19-15:20|4481210672785600703|2|2",
|
|
|
|
"extent": "15:19-15:20|4481210672785600703|2|0",
|
|
|
|
"type": 4481210672785600703,
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
|
|
|
"kind": 22,
|
|
|
|
"storage": 0
|
|
|
|
}, {
|
|
|
|
"usr": 8395885290297540138,
|
|
|
|
"detailed_name": "int Foo5",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 4,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Foo5",
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "18:12-18:16|0|1|2",
|
|
|
|
"extent": "18:1-18:16|0|1|0",
|
|
|
|
"type": 17,
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
|
|
|
"kind": 13,
|
|
|
|
"storage": 3
|
2018-04-30 04:49:03 +00:00
|
|
|
}, {
|
|
|
|
"usr": 17716334512218775320,
|
|
|
|
"detailed_name": "Foo3::B",
|
|
|
|
"qual_name_offset": 0,
|
|
|
|
"short_name": "B",
|
|
|
|
"hover": "Foo3::B = 1",
|
|
|
|
"declarations": [],
|
|
|
|
"spell": "15:16-15:17|4481210672785600703|2|2",
|
|
|
|
"extent": "15:16-15:17|4481210672785600703|2|0",
|
|
|
|
"type": 4481210672785600703,
|
|
|
|
"uses": [],
|
|
|
|
"kind": 22,
|
|
|
|
"storage": 0
|
2018-03-31 03:16:33 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
OUTPUT: impl.cc
|
|
|
|
{
|
|
|
|
"includes": [{
|
|
|
|
"line": 0,
|
|
|
|
"resolved_path": "&header.h"
|
|
|
|
}],
|
|
|
|
"skipped_by_preprocessor": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [{
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 5817708529036841195,
|
|
|
|
"detailed_name": "void Impl()",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Impl",
|
|
|
|
"kind": 12,
|
|
|
|
"storage": 1,
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "3:6-3:10|0|1|2",
|
|
|
|
"extent": "3:1-5:2|0|1|0",
|
|
|
|
"declaring_type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
|
|
|
"uses": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"callees": ["4:3-4:7|11650481237659640387|3|32"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
|
|
|
"usr": 11650481237659640387,
|
|
|
|
"detailed_name": "",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "",
|
|
|
|
"kind": 0,
|
|
|
|
"storage": 0,
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"declaring_type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"uses": ["4:3-4:7|5817708529036841195|3|32"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"callees": []
|
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2type": [],
|
|
|
|
"usr2var": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}
|
|
|
|
*/
|