Skip to content
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

[SR-7439] os_log treats string constant arguments as private #49982

Open
lilyball mannequin opened this issue Apr 15, 2018 · 2 comments
Open

[SR-7439] os_log treats string constant arguments as private #49982

lilyball mannequin opened this issue Apr 15, 2018 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. SDKOverlay standard library Area: Standard library umbrella

Comments

@lilyball
Copy link
Mannequin

lilyball mannequin commented Apr 15, 2018

Previous ID SR-7439
Radar rdar://problem/39652127
Original Reporter @lilyball
Type Bug
Environment

Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)
Target: x86_64-apple-darwin17.5.0

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, SDKOverlay
Assignee None
Priority Medium

md5: d7ad5afa08215a2a48c564f7f67a0711

Issue Description:

The C os_log() functions treat string constant arguments (both C strings and NSStrings) as public by default. However, the Swift overlay function does not. This is rather annoying.

Implementing this also means having some way to determine that a String (held in a CVarArg) is actually backed by a StaticString.

@belkadan
Copy link
Contributor

Lance (JIRA User) or @moiseev, can you reach out to the appropriate CoreOS people?

@moiseev
Copy link
Mannequin

moiseev mannequin commented Apr 23, 2018

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. SDKOverlay standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant