Skip to content

[Macros] Narrow the carve-out for DebugDescription’s use of symbol linkage markers. #75323

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 1 commit into from
Jul 18, 2024

Conversation

hborla
Copy link
Member

@hborla hborla commented Jul 18, 2024

This change only allows symbol linkage markers in the peer expansion of _DebugDescriptionProperty.

@hborla
Copy link
Member Author

hborla commented Jul 18, 2024

@swift-ci please smoke test

@hborla hborla merged commit 3eb9ad4 into swiftlang:main Jul 18, 2024
3 checks passed
@hborla hborla deleted the disable-symbol-linkage branch July 18, 2024 13:35
macroDecl->getName().getBaseIdentifier()
.str().equals("_DebugDescriptionProperty"))
return true;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a missing return false at the end. It may not be an issue in practice.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you! Really wish that was an error in C++ :) I'll put up a follow up to fix this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #75331

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.

2 participants