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 {
70
70
*/
71
71
pragma [ noopt]
72
72
Variable 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
+ // ------------------------------------------------------------------------------------------------
73
80
// check that it is assigned to, incremented or decremented in the update
74
81
exists ( Expr updateOpRoot , Expr updateOp |
75
82
updateOpRoot = fs .getUpdate ( ) and
You can’t perform that action at this time.
0 commit comments