File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
cpp/ql/lib/semmle/code/cpp/models/implementations Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,8 @@ private class IteratorCrementNonMemberOperatorModel extends IteratorCrementNonMe
141141 }
142142
143143 override predicate hasSpecificWriteSideEffect ( ParameterIndex i , boolean buffer , boolean mustWrite ) {
144- // We have two choices here: either `buffer` must be `true` or `mustWrite`
145- // must be `false` to ensure that the IR alias analysis doesn't think that
146- // `it++` completely override the value of the iterator.
147- // We choose `mustWrite` must be `false`. In that case, the value of
148- // `buffer` isn't super important (it just decides which kind of read side
149- // effect will be emitted).
144+ // See the comment on `IteratorCrementMemberOperatorModel::hasSpecificWriteSideEffect`
145+ // for an explanation of these values.
150146 i = 0 and buffer = false and mustWrite = false
151147 }
152148
You can’t perform that action at this time.
0 commit comments