From a97abff5695adbbad37470da32ae593cde7243bb Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Fri, 22 Dec 2017 08:26:27 -0800 Subject: [PATCH] Update tests --- tests/namespaces/anonymous_function.cc | 4 ++-- tests/objective-c/class.m | 18 +++++++++--------- tests/types/anonymous_struct.cc | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/namespaces/anonymous_function.cc b/tests/namespaces/anonymous_function.cc index 711401e8..d15c829b 100644 --- a/tests/namespaces/anonymous_function.cc +++ b/tests/namespaces/anonymous_function.cc @@ -13,8 +13,8 @@ OUTPUT: "is_operator": false, "usr": "c:anonymous_function.cc@aN@F@foo#", "short_name": "foo", - "detailed_name": "void ::foo()", - "hover": "void ::foo()", + "detailed_name": "void (anon)::foo()", + "hover": "void (anon)::foo()", "declarations": [{ "spelling": "2:6-2:9", "extent": "2:1-2:11", diff --git a/tests/objective-c/class.m b/tests/objective-c/class.m index 252179c3..0640476c 100644 --- a/tests/objective-c/class.m +++ b/tests/objective-c/class.m @@ -41,8 +41,8 @@ OUTPUT: "is_operator": false, "usr": "c:objc(cs)AClass(cm)test", "short_name": "test", - "detailed_name": " AClass::test", - "hover": " AClass::test", + "detailed_name": " test", + "hover": " test", "declarations": [{ "spelling": "2:11-2:15", "extent": "2:3-2:16", @@ -59,8 +59,8 @@ OUTPUT: "is_operator": false, "usr": "c:objc(cs)AClass(im)anInstanceMethod", "short_name": "anInstanceMethod", - "detailed_name": " AClass::anInstanceMethod", - "hover": " AClass::anInstanceMethod", + "detailed_name": " anInstanceMethod", + "hover": " anInstanceMethod", "declarations": [{ "spelling": "3:11-3:27", "extent": "3:3-3:28", @@ -79,8 +79,8 @@ OUTPUT: "is_operator": false, "usr": "c:objc(cs)AClass(im)aProp", "short_name": "aProp", - "detailed_name": " AClass::aProp", - "hover": " AClass::aProp", + "detailed_name": " aProp", + "hover": " aProp", "declarations": [{ "spelling": "0:0-0:0", "extent": "4:29-4:34", @@ -97,8 +97,8 @@ OUTPUT: "is_operator": false, "usr": "c:objc(cs)AClass(im)setAProp:", "short_name": "setAProp:", - "detailed_name": " AClass::setAProp:", - "hover": " AClass::setAProp:", + "detailed_name": " setAProp:", + "hover": " setAProp:", "declarations": [{ "spelling": "0:0-0:0", "extent": "4:29-4:34", @@ -130,7 +130,7 @@ OUTPUT: "id": 0, "usr": "c:objc(cs)AClass(py)aProp", "short_name": "aProp", - "detailed_name": "int AClass::aProp", + "detailed_name": "int aProp", "hover": "int", "declaration": "4:29-4:34", "is_local": true, diff --git a/tests/types/anonymous_struct.cc b/tests/types/anonymous_struct.cc index b1d1335d..e32f8d39 100644 --- a/tests/types/anonymous_struct.cc +++ b/tests/types/anonymous_struct.cc @@ -44,7 +44,7 @@ OUTPUT: "id": 0, "usr": "c:@U@vector3@Sa@FI@x", "short_name": "x", - "detailed_name": "float x", + "detailed_name": "float vector3::(anon)::x", "hover": "float", "definition_spelling": "2:18-2:19", "definition_extent": "2:12-2:19", @@ -56,7 +56,7 @@ OUTPUT: "id": 1, "usr": "c:@U@vector3@Sa@FI@y", "short_name": "y", - "detailed_name": "float y", + "detailed_name": "float vector3::(anon)::y", "hover": "float", "definition_spelling": "2:21-2:22", "definition_extent": "2:12-2:22", @@ -68,7 +68,7 @@ OUTPUT: "id": 2, "usr": "c:@U@vector3@Sa@FI@z", "short_name": "z", - "detailed_name": "float z", + "detailed_name": "float vector3::(anon)::z", "hover": "float", "definition_spelling": "2:24-2:25", "definition_extent": "2:12-2:25",