Author: Fangrui Song Date: 2022-09-02T10:49:10-07:00 New Revision: 8899c3c4e15ea3681b0c423b44313163f5370abd
URL: https://github.com/llvm/llvm-project/commit/8899c3c4e15ea3681b0c423b44313163f5370abd DIFF: https://github.com/llvm/llvm-project/commit/8899c3c4e15ea3681b0c423b44313163f5370abd.diff LOG: [docs] -fivisibility= allows protected and internal Added: Modified: clang/docs/ClangCommandLineReference.rst clang/include/clang/Driver/Options.td Removed: ################################################################################ diff --git a/clang/docs/ClangCommandLineReference.rst b/clang/docs/ClangCommandLineReference.rst index 370a7a327a816..141c1464638a5 100644 --- a/clang/docs/ClangCommandLineReference.rst +++ b/clang/docs/ClangCommandLineReference.rst @@ -2729,7 +2729,7 @@ The visibility for definitions without an explicit DLL export class \[-fvisibili .. option:: -fvisibility=<arg> -Set the default symbol visibility for all global declarations. <arg> must be 'hidden' or 'default'. +Set the default symbol visibility for all global definitions. <arg> must be 'default', 'protected', 'internal' or 'hidden'. .. option:: -fwasm-exceptions diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 1112e0187758e..9949f903ae6f9 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -2953,7 +2953,7 @@ def fvisibility_externs_nodllstorageclass_EQ : Joined<["-"], "fvisibility-extern MarshallingInfoVisibility<LangOpts<"ExternDeclNoDLLStorageClassVisibility">, "HiddenVisibility">, ShouldParseIf<fvisibility_from_dllstorageclass.KeyPath>; def fvisibility_EQ : Joined<["-"], "fvisibility=">, Group<f_Group>, - HelpText<"Set the default symbol visibility for all global declarations">, Values<"hidden,default">; + HelpText<"Set the default symbol visibility for all global definitions">, Values<"default,protected,internal,hidden">; defm visibility_inlines_hidden : BoolFOption<"visibility-inlines-hidden", LangOpts<"InlineVisibilityHidden">, DefaultFalse, PosFlag<SetTrue, [CC1Option], "Give inline C++ member functions hidden visibility by default">, _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits