mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
C++: Model bsl functions in Swap.qll.
This commit is contained in:
committed by
GitHub
parent
9b8d94d76e
commit
3afe934a05
@@ -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