mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: Add upgrade and downgrade scripts
This commit is contained in:
committed by
Paolo Tranquilli
parent
a74b38c0ec
commit
eea963e3f4
@@ -0,0 +1,21 @@
|
||||
class MacroRole extends @macro_role {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class ExprOrNone extends @expr_or_none {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class TypeExpr extends @type_expr {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class UnspecifiedElement extends @unspecified_element {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
from MacroRole role, int index, ExprOrNone conformance
|
||||
where
|
||||
macro_role_conformances(role, index, conformance) and
|
||||
(conformance instanceof TypeExpr or conformance instanceof UnspecifiedElement)
|
||||
select role, index, conformance
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
description: Upgrade to Swift 6.1
|
||||
compatibility: partial
|
||||
macro_role_conformances.rel: run macro_role_conformances.qlo
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
description: Upgrade to Swift 6.1
|
||||
compatibility: full
|
||||
Reference in New Issue
Block a user