2017-04-03 01:34:15 +00:00
|
|
|
#include "header.h"
|
|
|
|
|
2017-04-08 22:54:36 +00:00
|
|
|
void Impl() {
|
|
|
|
Foo1<int>();
|
2017-04-03 01:34:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2017-04-08 22:54:36 +00:00
|
|
|
OUTPUT: header.h
|
|
|
|
{
|
2017-12-12 05:15:37 +00:00
|
|
|
"includes": [],
|
|
|
|
"skipped_by_preprocessor": [],
|
2017-04-08 22:54:36 +00:00
|
|
|
"types": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@S@Base",
|
|
|
|
"short_name": "Base",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "Base",
|
2017-04-11 05:26:27 +00:00
|
|
|
"definition_spelling": "3:8-3:12",
|
|
|
|
"definition_extent": "3:1-3:15",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
2017-04-08 22:54:36 +00:00
|
|
|
"derived": [1],
|
2017-12-12 05:15:37 +00:00
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["3:8-3:12", "5:26-5:30"]
|
2017-04-08 22:54:36 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
|
|
|
"usr": "c:@S@SameFileDerived",
|
|
|
|
"short_name": "SameFileDerived",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "SameFileDerived",
|
2017-04-11 05:26:27 +00:00
|
|
|
"definition_spelling": "5:8-5:23",
|
|
|
|
"definition_extent": "5:1-5:33",
|
2017-04-08 22:54:36 +00:00
|
|
|
"parents": [0],
|
2017-12-12 05:15:37 +00:00
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["5:8-5:23", "7:14-7:29"]
|
2017-04-08 22:54:36 +00:00
|
|
|
}, {
|
|
|
|
"id": 2,
|
|
|
|
"usr": "c:@Foo0",
|
|
|
|
"short_name": "Foo0",
|
2017-12-19 05:20:00 +00:00
|
|
|
"detailed_name": "Foo0",
|
|
|
|
"hover": "using Foo0 = SameFileDerived",
|
2017-04-11 05:26:27 +00:00
|
|
|
"definition_spelling": "7:7-7:11",
|
|
|
|
"definition_extent": "7:1-7:29",
|
2017-04-08 22:54:36 +00:00
|
|
|
"alias_of": 1,
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["7:7-7:11"]
|
2017-04-08 22:54:36 +00:00
|
|
|
}, {
|
|
|
|
"id": 3,
|
|
|
|
"usr": "c:@ST>1#T@Foo2",
|
|
|
|
"short_name": "Foo2",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "Foo2",
|
2017-04-11 05:26:27 +00:00
|
|
|
"definition_spelling": "13:8-13:12",
|
|
|
|
"definition_extent": "13:1-13:15",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["13:8-13:12"]
|
2017-04-08 22:54:36 +00:00
|
|
|
}, {
|
|
|
|
"id": 4,
|
|
|
|
"usr": "c:@E@Foo3",
|
|
|
|
"short_name": "Foo3",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "Foo3",
|
2017-04-11 05:26:27 +00:00
|
|
|
"definition_spelling": "15:6-15:10",
|
|
|
|
"definition_extent": "15:1-15:22",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
2017-04-08 22:54:36 +00:00
|
|
|
"vars": [0, 1, 2],
|
2017-12-12 05:15:37 +00:00
|
|
|
"instances": [],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["15:6-15:10"]
|
2017-04-08 22:54:36 +00:00
|
|
|
}],
|
|
|
|
"funcs": [{
|
|
|
|
"id": 0,
|
2017-12-02 01:07:03 +00:00
|
|
|
"is_operator": false,
|
2017-04-08 22:54:36 +00:00
|
|
|
"usr": "c:@FT@>1#TFoo1#v#",
|
|
|
|
"short_name": "Foo1",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "void Foo1()",
|
2017-12-12 05:15:37 +00:00
|
|
|
"declarations": [],
|
2017-04-11 05:26:27 +00:00
|
|
|
"definition_spelling": "10:6-10:10",
|
2017-12-12 05:15:37 +00:00
|
|
|
"definition_extent": "10:1-10:15",
|
2017-12-19 06:15:46 +00:00
|
|
|
"base": [],
|
2017-12-12 05:15:37 +00:00
|
|
|
"derived": [],
|
|
|
|
"locals": [],
|
|
|
|
"callers": [],
|
|
|
|
"callees": []
|
2017-04-08 22:54:36 +00:00
|
|
|
}],
|
|
|
|
"vars": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@E@Foo3@A",
|
|
|
|
"short_name": "A",
|
2017-12-23 15:36:08 +00:00
|
|
|
"detailed_name": "Foo3::A",
|
2017-04-11 05:26:27 +00:00
|
|
|
"definition_spelling": "15:13-15:14",
|
|
|
|
"definition_extent": "15:13-15:14",
|
2017-04-08 22:54:36 +00:00
|
|
|
"variable_type": 4,
|
|
|
|
"declaring_type": 4,
|
2017-12-24 00:49:11 +00:00
|
|
|
"cls": 4,
|
2017-04-11 05:26:27 +00:00
|
|
|
"uses": ["15:13-15:14"]
|
2017-04-08 22:54:36 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
|
|
|
"usr": "c:@E@Foo3@B",
|
|
|
|
"short_name": "B",
|
2017-12-23 15:36:08 +00:00
|
|
|
"detailed_name": "Foo3::B",
|
2017-04-11 05:26:27 +00:00
|
|
|
"definition_spelling": "15:16-15:17",
|
|
|
|
"definition_extent": "15:16-15:17",
|
2017-04-08 22:54:36 +00:00
|
|
|
"variable_type": 4,
|
|
|
|
"declaring_type": 4,
|
2017-12-24 00:49:11 +00:00
|
|
|
"cls": 4,
|
2017-04-11 05:26:27 +00:00
|
|
|
"uses": ["15:16-15:17"]
|
2017-04-08 22:54:36 +00:00
|
|
|
}, {
|
|
|
|
"id": 2,
|
|
|
|
"usr": "c:@E@Foo3@C",
|
|
|
|
"short_name": "C",
|
2017-12-23 15:36:08 +00:00
|
|
|
"detailed_name": "Foo3::C",
|
2017-04-11 05:26:27 +00:00
|
|
|
"definition_spelling": "15:19-15:20",
|
|
|
|
"definition_extent": "15:19-15:20",
|
2017-04-08 22:54:36 +00:00
|
|
|
"variable_type": 4,
|
|
|
|
"declaring_type": 4,
|
2017-12-24 00:49:11 +00:00
|
|
|
"cls": 4,
|
2017-04-11 05:26:27 +00:00
|
|
|
"uses": ["15:19-15:20"]
|
2017-04-08 22:54:36 +00:00
|
|
|
}, {
|
|
|
|
"id": 3,
|
|
|
|
"usr": "c:@Foo4",
|
|
|
|
"short_name": "Foo4",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "int Foo4",
|
2017-04-11 05:26:27 +00:00
|
|
|
"definition_spelling": "17:5-17:9",
|
|
|
|
"definition_extent": "17:1-17:9",
|
2017-12-24 00:49:11 +00:00
|
|
|
"cls": 3,
|
2017-04-11 05:26:27 +00:00
|
|
|
"uses": ["17:5-17:9"]
|
2017-04-08 22:54:36 +00:00
|
|
|
}, {
|
|
|
|
"id": 4,
|
|
|
|
"usr": "c:header.h@Foo5",
|
|
|
|
"short_name": "Foo5",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "int Foo5",
|
2017-04-11 05:26:27 +00:00
|
|
|
"definition_spelling": "18:12-18:16",
|
|
|
|
"definition_extent": "18:1-18:16",
|
2017-12-24 00:49:11 +00:00
|
|
|
"cls": 3,
|
2017-04-11 05:26:27 +00:00
|
|
|
"uses": ["18:12-18:16"]
|
2017-04-08 22:54:36 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
OUTPUT: impl.cc
|
|
|
|
{
|
2017-05-21 03:46:15 +00:00
|
|
|
"includes": [{
|
|
|
|
"line": 1,
|
2017-11-30 03:21:23 +00:00
|
|
|
"resolved_path": "&header.h"
|
2017-05-21 03:46:15 +00:00
|
|
|
}],
|
2017-12-12 05:15:37 +00:00
|
|
|
"skipped_by_preprocessor": [],
|
|
|
|
"types": [],
|
2017-04-08 22:54:36 +00:00
|
|
|
"funcs": [{
|
|
|
|
"id": 0,
|
2017-12-02 01:07:03 +00:00
|
|
|
"is_operator": false,
|
2017-04-08 22:54:36 +00:00
|
|
|
"usr": "c:@F@Impl#",
|
|
|
|
"short_name": "Impl",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "void Impl()",
|
2017-12-12 05:15:37 +00:00
|
|
|
"declarations": [],
|
2017-04-08 22:54:36 +00:00
|
|
|
"definition_spelling": "3:6-3:10",
|
|
|
|
"definition_extent": "3:1-5:2",
|
2017-12-19 06:15:46 +00:00
|
|
|
"base": [],
|
2017-12-12 05:15:37 +00:00
|
|
|
"derived": [],
|
|
|
|
"locals": [],
|
|
|
|
"callers": [],
|
2017-04-13 07:47:47 +00:00
|
|
|
"callees": ["1@4:3-4:7"]
|
2017-04-08 22:54:36 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
2017-12-02 01:07:03 +00:00
|
|
|
"is_operator": false,
|
2017-04-08 22:54:36 +00:00
|
|
|
"usr": "c:@FT@>1#TFoo1#v#",
|
2017-12-12 05:06:27 +00:00
|
|
|
"short_name": "",
|
|
|
|
"detailed_name": "",
|
2017-12-12 05:15:37 +00:00
|
|
|
"declarations": [],
|
2017-12-19 06:15:46 +00:00
|
|
|
"base": [],
|
2017-12-12 05:15:37 +00:00
|
|
|
"derived": [],
|
|
|
|
"locals": [],
|
|
|
|
"callers": ["0@4:3-4:7"],
|
|
|
|
"callees": []
|
|
|
|
}],
|
|
|
|
"vars": []
|
2017-04-08 22:54:36 +00:00
|
|
|
}
|
2017-04-03 01:34:15 +00:00
|
|
|
*/
|