C++: Remove StdMapBeginEnd as we now have a general model BeginOrEndFunction in main.

This commit is contained in:
Geoffrey White
2020-10-02 16:39:23 +01:00
parent 0d6bd6facb
commit 2dc8fba7fe

View File

@@ -24,23 +24,6 @@ class StdMapInsert extends TaintFunction {
}
}
/**
* The standard map `begin` and `end` functions and their
* variants.
*/
class StdMapBeginEnd extends TaintFunction {
StdMapBeginEnd() {
this.hasQualifiedName("std", ["map", "unordered_map"], ["begin", "end", "cbegin", "cend"])
or
this.hasQualifiedName("std", "map", ["rbegin", "crbegin", "rend", "crend"])
}
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
input.isQualifierObject() and
output.isReturnValue()
}
}
/**
* The standard map `swap` functions.
*/