Skip to content

Commit 83b0b04

Browse files
authored
Disable formatting for more macros. (#744)
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. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 5763213 commit 83b0b04

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Sources/TestingMacros/SourceLocationMacro.swift

+4
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

+4
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)