Introduce an option to request global visibility settings be applied to declarations without a definition or an explicit visibility, rather than the existing behavior of giving these default visibility. When the visibility of all or most extern definitions are known this allows for the same optimisations -fvisibility permits without updating source code to annotate all declarations.
Details
Details
Diff Detail
Diff Detail
Event Timeline
include/clang/Driver/CC1Options.td | ||
---|---|---|
707 | "Declaration" doesn't unambiguously mean "non-definition" in language parlance; |
Comment Actions
I'm sorry to keep jerking you around, but let's spell out the flag a bit more: -fapply-global-visibility-to-externs. No reason not to be totally clear here. Thank you for updating the fields and descriptions, those all look good now.
Comment Actions
No worries, I agree that we don't gain much with a shorter flag here; explicit seems preferable.
"Declaration" doesn't unambiguously mean "non-definition" in language parlance;
maybe something like "external declaration" in both help text and the option name?
So maybe -fextern-visibility?