From 792815b60ae0932d66ebf6af4df4a4a6f2c8f45a Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Thu, 28 Dec 2017 08:59:22 -0800 Subject: [PATCH] Update tests --- tests/constructors/make_functions.cc | 24 ++++++++++++++++-------- tests/usage/func_usage_template_func.cc | 16 +++++++++++++++- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/tests/constructors/make_functions.cc b/tests/constructors/make_functions.cc index 86e1970c..06e69bbd 100644 --- a/tests/constructors/make_functions.cc +++ b/tests/constructors/make_functions.cc @@ -130,8 +130,10 @@ OUTPUT: make_functions.cc "types": [{ "id": 0, "usr": "c:make_functions.cc@41", - "short_name": "", - "detailed_name": "", + "short_name": "T", + "detailed_name": "T", + "definition_spelling": "3:20-3:21", + "definition_extent": "3:11-3:21", "parents": [], "derived": [], "types": [], @@ -142,8 +144,10 @@ OUTPUT: make_functions.cc }, { "id": 1, "usr": "c:make_functions.cc@53", - "short_name": "", - "detailed_name": "", + "short_name": "Args", + "detailed_name": "Args", + "definition_spelling": "3:35-3:39", + "definition_extent": "3:23-3:39", "parents": [], "derived": [], "types": [], @@ -154,8 +158,10 @@ OUTPUT: make_functions.cc }, { "id": 2, "usr": "c:make_functions.cc@139", - "short_name": "", - "detailed_name": "", + "short_name": "T", + "detailed_name": "T", + "definition_spelling": "8:20-8:21", + "definition_extent": "8:11-8:21", "parents": [], "derived": [], "types": [], @@ -166,8 +172,10 @@ OUTPUT: make_functions.cc }, { "id": 3, "usr": "c:make_functions.cc@151", - "short_name": "", - "detailed_name": "", + "short_name": "Args", + "detailed_name": "Args", + "definition_spelling": "8:35-8:39", + "definition_extent": "8:23-8:39", "parents": [], "derived": [], "types": [], diff --git a/tests/usage/func_usage_template_func.cc b/tests/usage/func_usage_template_func.cc index aeac20f8..0875d15a 100644 --- a/tests/usage/func_usage_template_func.cc +++ b/tests/usage/func_usage_template_func.cc @@ -11,7 +11,21 @@ OUTPUT: { "includes": [], "skipped_by_preprocessor": [], - "types": [], + "types": [{ + "id": 0, + "usr": "c:func_usage_template_func.cc@9", + "short_name": "T", + "detailed_name": "T", + "definition_spelling": "1:19-1:20", + "definition_extent": "1:10-1:20", + "parents": [], + "derived": [], + "types": [], + "funcs": [], + "vars": [], + "instances": [], + "uses": ["2:13-2:14"] + }], "funcs": [{ "id": 0, "is_operator": false,