- 
                Notifications
    You must be signed in to change notification settings 
- Fork 10.6k
          SE-495: Make @c an official feature
          #85122
        
          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
Conversation
| @swift-ci Please smoke test | 
| 🎉 | 
        
          
                include/swift/Basic/Features.def
              
                Outdated
          
        
      | LANGUAGE_FEATURE(CDecl, 495, "C compatible functions and enums with @c") | ||
| LANGUAGE_FEATURE(CImplementation, 495, "C compatible functions and enums with @c") | 
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we emitted swift interfaces that had $CDecl checks, then we can keep the feature around. I didn't think we did, though
510eeaa    to
    0a28123      
    Compare
  
    | @swift-ci Please smoke test | 
0a28123    to
    94113f4      
    Compare
  
    | @swift-ci Please smoke test | 
| @swift-ci Please smoke test Windows | 
Mark both
CDeclandCImplementationas official language features. Update tests with the changes to the compatibility header and diagnostics.rdar://148471584