Merge pull request #5007 from yoff/python-disregard-comp-args

This commit is contained in:
Taus
2021-01-26 12:53:33 +01:00
committed by GitHub
5 changed files with 15 additions and 2 deletions

View File

@@ -179,7 +179,12 @@ ExprNode exprNode(DataFlowExpr e) { result.getNode().getNode() = e }
class ParameterNode extends CfgNode {
ParameterDefinition def;
ParameterNode() { node = def.getDefiningNode() }
ParameterNode() {
node = def.getDefiningNode() and
// Disregard parameters that we cannot resolve
// TODO: Make this unnecessary
exists(DataFlowCallable c | node = c.getParameter(_))
}
/**
* Holds if this node is the parameter of callable `c` at the