Skip to content

Commit 90d1753

Browse files
committed
Disable formatting for more macros.
Follow-on to #743. Disables formatting for `#_sourceLocation` and `@Tag`. Although I haven't seen either in a sample/spindump, every little bit counts and neither of these macros needs the formatting to build correctly.
1 parent 5763213 commit 90d1753

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Sources/TestingMacros/SourceLocationMacro.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ public struct SourceLocationMacro: ExpressionMacro, Sendable {
2222
) throws -> ExprSyntax {
2323
createSourceLocationExpr(of: macro, context: context)
2424
}
25+
26+
public static var formatMode: FormatMode {
27+
.disabled
28+
}
2529
}

Sources/TestingMacros/TagMacro.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,8 @@ public struct TagMacro: PeerMacro, AccessorMacro, Sendable {
102102
}
103103
return []
104104
}
105+
106+
public static var formatMode: FormatMode {
107+
.disabled
108+
}
105109
}

0 commit comments

Comments
 (0)