1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Added support for varargs.

This commit is contained in:
Doug Schaefer 2005-04-19 18:03:28 +00:00
parent b829c4ed8e
commit 6368adec2a

View file

@ -123,6 +123,12 @@ public class DOMCompletionContributor implements ICompletionContributor {
}
}
if (function.takesVarArgs()) {
if (args.length() > 0)
args.append(',');
args.append(" ...");
}
IType returnType = function.getType().getReturnType();
if (returnType != null)
returnTypeStr = ASTTypeUtil.getType(returnType);