File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/ASTGen/Sources/ASTGen Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ func expandAttachedMacro(
345
345
// Create an expansion context
346
346
let context = sourceManager. createMacroExpansionContext ( )
347
347
348
- let macroName = customAttrNode. attributeName. description
348
+ let macroName = customAttrNode. attributeName. trimmedDescription
349
349
var evaluatedSyntaxStr : String
350
350
do {
351
351
switch ( macro, macroRole) {
Original file line number Diff line number Diff line change 14
14
15
15
func testThrownError( ) {
16
16
let name = " hello "
17
- #myWarning( name) // expected-error{{#myWarning macro requires a string literal (from macro 'myWarning')}}
17
+ #myWarning ( name) // expected-error{{#myWarning macro requires a string literal (from macro 'myWarning')}}
18
18
19
19
#myWarning( " experimental features ahead " ) // expected-warning{{experimental features ahead}}
20
20
}
You can’t perform that action at this time.
0 commit comments