We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537caf8 commit 6ffe5fcCopy full SHA for 6ffe5fc
swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll
@@ -108,11 +108,13 @@ private module Cached {
108
localFlowSsaInput(nodeFrom, def, nodeTo.asDefinition())
109
)
110
or
111
+ // flow through writes to inout parameters
112
exists(ParamReturnKind kind, ExprCfgNode arg |
113
arg = nodeFrom.(InOutUpdateNode).getCall(kind).asCall().getArgument(kind.getIndex()) and
114
nodeTo.asDefinition().(Ssa::WriteDefinition).isInoutDef(arg)
115
116
117
+ // flow through `&` (inout argument)
118
nodeFrom.asExpr() = nodeTo.asExpr().(InOutExpr).getSubExpr()
119
120
// flow through `try!` and similar constructs
0 commit comments