CodeQL library for Swift
codeql/swift-all 5.0.6-dev (changelog, source)
Search

Module Regex

Provides classes and predicates for reasoning about regular expressions.

Import path

import codeql.swift.regex.Regex

Imports

RegexTreeView

Provides a class hierarchy corresponding to a parse tree of regular expressions.

swift

Top-level import for the Swift language pack

Classes

RegexAdditionalFlowStep

A unit class for adding additional flow steps for regular expressions.

RegexCreation

A data-flow node where a regular expression object is created.

RegexEval

A call that evaluates a regular expression. For example, the call to firstMatch in: Regex("(a|b).*").firstMatch(in: myString)

RegexParseMode

A regular expression parse mode flag.

RegexPatternSource

A data flow node whose value may flow to a position where it is interpreted as a part of a regular expression. For example the string literal "(a|b).*" in: Regex("(a|b).*").firstMatch(in: myString)

RegexRegexAdditionalFlowStep

An additional flow step for Regex.

Aliases

NSStringCompareOptionsFlagFlow

Constructs a global data flow computation.