Skip to content

Commit c25f4f7

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 3b6b30f commit c25f4f7

File tree

2 files changed

+37
-14
lines changed

2 files changed

+37
-14
lines changed

Sources/MacroTesting/Internal/Deprecations.swift

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ import XCTest
1212
// MARK: Deprecated after 0.4.2
1313

1414
@available(iOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
15-
@available(macOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
15+
@available(
16+
macOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
17+
)
1618
@available(tvOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
17-
@available(visionOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
18-
@available(watchOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
19+
@available(
20+
visionOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
21+
)
22+
@available(
23+
watchOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
24+
)
1925
@_disfavoredOverload
2026
public func withMacroTesting<R>(
2127
indentationWidth: Trivia? = nil,
@@ -35,10 +41,16 @@ public func withMacroTesting<R>(
3541
}
3642

3743
@available(iOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
38-
@available(macOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
44+
@available(
45+
macOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
46+
)
3947
@available(tvOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
40-
@available(visionOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
41-
@available(watchOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
48+
@available(
49+
visionOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
50+
)
51+
@available(
52+
watchOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
53+
)
4254
@_disfavoredOverload
4355
public func withMacroTesting<R>(
4456
indentationWidth: Trivia? = nil,
@@ -58,10 +70,16 @@ public func withMacroTesting<R>(
5870
}
5971

6072
@available(iOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
61-
@available(macOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
73+
@available(
74+
macOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
75+
)
6276
@available(tvOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
63-
@available(visionOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
64-
@available(watchOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
77+
@available(
78+
visionOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
79+
)
80+
@available(
81+
watchOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
82+
)
6583
@_disfavoredOverload
6684
public func withMacroTesting<R>(
6785
indentationWidth: Trivia? = nil,
@@ -77,12 +95,17 @@ public func withMacroTesting<R>(
7795
)
7896
}
7997

80-
8198
@available(iOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
82-
@available(macOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
99+
@available(
100+
macOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
101+
)
83102
@available(tvOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
84-
@available(visionOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
85-
@available(watchOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)")
103+
@available(
104+
visionOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
105+
)
106+
@available(
107+
watchOS, deprecated, renamed: "withMacroTesting(indentationWidth:record:macros:operation:)"
108+
)
86109
@_disfavoredOverload
87110
public func withMacroTesting<R>(
88111
indentationWidth: Trivia? = nil,

Sources/MacroTesting/MacrosTestTrait.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#if canImport(Testing)
22
import SnapshotTesting
33
import SwiftSyntax
4-
import SwiftSyntaxMacros
4+
import SwiftSyntaxMacros
55
@_spi(Experimental) import Testing
66

77
@_spi(Experimental)

0 commit comments

Comments
 (0)