Skip to content

[SymbolGraph] consider underscored symbols as private if they're internal #41156

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

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

QuietMisdreavus
Copy link
Contributor

Resolves rdar://86294802

When generating a symbol graph, symbols that are prefixed with an underscore are always treated as internal, regardless of what their original access level is. However, there are more nuanced semantics for underscored symbols that are already internal or lower - these should be treated as private for the purposes of the minimum-access-level option. This PR updates the filtering logic to not emit internal underscored symbols unless you specifically request a private-level symbol graph.

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please smoke test

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please build toolchain macOS platform

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please build toolchain macOS platform

@QuietMisdreavus QuietMisdreavus merged commit fea77d0 into main Feb 3, 2022
@QuietMisdreavus QuietMisdreavus deleted the QuietMisdreavus/underscore-syms branch February 3, 2022 20:39
@swift-ci
Copy link
Contributor

swift-ci commented Feb 3, 2022

macOS Toolchain
Download Toolchain
Git Sha - 9bd3454

Install command
tar -zxf swift-PR-41156-1338-osx.tar.gz --directory ~/

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