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:
parent
b829c4ed8e
commit
6368adec2a
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue