From b66516debbde301126ae7f923962883203dc1bfc Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 24 Apr 2018 10:57:32 +0200 Subject: [PATCH] fix #405 - Case of calltip failure in aggregate --- dub.json | 2 +- libdparse | 2 +- tests/tc_calltip_in_func/expected.txt | 2 ++ tests/tc_calltip_in_func/run.sh | 5 +++++ 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 tests/tc_calltip_in_func/expected.txt create mode 100755 tests/tc_calltip_in_func/run.sh diff --git a/dub.json b/dub.json index 66cd415..059ca62 100644 --- a/dub.json +++ b/dub.json @@ -8,7 +8,7 @@ "license": "GPL-3.0", "dependencies": { "dsymbol": "~>0.3.1", - "libdparse": "~>0.8.0", + "libdparse": "~>0.8.1", "msgpack-d": "~>1.0.0-beta.3", "stdx-allocator": "~>2.77.0" }, diff --git a/libdparse b/libdparse index 970efe3..0e18b62 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit 970efe34e66fc7b3cb93a6ec59984099908070c5 +Subproject commit 0e18b62cb2fd86ee09ec8457c394bdef409ca542 diff --git a/tests/tc_calltip_in_func/expected.txt b/tests/tc_calltip_in_func/expected.txt new file mode 100644 index 0000000..61dfedb --- /dev/null +++ b/tests/tc_calltip_in_func/expected.txt @@ -0,0 +1,2 @@ +calltips +void fun(A param) diff --git a/tests/tc_calltip_in_func/run.sh b/tests/tc_calltip_in_func/run.sh new file mode 100755 index 0000000..7e959cc --- /dev/null +++ b/tests/tc_calltip_in_func/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +../../bin/dcd-client $1 -c66 <<< "class Bar{void fun(A param){}}class Foo{void foo(Bar bar){bar.fun(}}" > actual.txt +diff actual.txt expected.txt