Skip to content

Commit d4a1ace

Browse files
committed
C++: Remove StdSetBeginEnd as we now have a general model BeginOrEndFunction in main.
1 parent 88a9396 commit d4a1ace

File tree

1 file changed

+0
-17
lines changed
  • cpp/ql/src/semmle/code/cpp/models/implementations

1 file changed

+0
-17
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/StdSet.qll

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,6 @@ class StdSetInsert extends TaintFunction {
4949
}
5050
}
5151

52-
/**
53-
* The standard set `begin` and `end` functions and their
54-
* variants.
55-
*/
56-
class StdSetBeginEnd extends TaintFunction {
57-
StdSetBeginEnd() {
58-
this.hasQualifiedName("std", ["set", "unordered_set"], ["begin", "end", "cbegin", "cend"])
59-
or
60-
this.hasQualifiedName("std", "set", ["rbegin", "crbegin", "rend", "crend"])
61-
}
62-
63-
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
64-
input.isQualifierObject() and
65-
output.isReturnValue()
66-
}
67-
}
68-
6952
/**
7053
* The standard set `swap` functions.
7154
*/

0 commit comments

Comments
 (0)