We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 784bb72 commit 63525a9Copy full SHA for 63525a9
1 file changed
swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll
@@ -918,7 +918,6 @@ private module CaptureInput implements VariableCapture::InputSig {
918
variable = np.getVarDecl() and
919
source = np.getMatchingExpr()
920
)
921
- // TODO: support multiple variables in LHS of =, in both of above cases.
922
}
923
924
CapturedVariable getVariable() { result = variable }
@@ -929,7 +928,7 @@ private module CaptureInput implements VariableCapture::InputSig {
929
928
class VariableRead extends Expr instanceof S::DeclRefExpr {
930
CapturedVariable v;
931
932
- VariableRead() { this.getDecl() = v /* TODO: this should be an R-value only. */ }
+ VariableRead() { this.getDecl() = v and not isLValue(this) }
933
934
CapturedVariable getVariable() { result = v }
935
0 commit comments