mirror of
https://github.com/github/codeql.git
synced 2026-05-04 05:05:12 +02:00
Merge pull request #5173 from criemen/bsl-swap
C++: Model bsl functions in Swap.qll.
This commit is contained in:
@@ -9,7 +9,7 @@ import semmle.code.cpp.models.interfaces.Alias
|
||||
* ```
|
||||
*/
|
||||
private class Swap extends DataFlowFunction {
|
||||
Swap() { this.hasQualifiedName("std", "swap") }
|
||||
Swap() { this.hasQualifiedName(["std", "bsl"], "swap") }
|
||||
|
||||
override predicate hasDataFlow(FunctionInput input, FunctionOutput output) {
|
||||
input.isParameterDeref(0) and
|
||||
|
||||
Reference in New Issue
Block a user