Skip to content

Commit 734a00d

Browse files
committed
Swift: Rename so that different data flows will be clear.
1 parent f243e85 commit 734a00d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

swift/ql/lib/codeql/swift/regex/Regex.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ private class ParsedStringRegex extends RegExp, StringLiteralExpr {
1919
RegexEval eval;
2020

2121
ParsedStringRegex() {
22-
RegexUseFlow::flow(DataFlow::exprNode(this), DataFlow::exprNode(eval.getRegexInput()))
22+
StringLiteralUseFlow::flow(DataFlow::exprNode(this), DataFlow::exprNode(eval.getRegexInput()))
2323
}
2424

2525
/**

swift/ql/lib/codeql/swift/regex/internal/RegexTracking.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private import codeql.swift.regex.Regex
1414
* A data flow configuration for tracking string literals that are used as
1515
* regular expressions.
1616
*/
17-
private module RegexUseConfig implements DataFlow::ConfigSig {
17+
private module StringLiteralUseConfig implements DataFlow::ConfigSig {
1818
predicate isSource(DataFlow::Node node) { node.asExpr() instanceof StringLiteralExpr }
1919

2020
predicate isSink(DataFlow::Node node) { node.asExpr() = any(RegexEval eval).getRegexInput() }
@@ -34,4 +34,4 @@ private module RegexUseConfig implements DataFlow::ConfigSig {
3434
}
3535
}
3636

37-
module RegexUseFlow = DataFlow::Global<RegexUseConfig>;
37+
module StringLiteralUseFlow = DataFlow::Global<StringLiteralUseConfig>;

0 commit comments

Comments
 (0)