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

Predicate Make::alwaysMatchesHostnameAlt

Holds if the first i children of alt contains a hostname pattern.

This is used instead of forall to avoid materializing the set of alternatives that don’t contains hostnames, which is much larger.

Import path

import codeql.regex.HostnameRegexp
predicate alwaysMatchesHostnameAlt(RegExpAlt alt, int i)