File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
cpp/common/src/codingstandards/cpp Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,13 @@ class MemberAssignmentOperation extends FunctionCall {
7070 */
7171pragma [ noopt]
7272Variable getALoopCounter ( ForStmt fs ) {
73+ // ------------------------------------------------------------------------------------------------
74+ // NOTE: This is an updated version of ForStmt.getAnIterationVariable(), handling additional cases.
75+ // The use of pragma[noopt] is retained from the original code, as we haven't determined
76+ // whether it's still necessary across a broad range of databases. As a noopt predicate, it
77+ // includes a degree of duplication as the join order is defined based on the order of the
78+ // conditions.
79+ // ------------------------------------------------------------------------------------------------
7380 // check that it is assigned to, incremented or decremented in the update
7481 exists ( Expr updateOpRoot , Expr updateOp |
7582 updateOpRoot = fs .getUpdate ( ) and
You can’t perform that action at this time.
0 commit comments