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

Lots of undocumented configuration options #455

Open
dabrahams opened this issue Dec 11, 2022 · 3 comments
Open

Lots of undocumented configuration options #455

dabrahams opened this issue Dec 11, 2022 · 3 comments

Comments

@dabrahams
Copy link
Contributor

dabrahams commented Dec 11, 2022

The very first one in the dump-configuration output, fileScopedDeclarationPrivacy, doesn't appear in the configuration documentation, and it has what looks like a pretty drastic effect, and doesn't accept what I'm guessing is the most obvious setting internal. /cc @allevato

@allevato
Copy link
Member

That option controls which visibility modifier to use (private or fileprivate) for declarations already using one of those at file-scope. That is, private and/or fileprivate declarations will be forced to be one or the other. This is to force consistency where—with the exception of extension decls, which are excluded from this—the two have the same effective visibility.

internal isn't supported since that would change the effective visibility of file-scoped decls.

@allevato
Copy link
Member

allevato commented Dec 13, 2022

Re: the larger documentation issue, we should just adopt DocC like I want to do for the rules so that the source code is the source of truth and we generate everything from that.

@ahoppen
Copy link
Member

ahoppen commented Apr 23, 2024

Tracked in Apple’s issue tracker as rdar://126948300

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

No branches or pull requests

3 participants