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

Predicate doubleParents

Checks that no child has more than one parent.

Import path

import codeql.swift.printast.Consistency
predicate doubleParents(PrintAstNode parent1, string label1, PrintAstNode parent2, string label2, PrintAstNode child)