Skip to content

Conversation

@QuietMisdreavus
Copy link
Contributor

Cherry-pick of #66497

  • Explanation: Macros with no parameters have an inconsistent DeclName based on whether they were loaded from source code or a built-module.
  • Scope: Affects symbol graphs (and Swift-DocC documentation) for these macros.
  • Issue: rdar://110179186
  • Risk: Low. The deserialization logic that was removed was identical to the one that was left in its place, with the exception of which DeclName constructor is being used.
  • Testing: A test has been added to ensure that a parameterless macro has the same name regardless of whether it's loaded from source code or a built module.
  • Reviewer: @DougGregor

@QuietMisdreavus QuietMisdreavus requested a review from a team as a code owner June 9, 2023 16:38
@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

@QuietMisdreavus QuietMisdreavus force-pushed the QuietMisdreavus/5.9/parameterless-macros branch from a219a1d to b1f029d Compare June 12, 2023 20:54
@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

@QuietMisdreavus QuietMisdreavus merged commit b50e046 into release/5.9 Jun 13, 2023
@QuietMisdreavus QuietMisdreavus deleted the QuietMisdreavus/5.9/parameterless-macros branch June 13, 2023 16:15
amartini51 added a commit to swiftlang/swift-book that referenced this pull request Jul 24, 2023
This change matches an upstream change in the publication pipeline
that will start including the `()` at the end of macro's names:

    swiftlang/swift#66500

See also commit f2828dd,
where TSPL started linking to these macros.

Fixes: rdar://112501547
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.

3 participants