@@ -148,7 +148,8 @@ def pedantic_Group : OptionGroup<"<pedantic group>">, Group<f_Group>,
148148 DocFlatten;
149149
150150def offload_Group : OptionGroup<"<offload group>">, Group<f_Group>,
151- DocName<"Common Offloading options">;
151+ DocName<"Common Offloading options">,
152+ Visibility<[ClangOption, CLOption]>;
152153
153154def opencl_Group : OptionGroup<"<opencl group>">, Group<f_Group>,
154155 DocName<"OpenCL options">;
@@ -157,13 +158,16 @@ def sycl_Group : OptionGroup<"<SYCL group>">, Group<f_Group>,
157158 DocName<"SYCL options">;
158159
159160def cuda_Group : OptionGroup<"<CUDA group>">, Group<f_Group>,
160- DocName<"CUDA options">;
161+ DocName<"CUDA options">,
162+ Visibility<[ClangOption, CLOption]>;
161163
162164def hip_Group : OptionGroup<"<HIP group>">, Group<f_Group>,
163- DocName<"HIP options">;
165+ DocName<"HIP options">,
166+ Visibility<[ClangOption, CLOption]>;
164167
165168def m_Group : OptionGroup<"<m group>">, Group<CompileOnly_Group>,
166- DocName<"Target-dependent compilation options">;
169+ DocName<"Target-dependent compilation options">,
170+ Visibility<[ClangOption, CLOption]>;
167171
168172// Feature groups - these take command line options that correspond directly to
169173// target specific features and can be translated directly from command line
@@ -5167,14 +5171,16 @@ def prebind__all__twolevel__modules : Flag<["-"], "prebind_all_twolevel_modules"
51675171def prebind : Flag<["-"], "prebind">;
51685172def preload : Flag<["-"], "preload">;
51695173def print_file_name_EQ : Joined<["-", "--"], "print-file-name=">,
5170- HelpText<"Print the full library path of <file>">, MetaVarName<"<file>">;
5174+ HelpText<"Print the full library path of <file>">, MetaVarName<"<file>">,
5175+ Visibility<[ClangOption, CLOption]>;
51715176def print_ivar_layout : Flag<["-"], "print-ivar-layout">,
51725177 Visibility<[ClangOption, CC1Option]>,
51735178 HelpText<"Enable Objective-C Ivar layout bitmap print trace">,
51745179 MarshallingInfoFlag<LangOpts<"ObjCGCBitmapPrint">>;
51755180def print_libgcc_file_name : Flag<["-", "--"], "print-libgcc-file-name">,
51765181 HelpText<"Print the library path for the currently used compiler runtime "
5177- "library (\"libgcc.a\" or \"libclang_rt.builtins.*.a\")">;
5182+ "library (\"libgcc.a\" or \"libclang_rt.builtins.*.a\")">,
5183+ Visibility<[ClangOption, CLOption]>;
51785184def print_multi_directory : Flag<["-", "--"], "print-multi-directory">;
51795185def print_multi_lib : Flag<["-", "--"], "print-multi-lib">;
51805186def print_multi_flags : Flag<["-", "--"], "print-multi-flags-experimental">,
@@ -5183,27 +5189,34 @@ def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">,
51835189 Flags<[Unsupported]>;
51845190def print_target_triple : Flag<["-", "--"], "print-target-triple">,
51855191 HelpText<"Print the normalized target triple">,
5186- Visibility<[ClangOption, FlangOption]>;
5192+ Visibility<[ClangOption, FlangOption, CLOption ]>;
51875193def print_effective_triple : Flag<["-", "--"], "print-effective-triple">,
51885194 HelpText<"Print the effective target triple">,
5189- Visibility<[ClangOption, FlangOption]>;
5195+ Visibility<[ClangOption, FlangOption, CLOption ]>;
51905196// GCC --disable-multiarch, GCC --enable-multiarch (upstream and Debian
51915197// specific) have different behaviors. We choose not to support the option.
51925198def : Flag<["-", "--"], "print-multiarch">, Flags<[Unsupported]>;
51935199def print_prog_name_EQ : Joined<["-", "--"], "print-prog-name=">,
5194- HelpText<"Print the full program path of <name>">, MetaVarName<"<name>">;
5200+ HelpText<"Print the full program path of <name>">, MetaVarName<"<name>">,
5201+ Visibility<[ClangOption, CLOption]>;
51955202def print_resource_dir : Flag<["-", "--"], "print-resource-dir">,
5196- HelpText<"Print the resource directory pathname">;
5203+ HelpText<"Print the resource directory pathname">,
5204+ Visibility<[ClangOption, CLOption]>;
51975205def print_search_dirs : Flag<["-", "--"], "print-search-dirs">,
5198- HelpText<"Print the paths used for finding libraries and programs">;
5206+ HelpText<"Print the paths used for finding libraries and programs">,
5207+ Visibility<[ClangOption, CLOption]>;
51995208def print_targets : Flag<["-", "--"], "print-targets">,
5200- HelpText<"Print the registered targets">;
5209+ HelpText<"Print the registered targets">,
5210+ Visibility<[ClangOption, CLOption]>;
52015211def print_rocm_search_dirs : Flag<["-", "--"], "print-rocm-search-dirs">,
5202- HelpText<"Print the paths used for finding ROCm installation">;
5212+ HelpText<"Print the paths used for finding ROCm installation">,
5213+ Visibility<[ClangOption, CLOption]>;
52035214def print_runtime_dir : Flag<["-", "--"], "print-runtime-dir">,
5204- HelpText<"Print the directory pathname containing clangs runtime libraries">;
5215+ HelpText<"Print the directory pathname containing clangs runtime libraries">,
5216+ Visibility<[ClangOption, CLOption]>;
52055217def print_diagnostic_options : Flag<["-", "--"], "print-diagnostic-options">,
5206- HelpText<"Print all of Clang's warning options">;
5218+ HelpText<"Print all of Clang's warning options">,
5219+ Visibility<[ClangOption, CLOption]>;
52075220def private__bundle : Flag<["-"], "private_bundle">;
52085221def pthreads : Flag<["-"], "pthreads">;
52095222defm pthread : BoolOption<"", "pthread",
@@ -5230,7 +5243,7 @@ def resource_dir_EQ : Joined<["-"], "resource-dir=">, Flags<[NoXarchOption]>,
52305243 Visibility<[ClangOption, CLOption, DXCOption]>,
52315244 Alias<resource_dir>;
52325245def rpath : Separate<["-"], "rpath">, Flags<[LinkerInput]>, Group<Link_Group>;
5233- def rtlib_EQ : Joined<["-", "--"], "rtlib=">,
5246+ def rtlib_EQ : Joined<["-", "--"], "rtlib=">, Visibility<[ClangOption, CLOption]>,
52345247 HelpText<"Compiler runtime library to use">;
52355248def frtlib_add_rpath: Flag<["-"], "frtlib-add-rpath">, Flags<[NoArgumentUnused]>,
52365249 HelpText<"Add -rpath with architecture-specific resource directory to the linker flags. "
@@ -5396,7 +5409,7 @@ def w : Flag<["-"], "w">, HelpText<"Suppress all warnings">,
53965409 MarshallingInfoFlag<DiagnosticOpts<"IgnoreWarnings">>;
53975410def x : JoinedOrSeparate<["-"], "x">,
53985411Flags<[NoXarchOption]>,
5399- Visibility<[ClangOption, CC1Option, FlangOption, FC1Option]>,
5412+ Visibility<[ClangOption, CC1Option, FlangOption, FC1Option, CLOption ]>,
54005413 HelpText<"Treat subsequent input files as having type <language>">,
54015414 MetaVarName<"<language>">;
54025415def y : Joined<["-"], "y">;
0 commit comments