-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Print package-name in .private.swiftinterface only for better abstraction #65336
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
…tion Resolves rdar://107638447
@swift-ci smoke test |
// CHECK-PUBLIC: -module-name Utils | ||
// CHECK-PUBLIC-NOT: -package-name swift-utils.log | ||
// CHECK-PUBLIC: public func publicFunc() | ||
// CHECK-PUBLIC-NOT: package func packageFunc() |
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.
I would recommend to list all the CHECK-PUBLIC-NOT
check lines before the CHECK-PUBLIC
lines. FileCheck looks for these in order. Here it would only error if a package func packageFunc()
is after public func publicFunc()
. Considering the order in the sources there could be a packageFunc
printed before publicFunc
and it wouldn't be reported.
@swift-ci smoke test |
Is a change in https://github.com/apple/swift-driver/blob/main/Sources/makeOptions/makeOptions.cpp planned? |
Thanks for catching that @drodriguez. Yes, we need to update |
Added to driver at swiftlang/swift-driver#1344 |
…nterface only as package symbols are not contained in public swiftinterface and the clients of the swiftinterface should not be privy to the package-name input value. The change has already landed in main; this PR is to enforce the same behavior on 5.9. Risk: Low. The change has been on main already and been tested. Original PR: #65336 Reivewers: @xymus Testing: Added tests to ensure the flag is abstracted away from public swiftinterface Resolves: rdar://107638447
Print package-name in .private.swiftinterface only for better abstraction
Resolves rdar://107638447