Merge remote-tracking branch 'upstream/master' into mergeback-20181217

This commit is contained in:
Jonas Jensen
2018-12-17 13:42:45 +01:00
12 changed files with 262 additions and 41 deletions

View File

@@ -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