From 66b11109fc6a3ffdac9afc0fc44a6b6980924922 Mon Sep 17 00:00:00 2001 From: davu Date: Sun, 23 Oct 2022 10:19:58 +0200 Subject: [PATCH] updating readme for UFCS --- README.md | 4 ++-- tests/tc_ufcs_fundamental_types_completion/run.sh | 6 +++--- .../test_short_expected.txt | 9 ++++++++- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d56595a..69c501e 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,9 @@ the issue.) * *alias this* * *auto* declarations (Mostly) * *with* statements - * Simple UFCS suggestions for concrete types. + * Simple UFCS suggestions for concrete types and fundamental types. * Not working: - * UFCS completion for templates, literals, UFCS function arguments, and '.' chaining with other UFCS functions. + * UFCS completion for templates, literals, aliased types, UFCS function arguments, and '.' chaining with other UFCS functions. * UFCS calltips * Autocompletion of declarations with template arguments (This will work to some extent, but it won't do things like replace T with int) * Determining the type of an enum member when no base type is specified, but the first member has an initializer diff --git a/tests/tc_ufcs_fundamental_types_completion/run.sh b/tests/tc_ufcs_fundamental_types_completion/run.sh index 4e63226..c221fc6 100755 --- a/tests/tc_ufcs_fundamental_types_completion/run.sh +++ b/tests/tc_ufcs_fundamental_types_completion/run.sh @@ -1,10 +1,10 @@ set -e -set -u +#set -u ../../bin/dcd-client $1 -c24 file.d > test_bool_actual.txt ../../bin/dcd-client $1 -c50 file.d > test_byte_actual.txt ../../bin/dcd-client $1 -c78 file.d > test_ubyte_actual.txt -../../bin/dcd-client $1 -c105 file.d > test_short_actual.txt +../../bin/dcd-client $1 -c106 file.d > test_short_actual.txt ../../bin/dcd-client $1 -c136 file.d > test_ushort_actual.txt ../../bin/dcd-client $1 -c160 file.d > test_int_actual.txt ../../bin/dcd-client $1 -c186 file.d > test_uint_actual.txt @@ -49,4 +49,4 @@ diff test_ireal_actual.txt test_ireal_expected.txt diff test_cfloat_actual.txt test_cfloat_expected.txt diff test_cdouble_actual.txt test_cdouble_expected.txt diff test_creal_actual.txt test_creal_expected.txt -diff test_void_actual.txt test_void_expected.txt \ No newline at end of file +diff test_void_actual.txt test_void_expected.txt diff --git a/tests/tc_ufcs_fundamental_types_completion/test_short_expected.txt b/tests/tc_ufcs_fundamental_types_completion/test_short_expected.txt index 1c50fc9..6e9b428 100644 --- a/tests/tc_ufcs_fundamental_types_completion/test_short_expected.txt +++ b/tests/tc_ufcs_fundamental_types_completion/test_short_expected.txt @@ -1,2 +1,9 @@ identifiers -x v +alignof k +init k +mangleof k +max k +min k +sizeof k +someShort F +stringof k