Skip to content

Conversation

@xymus
Copy link
Contributor

@xymus xymus commented Oct 24, 2025

Mark both CDecl and CImplementation as official language features. Update tests with the changes to the compatibility header and diagnostics.

rdar://148471584

@xymus
Copy link
Contributor Author

xymus commented Oct 24, 2025

@swift-ci Please smoke test

@nkcsgexi
Copy link
Contributor

🎉

Comment on lines +279 to +280
LANGUAGE_FEATURE(CDecl, 495, "C compatible functions and enums with @c")
LANGUAGE_FEATURE(CImplementation, 495, "C compatible functions and enums with @c")
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove these two language features entirely? One can use #if hasAttribute(c) to detect the availability of this feature, we don't need anything more.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we keep the CDecl one for the backwards compatibility of swiftinterfaces? That check wouldn't be perfect either since the attribute name changed but not the feature name.

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