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.
CompoundAssignmentExpr
1 parent a9cf33c commit 50c2d10Copy full SHA for 50c2d10
rust/ql/lib/codeql/rust/elements/AssignmentOperation.qll
@@ -38,7 +38,9 @@ final class AssignmentExpr extends AssignmentOperationImpl {
38
final class CompoundAssignmentExpr extends AssignmentOperationImpl {
39
private string operator;
40
41
- CompoundAssignmentExpr() { this.getOperatorName().regexpCapture("(.)=", 1) = operator }
+ CompoundAssignmentExpr() {
42
+ this.getOperatorName().regexpCapture("(\\+|-|\\*|/|%|&|\\||\\^|<<|>>)=", 1) = operator
43
+ }
44
45
/**
46
* Gets the operator of this compound assignment expression.
0 commit comments