Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b14b55c

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

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/Operator.qll
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.