File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
cpp/ql/lib/semmle/code/cpp/models/implementations Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -214,15 +214,20 @@ private class IteratorBinaryArithmeticMemberOperatorModel extends IteratorBinary
214
214
/**
215
215
* A (member or non-member) `operator+` or `operator-` function for an iterator type.
216
216
*/
217
- class IteratorBinaryAddOperator extends Function {
218
- IteratorBinaryAddOperator ( ) {
217
+ class IteratorBinaryArithmeticOperator extends Function {
218
+ IteratorBinaryArithmeticOperator ( ) {
219
219
this instanceof IteratorAddNonMemberOperator or
220
+ this instanceof IteratorSubNonMemberOperator or
220
221
this instanceof IteratorBinaryArithmeticMemberOperator
221
222
}
222
223
}
223
224
224
225
/**
225
226
* A non-member `operator-` function that takes a pointer difference type as its second argument.
227
+ *
228
+ * Note that this class _only_ matches non-member functions. To find both
229
+ * non-member and member versions, use `IteratorBinaryArithmeticOperator` (which also
230
+ * includes `operator+` versions).
226
231
*/
227
232
class IteratorSubNonMemberOperator extends Operator {
228
233
IteratorSubNonMemberOperator ( ) {
You can’t perform that action at this time.
0 commit comments