Skip to content

Commit b14b55c

Browse files
committed
Incorporating suggestions (2): updating comments
As well as adding `<<=` to `AnyAssignOperation` as well
1 parent 9a9c531 commit b14b55c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/common/src/codingstandards/cpp/Operator.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ class AnyAssignOperation extends Expr {
88
AnyAssignOperation() {
99
this instanceof AssignOperation
1010
or
11-
// operator op, where op is +=, -=, *=, /=, %=, ^=, &=, |=, >>=
11+
// operator op, where op is +=, -=, *=, /=, %=, ^=, &=, |=, >>=, <<=
1212
exists(string op |
1313
"operator" + op = this.(FunctionCall).getTarget().getName() and
14-
op in ["+=", "-=", "*=", "/=", "%=", "^=", "&=", "|=", ">>="]
14+
op in ["+=", "-=", "*=", "/=", "%=", "^=", "&=", "|=", ">>=", "<<="]
1515
)
1616
}
1717
}
@@ -121,7 +121,7 @@ class UserAssignmentOperator extends AssignmentOperator {
121121
/** An assignment operator of any sort */
122122
class AssignmentOperator extends MemberFunction {
123123
AssignmentOperator() {
124-
// operator op, where op is =, +=, -=, *=, /=, %=, ^=, &=, |=, >>=
124+
// operator op, where op is =, +=, -=, *=, /=, %=, ^=, &=, |=, >>=, <<=
125125
exists(string op |
126126
"operator" + op = this.getName() and
127127
op in ["=", "+=", "-=", "*=", "/=", "%=", "^=", "&=", "|=", ">>=", "<<="]

0 commit comments

Comments
 (0)