From ad273ea8696d4d55f664bf21298100e026a411de Mon Sep 17 00:00:00 2001 From: John Maschmeyer Date: Wed, 17 Oct 2012 18:53:19 -0500 Subject: [PATCH] Updated syntax of function arguments for completions to match that used by clang. --- types.d | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/types.d b/types.d index c7f498f..4c5f92c 100644 --- a/types.d +++ b/types.d @@ -745,18 +745,20 @@ private: string getFunctionType(Function f) { string result = "f"; if (extendedFunctionTypes) { - result ~= "::"; + result ~= " : "; + result ~= "[#" ~ f.returnType ~ "#]"; + result ~= f.name ~ "("; bool first = true; foreach (param; f.parameters) { if (first) { first = false; } else { - result ~= "::"; + result ~= ","; } - result ~= param.type ~ " " ~ param.name; + result ~= "<#" ~ param.type ~ " " ~ param.name ~ "#>"; } - result ~= "::"; + result ~= ")"; } return result; }