2018-03-31 03:16:33 +00:00
|
|
|
#include "header.h"
|
|
|
|
|
|
|
|
void Impl() {
|
|
|
|
Foo1<int>();
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT: header.h
|
|
|
|
{
|
|
|
|
"includes": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [{
|
|
|
|
"usr": 11650481237659640387,
|
|
|
|
"detailed_name": "void Foo1()",
|
|
|
|
"qual_name_offset": 5,
|
|
|
|
"short_name": "Foo1",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "10:6-10:10|10:1-10:15|2|-1",
|
|
|
|
"bases": [],
|
|
|
|
"vars": [],
|
|
|
|
"callees": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"kind": 12,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 0,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": []
|
2018-04-30 04:49:03 +00:00
|
|
|
}],
|
|
|
|
"usr2type": [{
|
2018-07-07 23:56:47 +00:00
|
|
|
"usr": 53,
|
2018-04-30 04:49:03 +00:00
|
|
|
"detailed_name": "",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "",
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"funcs": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"types": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"alias_of": 0,
|
|
|
|
"kind": 0,
|
|
|
|
"parent_kind": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
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,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "struct Foo2 {}",
|
|
|
|
"qual_name_offset": 7,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "Foo2",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "13:8-13:12|13:1-13:15|2|-1",
|
2018-04-30 04:49:03 +00:00
|
|
|
"bases": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"funcs": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"types": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"alias_of": 0,
|
|
|
|
"kind": 23,
|
|
|
|
"parent_kind": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"instances": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
|
|
|
"usr": 619345544228965342,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "using Foo0 = SameFileDerived",
|
|
|
|
"qual_name_offset": 6,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Foo0",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "7:7-7:11|7:1-7:29|2|-1",
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"funcs": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"types": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"alias_of": 16750616846959666305,
|
|
|
|
"kind": 252,
|
|
|
|
"parent_kind": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"instances": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 4481210672785600703,
|
2018-08-30 04:20:27 +00:00
|
|
|
"detailed_name": "enum Foo3 {}",
|
2018-07-07 23:56:47 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "Foo3",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "15:6-15:10|15:1-15:22|2|-1",
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"funcs": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"types": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"alias_of": 0,
|
|
|
|
"kind": 10,
|
|
|
|
"parent_kind": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"instances": [],
|
|
|
|
"uses": []
|
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 8420119006782424779,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "struct Base {}",
|
|
|
|
"qual_name_offset": 7,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "Base",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "3:8-3:12|3:1-3:15|2|-1",
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"funcs": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"types": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"alias_of": 0,
|
|
|
|
"kind": 23,
|
|
|
|
"parent_kind": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"derived": [16750616846959666305],
|
2018-03-31 03:16:33 +00:00
|
|
|
"instances": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": ["5:26-5:30|2052|-1"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 16750616846959666305,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "struct SameFileDerived : Base {}",
|
|
|
|
"qual_name_offset": 7,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "SameFileDerived",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "5:8-5:23|5:1-5:33|2|-1",
|
2018-04-30 04:49:03 +00:00
|
|
|
"bases": [8420119006782424779],
|
2018-03-31 03:16:33 +00:00
|
|
|
"funcs": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"types": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"alias_of": 0,
|
|
|
|
"kind": 23,
|
|
|
|
"parent_kind": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": ["7:14-7:29|4|-1"]
|
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-10-05 06:31:59 +00:00
|
|
|
"spell": "17:5-17:9|17:1-17:9|2|-1",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 53,
|
2018-04-30 04:49:03 +00:00
|
|
|
"kind": 13,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 0,
|
|
|
|
"storage": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"uses": []
|
2018-04-30 04:49:03 +00:00
|
|
|
}, {
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 6141718166919284735,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "A",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "A",
|
2018-07-07 23:56:47 +00:00
|
|
|
"hover": "A = 0",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "15:13-15:14|15:13-15:14|1026|-1",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 22,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 10,
|
|
|
|
"storage": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
|
|
|
"usr": 7285646116511901840,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "C",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "C",
|
2018-07-07 23:56:47 +00:00
|
|
|
"hover": "C = 2",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "15:19-15:20|15:19-15:20|1026|-1",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 22,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 10,
|
|
|
|
"storage": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
|
|
|
"usr": 8395885290297540138,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "static int Foo5",
|
|
|
|
"qual_name_offset": 11,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Foo5",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "18:12-18:16|18:1-18:16|2|-1",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 53,
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 13,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 0,
|
|
|
|
"storage": 2,
|
|
|
|
"declarations": [],
|
|
|
|
"uses": []
|
2018-04-30 04:49:03 +00:00
|
|
|
}, {
|
|
|
|
"usr": 17716334512218775320,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "B",
|
2018-04-30 04:49:03 +00:00
|
|
|
"qual_name_offset": 0,
|
|
|
|
"short_name": "B",
|
2018-07-07 23:56:47 +00:00
|
|
|
"hover": "B = 1",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "15:16-15:17|15:16-15:17|1026|-1",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"kind": 22,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 10,
|
|
|
|
"storage": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
OUTPUT: impl.cc
|
|
|
|
{
|
2018-07-08 07:46:53 +00:00
|
|
|
"includes": [{
|
|
|
|
"line": 0,
|
|
|
|
"resolved_path": "&header.h"
|
|
|
|
}],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
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",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "3:6-3:10|3:1-5:2|2|-1",
|
|
|
|
"bases": [],
|
|
|
|
"vars": [],
|
|
|
|
"callees": ["4:3-4:7|11650481237659640387|3|16420"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 12,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 0,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
|
|
|
"usr": 11650481237659640387,
|
2018-09-23 23:15:10 +00:00
|
|
|
"detailed_name": "void Foo1()",
|
|
|
|
"qual_name_offset": 5,
|
2018-07-07 23:56:47 +00:00
|
|
|
"short_name": "Foo1",
|
2018-10-05 06:31:59 +00:00
|
|
|
"bases": [],
|
|
|
|
"vars": [],
|
|
|
|
"callees": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"kind": 12,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"storage": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": ["4:3-4:7|16420|-1"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2type": [],
|
|
|
|
"usr2var": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}
|
|
|
|
*/
|