mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Add CallExpr.hasImplicitArgs()
This commit is contained in:
@@ -857,6 +857,12 @@ class CallExpr extends CallOrConversionExpr {
|
||||
/** Gets the number of argument expressions of this call. */
|
||||
int getNumArgument() { result = count(this.getAnArgument()) }
|
||||
|
||||
/** Holds if this call has implicit variadic arguments. */
|
||||
predicate hasImplicitVarargs() {
|
||||
this.getCalleeType().isVariadic() and
|
||||
not this.hasEllipsis()
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets an argument with an ellipsis after it which is passed to a varargs
|
||||
* parameter, as in `f(x...)`.
|
||||
|
||||
Reference in New Issue
Block a user