Skip to content

[SwiftSyntax] Remove requiresLeadingNewline from basic format #66106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/Macros/macro_expand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ struct Bad {}

// CHECK-DIAGS: CONTENTS OF FILE @__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift
// CHECK-DIAGS: import Swift
// CHECK-DIAGS: precedencegroup MyPrecedence {}
// CHECK-DIAGS: precedencegroup MyPrecedence {
// CHECK-DIAGS: }
// CHECK-DIAGS: @attached(member) macro myMacro()
// CHECK-DIAGS: extension Int {
// CHECK-DIAGS: }
Expand Down
34 changes: 17 additions & 17 deletions test/SourceKit/Macros/diags.swift.response
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
key.buffer_name: "@__swiftmacro_9MacroUser3fooyyF11coerceToIntfMf_.swift"
},
{
key.buffer_text: "import Swift\n\nprecedencegroup MyPrecedence {}\n\n@attached(member) macro myMacro()\n\nextension Int {\n}\n\n@main\nstruct MyMain {\n static func main() {\n }\n}\n\ntypealias Array = Void\n\ntypealias Dictionary = Void\n\ntypealias BooleanLiteralType = Void\n\ntypealias ExtendedGraphemeClusterType = Void\n\ntypealias FloatLiteralType = Void\n\ntypealias IntegerLiteralType = Void\n\ntypealias StringLiteralType = Void\n\ntypealias UnicodeScalarType = Void\n\ntypealias _ColorLiteralType = Void\n\ntypealias _ImageLiteralType = Void\n\ntypealias _FileReferenceLiteralType = Void",
key.buffer_text: "import Swift\n\nprecedencegroup MyPrecedence {\n}\n\n@attached(member) macro myMacro()\n\nextension Int {\n}\n\n@main\nstruct MyMain {\n static func main() {\n }\n}\n\ntypealias Array = Void\n\ntypealias Dictionary = Void\n\ntypealias BooleanLiteralType = Void\n\ntypealias ExtendedGraphemeClusterType = Void\n\ntypealias FloatLiteralType = Void\n\ntypealias IntegerLiteralType = Void\n\ntypealias StringLiteralType = Void\n\ntypealias UnicodeScalarType = Void\n\ntypealias _ColorLiteralType = Void\n\ntypealias _ImageLiteralType = Void\n\ntypealias _FileReferenceLiteralType = Void",
key.original_location: {
key.offset: 499,
key.length: 0,
Expand Down Expand Up @@ -233,7 +233,7 @@
]
},
{
key.line: 5,
key.line: 6,
key.column: 25,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -257,7 +257,7 @@
]
},
{
key.line: 5,
key.line: 6,
key.column: 25,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -281,7 +281,7 @@
]
},
{
key.line: 7,
key.line: 8,
key.column: 1,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -305,7 +305,7 @@
]
},
{
key.line: 10,
key.line: 11,
key.column: 1,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -329,7 +329,7 @@
]
},
{
key.line: 11,
key.line: 12,
key.column: 8,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -353,7 +353,7 @@
]
},
{
key.line: 16,
key.line: 17,
key.column: 11,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -377,7 +377,7 @@
]
},
{
key.line: 18,
key.line: 19,
key.column: 11,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -401,7 +401,7 @@
]
},
{
key.line: 20,
key.line: 21,
key.column: 11,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -425,7 +425,7 @@
]
},
{
key.line: 22,
key.line: 23,
key.column: 11,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -449,7 +449,7 @@
]
},
{
key.line: 24,
key.line: 25,
key.column: 11,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -473,7 +473,7 @@
]
},
{
key.line: 26,
key.line: 27,
key.column: 11,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -497,7 +497,7 @@
]
},
{
key.line: 28,
key.line: 29,
key.column: 11,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -521,7 +521,7 @@
]
},
{
key.line: 30,
key.line: 31,
key.column: 11,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -545,7 +545,7 @@
]
},
{
key.line: 32,
key.line: 33,
key.column: 11,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -569,7 +569,7 @@
]
},
{
key.line: 34,
key.line: 35,
key.column: 11,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand All @@ -593,7 +593,7 @@
]
},
{
key.line: 36,
key.line: 37,
key.column: 11,
key.filepath: "@__swiftmacro_9MacroUser3Bad7InvalidfMp_.swift",
key.severity: source.diagnostic.severity.error,
Expand Down