mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Swift: add 5.7.1 migration scripts
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// Removes AbiSafeConversionExprs from ImplicitConversionExprs
|
||||
class Element extends @element {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
from Element e, Element child
|
||||
where implicit_conversion_exprs(e, child) and not abi_safe_conversion_exprs(e)
|
||||
select e, child
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,13 @@
|
||||
// Moves AbiSafeConversionExprs into UnspecifiedElements
|
||||
class Element extends @element {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
from Element e, string property, string error
|
||||
where
|
||||
abi_safe_conversion_exprs(e) and
|
||||
property = "" and
|
||||
error = "Removed ABISafeConversionExpr during the database downgrade"
|
||||
or
|
||||
unspecified_elements(e, property, error)
|
||||
select e, property, error
|
||||
@@ -0,0 +1,5 @@
|
||||
description: Remove new implicit conversion
|
||||
compatibility: partial
|
||||
unspecified_elements.rel: run unspecified_elements.ql
|
||||
implicit_conversion_exprs.rel: run implicit_conversion_exprs.ql
|
||||
abi_safe_conversion_exprs.rel: delete
|
||||
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: Added new implicit conversion
|
||||
compatibility: full
|
||||
Reference in New Issue
Block a user