Skip to content

Commit 97d2ed8

Browse files
committed
Swift: Support UnsafeCastExpr
1 parent ae2fd52 commit 97d2ed8

File tree

17 files changed

+161
-7
lines changed

17 files changed

+161
-7
lines changed

swift/extractor/infra/SwiftTagTraits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ MAP(swift::Expr, ExprTag)
177177
MAP(swift::ABISafeConversionExpr, AbiSafeConversionExprTag) // different acronym convention
178178
MAP(swift::ActorIsolationErasureExpr, ActorIsolationErasureExprTag)
179179
MAP(swift::UnreachableExpr, UnreachableExprTag)
180-
MAP(swift::UnsafeCastExpr, void) // TODO swift 6.1
180+
MAP(swift::UnsafeCastExpr, UnsafeCastExprTag)
181181
MAP(swift::ExplicitCastExpr, ExplicitCastExprTag)
182182
MAP(swift::CheckedCastExpr, CheckedCastExprTag)
183183
MAP(swift::ForcedCheckedCastExpr, ForcedCheckedCastExprTag)

swift/ql/.generated.list

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/.gitattributes

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/codeql/swift/elements.qll

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/codeql/swift/elements/expr/UnsafeCastExpr.qll

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/codeql/swift/elements/expr/internal/UnsafeCastExprConstructor.qll

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/codeql/swift/elements/expr/internal/UnsafeCastExprImpl.qll

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/codeql/swift/generated/ParentChild.qll

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/codeql/swift/generated/Raw.qll

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/codeql/swift/generated/Synth.qll

Lines changed: 21 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)