Skip to content

Make macro fit for Xcode 27 and align with the other macros - #16

Merged
Lutzifer merged 2 commits into
mainfrom
update/xcode-27
Sep 28, 2026
Merged

Lutzifer merged 2 commits into
mainfrom
update/xcode-27

Conversation

@Lutzifer

Copy link
Copy Markdown
Member

Summary

  • Enable InternalImportsByDefault on all targets; Swift 6.4 flags the implicit
    import Testing in the SwiftPM-generated test entry point as ambiguous
  • Run diagnostics tests through SwiftSyntaxMacrosGenericTestSupport with an
    Issue.record failure handler; the XCTest-based assertMacroExpansion did not
    fail Swift Testing tests, so diagnostics tests never caught failures
  • Throw diagnostics only once instead of also calling context.diagnose, which
    reported every error twice
  • Use "@name" in error messages of attached macros
  • Share testMacros between test files and unify suite names
  • CI: run on the xcode-27 runner with Xcode 27.0 and actions/checkout@v7
  • format.sh: format the repository itself instead of its parent directory
  • README: add a uniform Requirements section

Test plan

  • swift build -Xswiftc -warnings-as-errors --enable-experimental-prebuilts with Xcode 27.0
  • swift test -Xswiftc -warnings-as-errors --enable-experimental-prebuilts with Xcode 27.0
  • sh .github/format.sh leaves no changes
  • CI passes on the xcode-27 runner

🤖 Generated with Claude Code

Lutzifer and others added 2 commits September 28, 2026 14:13
- Enable InternalImportsByDefault on all targets; Swift 6.4 flags the implicit
  `import Testing` in the SwiftPM-generated test entry point as ambiguous
- Run diagnostics tests through SwiftSyntaxMacrosGenericTestSupport with an
  Issue.record failure handler; the XCTest-based assertMacroExpansion did not
  fail Swift Testing tests, so diagnostics tests never caught failures
- Throw diagnostics only once instead of also calling context.diagnose, which
  reported every error twice
- Use "@name" in error messages of attached macros
- Share testMacros between test files and unify suite names
- CI: run on the xcode-27 runner with Xcode 27.0 and actions/checkout@v7
- format.sh: format the repository itself instead of its parent directory
- README: add a uniform Requirements section

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Lutzifer
Lutzifer merged commit d71ca3e into main Sep 28, 2026
2 checks passed
@Lutzifer
Lutzifer deleted the update/xcode-27 branch September 28, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant