mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
Swift: s/getName/getShortName/ in InlineFlowTest.qll
This commit is contained in:
committed by
Mathias Vorreiter Pedersen
parent
050b8e682f
commit
3253c0425c
@@ -42,11 +42,11 @@ import codeql.swift.dataflow.TaintTracking
|
||||
import TestUtilities.InlineExpectationsTest
|
||||
|
||||
private predicate defaultSource(DataFlow::Node source) {
|
||||
source.asExpr().(MethodCallExpr).getStaticTarget().getName() = ["source", "taint"]
|
||||
source.asExpr().(MethodCallExpr).getStaticTarget().getShortName() = ["source", "taint"]
|
||||
}
|
||||
|
||||
private predicate defaultSink(DataFlow::Node sink) {
|
||||
exists(MethodCallExpr ma | ma.getStaticTarget().hasName("sink") |
|
||||
exists(MethodCallExpr ma | ma.getStaticTarget().getShortName() = "sink" |
|
||||
sink.asExpr() = ma.getAnArgument().getExpr()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user