Skip to content

Commit 8d5bd22

Browse files
committed
C++: Remove parts of StdSequenceContainerBeginEnd in favour of BeginOrEndFunction.
1 parent fce76e2 commit 8d5bd22

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,13 @@ class StdSequenceContainerAssign extends TaintFunction {
171171
}
172172

173173
/**
174-
* The standard container `begin` and `end` functions and their
175-
* variants.
174+
* The standard container `before_begin` and `cbefore_begin` functions.
176175
*/
177176
class StdSequenceContainerBeginEnd extends TaintFunction {
178177
StdSequenceContainerBeginEnd() {
179-
this
180-
.hasQualifiedName("std", ["array", "vector", "deque", "list"],
181-
["begin", "cbegin", "rbegin", "crbegin", "end", "cend", "rend", "crend"]) or
182178
this
183179
.hasQualifiedName("std", "forward_list",
184-
["before_begin", "begin", "end", "cbefore_begin", "cbegin", "cend"])
180+
["before_begin", "cbefore_begin"])
185181
}
186182

187183
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {

0 commit comments

Comments
 (0)