Skip to content

Swift: Add change note

5c4ca64
Select commit
Loading
Failed to load commit list.
Merged

Swift: Support new Swift 6.1 AST elements #19420

Swift: Add change note
5c4ca64
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL completed May 2, 2025 in 7s

6 configurations not found

Warning: Code scanning may not have found all the alerts introduced by this pull request, because 6 configurations present on refs/heads/main were not found:

Actions workflow (rust-analysis.yml)

  • ❓  .github/workflows/rust-analysis.yml:analyze/language:rust

Actions workflow (csv-coverage-metrics.yml)

  • ❓  .github/workflows/csv-coverage-metrics.yml:publish-csharp
  • ❓  .github/workflows/csv-coverage-metrics.yml:publish-java

Actions workflow (codeql-analysis.yml)

  • ❓  .github/workflows/codeql-analysis.yml:CodeQL-Build
  • ❓  .github/workflows/codeql-analysis.yml:CodeQL-Build/language:actions
  • ❓  .github/workflows/codeql-analysis.yml:CodeQL-Build/language:csharp

New alerts in code changed by this pull request

  • 5 warnings

See annotations below for details.

View all branch alerts.

Annotations

Check warning on line 123 in swift/ql/lib/codeql/swift/elements.qll

See this annotation in the file changed.

Code scanning / CodeQL

Redundant import Warning

Redundant import, the module is already imported inside
codeql.swift.elements.MacroRole
.
Redundant import, the module is already imported inside
codeql.swift.elements.decl.PatternBindingDecl
.
Redundant import, the module is already imported inside
codeql.swift.elements.decl.VarDecl
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.AnyTryExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.AppliedPropertyWrapperExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ApplyExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.Argument
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ArrayExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.AssignExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.BindOptionalExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.CaptureListExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ClosureExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.CollectionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ConsumeExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.CopyExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.CurrentContextIsolationExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.DeclRefExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.DefaultArgumentExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.DictionaryExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.DiscardAssignmentExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.DotSyntaxBaseIgnoredExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.DynamicTypeExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.EnumIsCaseExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ErrorExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ExplicitCastExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ExtractFunctionIsolationExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ForceValueExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.IdentityExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.IfExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ImplicitConversionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.InOutExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.KeyPathApplicationExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.KeyPathDotExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.KeyPathExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.LazyInitializationExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.LiteralExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.LookupExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.MakeTemporarilyEscapableExpr
.
Redundant import, the module is already imported inside [codeql.swift.elements.expr.Material

Check warning on line 133 in swift/ql/lib/codeql/swift/elements.qll

See this annotation in the file changed.

Code scanning / CodeQL

Redundant import Warning

Redundant import, the module is already imported inside
codeql.swift.elements.expr.AbiSafeConversionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ActorIsolationErasureExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.AnyHashableErasureExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ArchetypeToSuperExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ArrayToPointerExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.BridgeFromObjCExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.BridgeToObjCExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ClassMetatypeToObjectExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.CollectionUpcastConversionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ConditionalBridgeFromObjCExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.CovariantFunctionConversionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.CovariantReturnConversionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.DerivedToBaseExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.DestructureTupleExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.DifferentiableFunctionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.DifferentiableFunctionExtractOriginalExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ErasureExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ExistentialMetatypeToObjectExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ForeignObjectConversionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.FunctionConversionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.InOutToPointerExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.InjectIntoOptionalExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.LinearFunctionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.LinearFunctionExtractOriginalExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.LinearToDifferentiableFunctionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.LoadExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.MetatypeConversionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.PointerToPointerExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.ProtocolMetatypeToObjectExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.StringToPointerExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.UnderlyingToOpaqueExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.UnevaluatedInstanceExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.UnreachableExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.UnresolvedTypeConversionExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.UnsafeCastExpr
.

Check warning on line 258 in swift/ql/lib/codeql/swift/elements.qll

See this annotation in the file changed.

Code scanning / CodeQL

Redundant import Warning

Redundant import, the module is already imported inside
codeql.swift.elements.type.AnyBuiltinIntegerType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinBridgeObjectType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinDefaultActorStorageType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinExecutorType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinFixedArrayType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinFloatType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinJobType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinNativeObjectType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinRawPointerType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinRawUnsafeContinuationType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinUnsafeValueBufferType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinVectorType
.

Check warning on line 298 in swift/ql/lib/codeql/swift/elements.qll

See this annotation in the file changed.

Code scanning / CodeQL

Redundant import Warning

Redundant import, the module is already imported inside
codeql.swift.elements.KeyPathComponent
.
Redundant import, the module is already imported inside
codeql.swift.elements.decl.NominalTypeDecl
.
Redundant import, the module is already imported inside
codeql.swift.elements.decl.SubscriptDecl
.
Redundant import, the module is already imported inside
codeql.swift.elements.decl.TypeAliasDecl
.
Redundant import, the module is already imported inside
codeql.swift.elements.decl.TypeDecl
.
Redundant import, the module is already imported inside
codeql.swift.elements.decl.ValueDecl
.
Redundant import, the module is already imported inside
codeql.swift.elements.decl.VarDecl
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.DeclRefExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.Expr
.
Redundant import, the module is already imported inside
codeql.swift.elements.pattern.Pattern
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.AnyFunctionType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.AnyGenericType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.AnyMetatypeType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.ArchetypeType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BoundGenericType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.BuiltinType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.DependentMemberType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.DictionaryType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.DynamicSelfType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.ErrorType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.ExistentialType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.InOutType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.InlineArrayType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.IntegerType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.LValueType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.ModuleType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.PackElementType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.PackExpansionType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.PackType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.ParameterizedProtocolType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.ParenType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.ProtocolCompositionType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.ReferenceStorageType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.SubstitutableType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.SugarType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.TupleType
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.TypeRepr
.
Redundant import, the module is already imported inside
codeql.swift.elements.type.UnarySyntaxSugarType
.
Redundant import, the module is already imported inside codeql.swift.elements.type.UnresolvedType.

Check warning on line 300 in swift/ql/lib/codeql/swift/elements.qll

See this annotation in the file changed.

Code scanning / CodeQL

Redundant import Warning

Redundant import, the module is already imported inside
codeql.swift.elements.expr.KeyPathExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.TypeExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.expr.TypeValueExpr
.
Redundant import, the module is already imported inside
codeql.swift.elements.pattern.IsPattern
.
Redundant import, the module is already imported inside
codeql.swift.elements.pattern.TypedPattern
.