Skip to content

Commit 4a6661b

Browse files
Update cpp/cert/src/rules/CTR55-CPP/DoNotUseAnAdditiveOperatorOnAnIterator.ql
Co-authored-by: Remco Vermeulen <rvermeulen@users.noreply.github.com>
1 parent b7aec2c commit 4a6661b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cpp/cert/src/rules/CTR55-CPP/DoNotUseAnAdditiveOperatorOnAnIterator.ql

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ import codingstandards.cpp.Iterators
1717
import semmle.code.cpp.controlflow.Dominance
1818

1919
/**
20-
* something like:
21-
* `end = begin() + size()`
20+
* Get a derived one passed the end element for `containerReference`.
21+
* An example derivation is:
22+
* `end = begin() + size()`
2223
*/
2324
Expr calculatedEndCheck(AdditiveOperatorFunctionCall calc) {
2425
exists(

0 commit comments

Comments
 (0)