Skip to content

Commit 2dc8fba

Browse files
committed
C++: Remove StdMapBeginEnd as we now have a general model BeginOrEndFunction in main.
1 parent 0d6bd6f commit 2dc8fba

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/StdMap.qll

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,6 @@ class StdMapInsert extends TaintFunction {
2424
}
2525
}
2626

27-
/**
28-
* The standard map `begin` and `end` functions and their
29-
* variants.
30-
*/
31-
class StdMapBeginEnd extends TaintFunction {
32-
StdMapBeginEnd() {
33-
this.hasQualifiedName("std", ["map", "unordered_map"], ["begin", "end", "cbegin", "cend"])
34-
or
35-
this.hasQualifiedName("std", "map", ["rbegin", "crbegin", "rend", "crend"])
36-
}
37-
38-
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
39-
input.isQualifierObject() and
40-
output.isReturnValue()
41-
}
42-
}
43-
4427
/**
4528
* The standard map `swap` functions.
4629
*/

0 commit comments

Comments
 (0)