Commit Graph

4 Commits

Author SHA1 Message Date
Becca Royal-Gordon
6deec96034 Update objcImpl diagnostics to final syntax
Update diagnostics that mention `@_objcImplementation` to mention `@objc @implementation` instead.

Fixes rdar://130707698
2024-06-27 15:38:41 -07:00
Becca Royal-Gordon
c4e152c2d0 Soften objcImpl implicit final errors to warnings
Before the change from @_objcImplementation to @objc @implementation, if a member was unrepresentable in ObjC, it would become implicitly `final`. After that change, this is now an error. We do want a diagnostic here, but we don’t want to break backwards compatibility for early adopters.

Soften the error to a warning when the old @objcImplementation syntax is used.

Fixes rdar://129247349.
2024-06-04 18:07:24 -07:00
Becca Royal-Gordon
9db14c36ad Require @objc to be used with @implementation
…for extensions. This change also removes @implementation(CategoryName); you should attach the category name to the @objc attribute instead. And there are small changes to how much checking the compiler will do on an @objc @implementation after the decl checker has discovered a problem with it.
2024-05-17 14:57:32 -07:00
Becca Royal-Gordon
0fbea28459 Test stable and unstable objcImpl separately
Their syntaxes are about to diverge, so let’s make sure that we maintain source compatibility for @_objcImplementation.
2024-05-16 13:40:13 -07:00