mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Merge remote-tracking branch 'upstream/master' into mergeback-20181217
This commit is contained in:
@@ -159,17 +159,6 @@ predicate shellCommandPreface(string cmd, string flag) {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* An array element. This supports multiple kinds of array syntax.
|
||||
*/
|
||||
private predicate arrayElement(Expr arrayLit, int idx, Expr element) {
|
||||
exists (ArrayLiteral lit | lit = arrayLit |
|
||||
lit.getElement(idx) = element)
|
||||
or exists (MessageExpr arrayWithObjects | arrayWithObjects = arrayLit |
|
||||
arrayWithObjects.getStaticTarget().getQualifiedName().matches("NSArray%::+arrayWithObjects:") and
|
||||
arrayWithObjects.getArgument(idx) = element)
|
||||
}
|
||||
|
||||
/**
|
||||
* A command that is used as a command, or component of a command,
|
||||
* that will be executed by a general-purpose command interpreter
|
||||
|
||||
Reference in New Issue
Block a user