mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
C++: Remove StdSetBeginEnd as we now have a general model BeginOrEndFunction in main.
This commit is contained in:
@@ -49,23 +49,6 @@ class StdSetInsert extends TaintFunction {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The standard set `begin` and `end` functions and their
|
||||
* variants.
|
||||
*/
|
||||
class StdSetBeginEnd extends TaintFunction {
|
||||
StdSetBeginEnd() {
|
||||
this.hasQualifiedName("std", ["set", "unordered_set"], ["begin", "end", "cbegin", "cend"])
|
||||
or
|
||||
this.hasQualifiedName("std", "set", ["rbegin", "crbegin", "rend", "crend"])
|
||||
}
|
||||
|
||||
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
|
||||
input.isQualifierObject() and
|
||||
output.isReturnValue()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The standard set `swap` functions.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user