@@ -148,7 +148,8 @@ def pedantic_Group : OptionGroup<"<pedantic group>">, Group<f_Group>,
148
148
DocFlatten;
149
149
150
150
def offload_Group : OptionGroup<"<offload group>">, Group<f_Group>,
151
- DocName<"Common Offloading options">;
151
+ DocName<"Common Offloading options">,
152
+ Visibility<[ClangOption, CLOption]>;
152
153
153
154
def opencl_Group : OptionGroup<"<opencl group>">, Group<f_Group>,
154
155
DocName<"OpenCL options">;
@@ -157,13 +158,16 @@ def sycl_Group : OptionGroup<"<SYCL group>">, Group<f_Group>,
157
158
DocName<"SYCL options">;
158
159
159
160
def cuda_Group : OptionGroup<"<CUDA group>">, Group<f_Group>,
160
- DocName<"CUDA options">;
161
+ DocName<"CUDA options">,
162
+ Visibility<[ClangOption, CLOption]>;
161
163
162
164
def hip_Group : OptionGroup<"<HIP group>">, Group<f_Group>,
163
- DocName<"HIP options">;
165
+ DocName<"HIP options">,
166
+ Visibility<[ClangOption, CLOption]>;
164
167
165
168
def m_Group : OptionGroup<"<m group>">, Group<CompileOnly_Group>,
166
- DocName<"Target-dependent compilation options">;
169
+ DocName<"Target-dependent compilation options">,
170
+ Visibility<[ClangOption, CLOption]>;
167
171
168
172
// Feature groups - these take command line options that correspond directly to
169
173
// 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"
5167
5171
def prebind : Flag<["-"], "prebind">;
5168
5172
def preload : Flag<["-"], "preload">;
5169
5173
def 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]>;
5171
5176
def print_ivar_layout : Flag<["-"], "print-ivar-layout">,
5172
5177
Visibility<[ClangOption, CC1Option]>,
5173
5178
HelpText<"Enable Objective-C Ivar layout bitmap print trace">,
5174
5179
MarshallingInfoFlag<LangOpts<"ObjCGCBitmapPrint">>;
5175
5180
def print_libgcc_file_name : Flag<["-", "--"], "print-libgcc-file-name">,
5176
5181
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]>;
5178
5184
def print_multi_directory : Flag<["-", "--"], "print-multi-directory">;
5179
5185
def print_multi_lib : Flag<["-", "--"], "print-multi-lib">;
5180
5186
def print_multi_flags : Flag<["-", "--"], "print-multi-flags-experimental">,
@@ -5183,27 +5189,34 @@ def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">,
5183
5189
Flags<[Unsupported]>;
5184
5190
def print_target_triple : Flag<["-", "--"], "print-target-triple">,
5185
5191
HelpText<"Print the normalized target triple">,
5186
- Visibility<[ClangOption, FlangOption]>;
5192
+ Visibility<[ClangOption, FlangOption, CLOption ]>;
5187
5193
def print_effective_triple : Flag<["-", "--"], "print-effective-triple">,
5188
5194
HelpText<"Print the effective target triple">,
5189
- Visibility<[ClangOption, FlangOption]>;
5195
+ Visibility<[ClangOption, FlangOption, CLOption ]>;
5190
5196
// GCC --disable-multiarch, GCC --enable-multiarch (upstream and Debian
5191
5197
// specific) have different behaviors. We choose not to support the option.
5192
5198
def : Flag<["-", "--"], "print-multiarch">, Flags<[Unsupported]>;
5193
5199
def 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]>;
5195
5202
def 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]>;
5197
5205
def 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]>;
5199
5208
def print_targets : Flag<["-", "--"], "print-targets">,
5200
- HelpText<"Print the registered targets">;
5209
+ HelpText<"Print the registered targets">,
5210
+ Visibility<[ClangOption, CLOption]>;
5201
5211
def 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]>;
5203
5214
def 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]>;
5205
5217
def 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]>;
5207
5220
def private__bundle : Flag<["-"], "private_bundle">;
5208
5221
def pthreads : Flag<["-"], "pthreads">;
5209
5222
defm pthread : BoolOption<"", "pthread",
@@ -5230,7 +5243,7 @@ def resource_dir_EQ : Joined<["-"], "resource-dir=">, Flags<[NoXarchOption]>,
5230
5243
Visibility<[ClangOption, CLOption, DXCOption]>,
5231
5244
Alias<resource_dir>;
5232
5245
def rpath : Separate<["-"], "rpath">, Flags<[LinkerInput]>, Group<Link_Group>;
5233
- def rtlib_EQ : Joined<["-", "--"], "rtlib=">,
5246
+ def rtlib_EQ : Joined<["-", "--"], "rtlib=">, Visibility<[ClangOption, CLOption]>,
5234
5247
HelpText<"Compiler runtime library to use">;
5235
5248
def frtlib_add_rpath: Flag<["-"], "frtlib-add-rpath">, Flags<[NoArgumentUnused]>,
5236
5249
HelpText<"Add -rpath with architecture-specific resource directory to the linker flags. "
@@ -5396,7 +5409,7 @@ def w : Flag<["-"], "w">, HelpText<"Suppress all warnings">,
5396
5409
MarshallingInfoFlag<DiagnosticOpts<"IgnoreWarnings">>;
5397
5410
def x : JoinedOrSeparate<["-"], "x">,
5398
5411
Flags<[NoXarchOption]>,
5399
- Visibility<[ClangOption, CC1Option, FlangOption, FC1Option]>,
5412
+ Visibility<[ClangOption, CC1Option, FlangOption, FC1Option, CLOption ]>,
5400
5413
HelpText<"Treat subsequent input files as having type <language>">,
5401
5414
MetaVarName<"<language>">;
5402
5415
def y : Joined<["-"], "y">;
0 commit comments