Skip to content

Instantly share code, notes, and snippets.

@vitonzhangtt
Created September 13, 2021 02:20
Show Gist options
  • Save vitonzhangtt/7f6f6feaa0e61373d90bbf9291d2b66b to your computer and use it in GitHub Desktop.
Save vitonzhangtt/7f6f6feaa0e61373d90bbf9291d2b66b to your computer and use it in GitHub Desktop.
Options.inc for swift compiler
/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
|* *|
|* Option Parsing Definitions *|
|* *|
|* Automatically generated file, do not edit! *|
|* *|
\*===----------------------------------------------------------------------===*/
/////////
// Prefixes
#ifdef PREFIX
#define COMMA ,
PREFIX(prefix_0, {nullptr})
PREFIX(prefix_1, {"-" COMMA nullptr})
PREFIX(prefix_2, {"-" COMMA "--" COMMA nullptr})
PREFIX(prefix_3, {"--" COMMA nullptr})
#undef COMMA
#endif // PREFIX
/////////
// Groups
#ifdef OPTION
OPTION(nullptr, "<optimization level options>", O_Group, Group, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(nullptr, "<code formatting options>", code_formatting_Group, Group, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(nullptr, "<automatic crashing options>", debug_crash_Group, Group, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(nullptr, "<debug info options>", g_Group, Group, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(nullptr, "<swift internal options>", internal_Group, Group, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(nullptr, "<swift debug/development internal options>", internal_debug_Group, Group, internal_Group, INVALID, nullptr, 0, 0,
"DEBUG/DEVELOPMENT OPTIONS", nullptr, nullptr)
OPTION(nullptr, "<linker-specific options>", linker_option_Group, Group, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(nullptr, "<mode options>", modes_Group, Group, INVALID, INVALID, nullptr, 0, 0,
"MODES", nullptr, nullptr)
//////////
// Options
OPTION(prefix_0, &"<input>"[0], INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(prefix_0, &"<unknown>"[0], UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-###"[1], _HASH_HASH_HASH, Flag, INVALID, driver_print_jobs, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(prefix_2, &"-abi"[1], abi, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Dumping ABI interface", nullptr, nullptr)
OPTION(prefix_2, &"-abort-on-module-fail"[1], abort_on_module_fail, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Abort if a module failed to load", nullptr, nullptr)
OPTION(prefix_1, &"-access-notes-path="[1], access_notes_path_EQ, Joined, INVALID, access_notes_path, nullptr, FrontendOption | ArgumentIsPath, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-access-notes-path"[1], access_notes_path, Separate, INVALID, INVALID, nullptr, FrontendOption | ArgumentIsPath, 0,
"Specify YAML file to override attributes on Swift declarations in this module", nullptr, nullptr)
OPTION(prefix_1, &"-api-diff-data-dir"[1], api_diff_data_dir, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild | ArgumentIsPath, 0,
"Load platform and version specific API migration data files from <path>. Ignored if -api-diff-data-file is specified.", "<path>", nullptr)
OPTION(prefix_1, &"-api-diff-data-file"[1], api_diff_data_file, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild | ArgumentIsPath, 0,
"API migration data is from <path>", "<path>", nullptr)
OPTION(prefix_1, &"-application-extension"[1], enable_app_extension, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Restrict code to those available for App Extensions", nullptr, nullptr)
OPTION(prefix_1, &"-assert-config"[1], AssertConfig, Separate, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOption, 0,
"Specify the assert_configuration replacement. Possible values are Debug, Release, Unchecked, DisableReplacement.", nullptr, nullptr)
OPTION(prefix_1, &"-assume-single-threaded"[1], AssumeSingleThreaded, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Assume that code will be executed in a single-threaded environment", nullptr, nullptr)
OPTION(prefix_1, &"-autolink-force-load"[1], autolink_force_load, Flag, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOption | HelpHidden, 0,
"Force ld to link against this module even if no symbols are used", nullptr, nullptr)
OPTION(prefix_1, &"-autolink-library"[1], autolink_library, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Add dependent library", nullptr, nullptr)
OPTION(prefix_1, &"-avoid-emit-module-source-info"[1], avoid_emit_module_source_info, Flag, INVALID, INVALID, nullptr, NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"don't emit Swift source info file", nullptr, nullptr)
OPTION(prefix_2, &"-avoid-location"[1], avoid_location, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Avoid serializing the file paths of SDK nodes.", nullptr, nullptr)
OPTION(prefix_2, &"-avoid-tool-args"[1], avoid_tool_args, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Avoid serializing the arguments for invoking the tool.", nullptr, nullptr)
OPTION(prefix_1, &"-backup-module-interface-path="[1], backup_module_interface_path_EQ, Joined, INVALID, backup_module_interface_path, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-backup-module-interface-path"[1], backup_module_interface_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Directory of module interfaces as backups to those from SDKs", nullptr, nullptr)
OPTION(prefix_1, &"-bad-file-descriptor-retry-count"[1], bad_file_descriptor_retry_count, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Number of retrying opening a file if previous open returns a bad file descriptor error.", nullptr, nullptr)
OPTION(prefix_1, &"-baseline-dir"[1], baseline_dir, JoinedOrSeparate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"The path to a directory containing baseline files: macos.json, iphoneos.json, appletvos.json, watchos.json, and iosmac.json", nullptr, nullptr)
OPTION(prefix_1, &"-baseline-path"[1], baseline_path, JoinedOrSeparate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"The path to the Json file that we should use as the baseline", nullptr, nullptr)
OPTION(prefix_1, &"-batch-scan-input-file"[1], batch_scan_input_file, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Specify a JSON file containing modules to perform batch dependencies scanning", "<path>", nullptr)
OPTION(prefix_1, &"-BF="[1], BF_EQ, Joined, INVALID, BF, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-BF"[1], BF, JoinedOrSeparate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"add a directory to the baseline framework search path", nullptr, nullptr)
OPTION(prefix_1, &"-BI="[1], BI_EQ, Joined, INVALID, BI, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-BI"[1], BI, JoinedOrSeparate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"add a module for baseline input", nullptr, nullptr)
OPTION(prefix_1, &"-breakage-allowlist-path"[1], breakage_allowlist_path, JoinedOrSeparate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"An allowlist of breakages to not complain about", nullptr, nullptr)
OPTION(prefix_1, &"-bridging-header-directory-for-print"[1], bridging_header_directory_for_print, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Directory for bridging header to be printed in compatibility header", "<path>", nullptr)
OPTION(prefix_1, &"-bsdk"[1], bsdk, JoinedOrSeparate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"path to the baseline SDK to import frameworks", nullptr, nullptr)
OPTION(prefix_1, &"-build-module-from-parseable-interface"[1], build_module_from_parseable_interface, Flag, modes_Group, compile_module_from_interface, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-bypass-batch-mode-checks"[1], bypass_batch_mode_checks, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Bypass checks for batch-mode errors.", nullptr, nullptr)
OPTION(prefix_1, &"-candidate-module-file"[1], candidate_module_file, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Specify Swift module may be ready to use for an interface", "<path>", nullptr)
OPTION(prefix_1, &"-check-onone-completeness"[1], check_onone_completeness, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Print errors if the compile OnoneSupport module is missing symbols", nullptr, nullptr)
OPTION(prefix_1, &"-clang-target"[1], clang_target, Separate, INVALID, INVALID, nullptr, FrontendOption | SwiftAPIExtractOption | SwiftSymbolGraphExtractOption | SwiftAPIDigesterOption, 0,
"Separately set the target we should use for internal Clang instance", nullptr, nullptr)
OPTION(prefix_1, &"-code-complete-call-pattern-heuristics"[1], code_complete_call_pattern_heuristics, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Use heuristics to guess whether we want call pattern completions", nullptr, nullptr)
OPTION(prefix_1, &"-code-complete-inits-in-postfix-expr"[1], code_complete_inits_in_postfix_expr, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Include initializers when completing a postfix expression", nullptr, nullptr)
OPTION(prefix_1, &"-color-diagnostics"[1], color_diagnostics, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Print diagnostics in color", nullptr, nullptr)
OPTION(prefix_1, &"-compile-module-from-interface"[1], compile_module_from_interface, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Treat the (single) input as a swiftinterface and produce a module", nullptr, nullptr)
OPTION(prefix_2, &"-compiler-style-diags"[1], compiler_style_diags, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Print compiler style diagnostics to stderr.", nullptr, nullptr)
OPTION(prefix_1, &"-continue-building-after-errors"[1], continue_building_after_errors, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Continue building, even after errors are encountered", nullptr, nullptr)
OPTION(prefix_1, &"-coverage-prefix-map"[1], coverage_prefix_map, Separate, INVALID, INVALID, nullptr, FrontendOption, 0,
"Remap source paths in coverage info", "<prefix=replacement>", nullptr)
OPTION(prefix_1, &"-cross-module-optimization"[1], CrossModuleOptimization, Flag, INVALID, INVALID, nullptr, HelpHidden | FrontendOption, 0,
"Perform cross-module optimization", nullptr, nullptr)
OPTION(prefix_1, &"-crosscheck-unqualified-lookup"[1], crosscheck_unqualified_lookup, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Compare legacy DeclContext- to ASTScope-based unqualified name lookup (for debugging)", nullptr, nullptr)
OPTION(prefix_1, &"-c"[1], c, Flag, modes_Group, emit_object, nullptr, FrontendOption | NoInteractiveOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-debug-assert-after-parse"[1], debug_assert_after_parse, Flag, debug_crash_Group, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Force an assertion failure after parsing", nullptr, nullptr)
OPTION(prefix_1, &"-debug-assert-immediately"[1], debug_assert_immediately, Flag, debug_crash_Group, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Force an assertion failure immediately", nullptr, nullptr)
OPTION(prefix_1, &"-debug-constraints-attempt"[1], debug_constraints_attempt, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Debug the constraint solver at a given attempt", nullptr, nullptr)
OPTION(prefix_1, &"-debug-constraints-on-line="[1], debug_constraints_on_line_EQ, Joined, INVALID, debug_constraints_on_line, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-debug-constraints-on-line"[1], debug_constraints_on_line, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Debug the constraint solver for expressions on <line>", "<line>", nullptr)
OPTION(prefix_1, &"-debug-constraints"[1], debug_constraints, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Debug the constraint-based type checker", nullptr, nullptr)
OPTION(prefix_1, &"-debug-crash-after-parse"[1], debug_crash_after_parse, Flag, debug_crash_Group, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Force a crash after parsing", nullptr, nullptr)
OPTION(prefix_1, &"-debug-crash-immediately"[1], debug_crash_immediately, Flag, debug_crash_Group, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Force a crash immediately", nullptr, nullptr)
OPTION(prefix_1, &"-debug-cycles"[1], debug_cycles, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Print out debug dumps when cycles are detected in evaluation", nullptr, nullptr)
OPTION(prefix_1, &"-debug-diagnostic-names"[1], debug_diagnostic_names, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild | HelpHidden, 0,
"Include diagnostic names when printing", nullptr, nullptr)
OPTION(prefix_1, &"-debug-emit-invalid-swiftinterface-syntax"[1], debug_emit_invalid_swiftinterface_syntax, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Write an invalid declaration into swiftinterface files", nullptr, nullptr)
OPTION(prefix_1, &"-debug-forbid-typecheck-prefix"[1], debug_forbid_typecheck_prefix, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Triggers llvm fatal_error if typechecker tries to typecheck a decl with the provided prefix name", nullptr, nullptr)
OPTION(prefix_1, &"-debug-generic-signatures"[1], debug_generic_signatures, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Debug generic signatures", nullptr, nullptr)
OPTION(prefix_1, &"-debug-info-format="[1], debug_info_format, Joined, INVALID, INVALID, nullptr, FrontendOption, 0,
"Specify the debug info format type to either 'dwarf' or 'codeview'", nullptr, nullptr)
OPTION(prefix_1, &"-debug-info-store-invocation"[1], debug_info_store_invocation, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Emit the compiler invocation in the debug info.", nullptr, nullptr)
OPTION(prefix_2, &"-debug-mapping"[1], debug_mapping, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Dumping information for debug purposes", nullptr, nullptr)
OPTION(prefix_1, &"-debug-prefix-map"[1], debug_prefix_map, Separate, INVALID, INVALID, nullptr, FrontendOption, 0,
"Remap source paths in debug info", "<prefix=replacement>", nullptr)
OPTION(prefix_1, &"-debug-requirement-machine"[1], debug_requirement_machine, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enables debugging output from the generics implementation", nullptr, nullptr)
OPTION(prefix_1, &"-debug-time-expression-type-checking"[1], debug_time_expression_type_checking, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Dumps the time it takes to type-check each expression", nullptr, nullptr)
OPTION(prefix_1, &"-debug-time-function-bodies"[1], debug_time_function_bodies, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Dumps the time it takes to type-check each function body", nullptr, nullptr)
OPTION(prefix_1, &"-debugger-support"[1], debugger_support, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Process swift code as if running in the debugger", nullptr, nullptr)
OPTION(prefix_1, &"-debugger-testing-transform"[1], debugger_testing_transform, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Instrument the code with calls to an intrinsic that record the expected values of local variables so they can be compared against the results from the debugger.", nullptr, nullptr)
OPTION(prefix_1, &"-define-availability"[1], define_availability, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Define an availability macro in the format 'macroName : iOS 13.0, macOS 10.15'", "<macro>", nullptr)
OPTION(prefix_1, &"-dependency-scan-cache-path"[1], dependency_scan_cache_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"The path to output the dependency scanner's internal state.", nullptr, nullptr)
OPTION(prefix_1, &"-deprecated-integrated-repl"[1], deprecated_integrated_repl, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoBatchOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_2, &"-deserialize-diff"[1], deserialize_diff, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Deserialize diff items in a JSON file", nullptr, nullptr)
OPTION(prefix_2, &"-deserialize-sdk"[1], deserialize_sdk, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Deserialize sdk digester in a JSON file", nullptr, nullptr)
OPTION(prefix_2, &"-diagnose-sdk"[1], diagnose_sdk, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Diagnose SDK content in JSON file", nullptr, nullptr)
OPTION(prefix_1, &"-diagnostic-documentation-path"[1], diagnostic_documentation_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Path to diagnostic documentation resources", "<path>", nullptr)
OPTION(prefix_1, &"-diagnostic-style="[1], diagnostic_style_EQ, Joined, INVALID, diagnostic_style, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0, nullptr, "<style>", nullptr)
OPTION(prefix_1, &"-diagnostic-style"[1], diagnostic_style, Separate, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"The formatting style used when printing diagnostics ('swift' or 'llvm')", "<style>", nullptr)
OPTION(prefix_1, &"-diagnostics-editor-mode"[1], diagnostics_editor_mode, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Diagnostics will be used in editor", nullptr, nullptr)
OPTION(prefix_1, &"-disable-access-control"[1], disable_access_control, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't respect access control restrictions", nullptr, nullptr)
OPTION(prefix_1, &"-disable-actor-data-race-checks"[1], disable_actor_data_race_checks, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Disable runtime checks for actor data races", nullptr, nullptr)
OPTION(prefix_1, &"-disable-arc-opts"[1], disable_arc_opts, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't run SIL ARC optimization passes.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-ast-verifier"[1], disable_ast_verifier, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Do not run the AST verifier during compilation. NOTE: This lets the user override the default behavior on whether or not the ASTVerifier is run. The default behavior is to run the verifier when asserts are enabled and not run it when asserts are disabled. NOTE: Can not be used if enable-ast-verifier is used as well", nullptr, nullptr)
OPTION(prefix_1, &"-disable-autolink-framework"[1], disable_autolink_framework, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable autolinking against the provided framework", nullptr, nullptr)
OPTION(prefix_1, &"-disable-autolinking-runtime-compatibility-dynamic-replacements"[1], disable_autolinking_runtime_compatibility_dynamic_replacements, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Do not use autolinking for the dynamic replacement runtime compatibility library", nullptr, nullptr)
OPTION(prefix_1, &"-disable-autolinking-runtime-compatibility"[1], disable_autolinking_runtime_compatibility, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Do not use autolinking for runtime compatibility libraries", nullptr, nullptr)
OPTION(prefix_1, &"-disable-availability-checking"[1], disable_availability_checking, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable checking for potentially unavailable APIs", nullptr, nullptr)
OPTION(prefix_1, &"-disable-batch-mode"[1], disable_batch_mode, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | HelpHidden, 0,
"Disable combining frontend jobs into batches", nullptr, nullptr)
OPTION(prefix_1, &"-disable-bridging-pch"[1], disable_bridging_pch, Flag, INVALID, INVALID, nullptr, HelpHidden, 0,
"Disable automatic generation of bridging PCH files", nullptr, nullptr)
OPTION(prefix_1, &"-disable-building-interface"[1], disable_building_interface, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disallow building binary module from textual interface", nullptr, nullptr)
OPTION(prefix_1, &"-disable-clang-target"[1], disable_clang_target, Flag, INVALID, INVALID, nullptr, NewDriverOnlyOption, 0,
"Disable a separately specified target triple for Clang instance to use", nullptr, nullptr)
OPTION(prefix_1, &"-disable-clangimporter-source-import"[1], disable_clangimporter_source_import, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable ClangImporter and forward all requests straight the DWARF importer.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-concrete-type-metadata-mangled-name-accessors"[1], disable_concrete_type_metadata_mangled_name_accessors, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable concrete type metadata access by mangled name", nullptr, nullptr)
OPTION(prefix_1, &"-disable-conformance-availability-errors"[1], disable_conformance_availability_errors, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Diagnose conformance availability violations as warnings", nullptr, nullptr)
OPTION(prefix_1, &"-disable-constraint-solver-performance-hacks"[1], disable_constraint_solver_performance_hacks, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable all the hacks in the constraint solver", nullptr, nullptr)
OPTION(prefix_1, &"-disable-copy-propagation"[1], disable_copy_propagation, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Don't run SIL copy propagation to preserve object lifetime.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-cross-import-overlays"[1], disable_cross_import_overlays, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Do not automatically import declared cross-import overlays.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-debugger-shadow-copies"[1], disable_debugger_shadow_copies, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable debugger shadow copies of local variables.This option is only useful for testing the compiler.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-deserialization-recovery"[1], disable_deserialization_recovery, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't attempt to recover from missing xrefs (etc) in swiftmodules", nullptr, nullptr)
OPTION(prefix_1, &"-disable-diagnostic-passes"[1], disable_diagnostic_passes, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't run diagnostic passes", nullptr, nullptr)
OPTION(prefix_1, &"-disable-fuzzy-forward-scan-trailing-closure-matching"[1], disable_fuzzy_forward_scan_trailing_closure_matching, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Disable fuzzy forward-scan trailing closure matching", nullptr, nullptr)
OPTION(prefix_1, &"-disable-generic-metadata-prespecialization"[1], disable_generic_metadata_prespecialization, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Do not statically specialize metadata for generic types at types that are known to be used in source.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-implicit-concurrency-module-import"[1], disable_implicit_concurrency_module_import, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable the implicit import of the _Concurrency module.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-implicit-distributed-module-import"[1], disable_implicit_distributed_module_import, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable the implicit import of the _Distributed module.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-implicit-swift-modules"[1], disable_implicit_swift_modules, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Disable building Swift modules implicitly by the compiler", nullptr, nullptr)
OPTION(prefix_1, &"-disable-incremental-imports"[1], disable_incremental_imports, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Disable cross-module incremental build metadata and driver scheduling for Swift modules", nullptr, nullptr)
OPTION(prefix_1, &"-disable-incremental-llvm-codegen"[1], disable_incremental_llvm_codegeneration, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable incremental llvm code generation.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-infer-public-sendable"[1], disable_infer_public_concurrent_value, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Disable inference of Sendable conformances for public structs and enums", nullptr, nullptr)
OPTION(prefix_1, &"-disable-interface-lock"[1], disable_interface_lockfile, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't lock interface file when building module", nullptr, nullptr)
OPTION(prefix_1, &"-disable-invalid-ephemeralness-as-error"[1], disable_invalid_ephemeralness_as_error, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Diagnose invalid ephemeral to non-ephemeral conversions as warnings", nullptr, nullptr)
OPTION(prefix_1, &"-disable-legacy-type-info"[1], disable_legacy_type_info, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Completely disable legacy type layout", nullptr, nullptr)
OPTION(prefix_1, &"-disable-llvm-optzns"[1], disable_llvm_optzns, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't run LLVM optimization passes", nullptr, nullptr)
OPTION(prefix_1, &"-disable-llvm-value-names"[1], disable_llvm_value_names, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't add names to local values in LLVM IR", nullptr, nullptr)
OPTION(prefix_1, &"-disable-llvm-verify"[1], disable_llvm_verify, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't run the LLVM IR verifier.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-migrator-fixits"[1], disable_migrator_fixits, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Disable the Migrator phase which automatically applies fix-its", nullptr, nullptr)
OPTION(prefix_1, &"-disable-modules-validate-system-headers"[1], disable_modules_validate_system_headers, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable validating system headers in the Clang importer", nullptr, nullptr)
OPTION(prefix_1, &"-disable-named-lazy-member-loading"[1], disable_named_lazy_member_loading, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable per-name lazy member loading", nullptr, nullptr)
OPTION(prefix_1, &"-disable-new-operator-lookup"[1], disable_new_operator_lookup, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable the new operator decl and precedencegroup lookup behavior", nullptr, nullptr)
OPTION(prefix_1, &"-disable-nonfrozen-enum-exhaustivity-diagnostics"[1], disable_nonfrozen_enum_exhaustivity_diagnostics, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Allow switches over non-frozen enums without catch-all cases", nullptr, nullptr)
OPTION(prefix_1, &"-disable-nskeyedarchiver-diagnostics"[1], disable_nskeyedarchiver_diagnostics, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Allow classes with unstable mangled names to adopt NSCoding", nullptr, nullptr)
OPTION(prefix_1, &"-disable-objc-attr-requires-foundation-module"[1], disable_objc_attr_requires_foundation_module, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden | ModuleInterfaceOption, 0,
"Disable requiring uses of @objc to require importing the Foundation module", nullptr, nullptr)
OPTION(prefix_1, &"-disable-objc-interop"[1], disable_objc_interop, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden | ModuleInterfaceOption, 0,
"Disable Objective-C interop code generation and config directives", nullptr, nullptr)
OPTION(prefix_1, &"-disable-only-one-dependency-file"[1], disable_only_one_dependency_file, Flag, INVALID, INVALID, nullptr, DoesNotAffectIncrementalBuild, 0,
"Disables incremental build optimization that only produces one dependencies file", nullptr, nullptr)
OPTION(prefix_2, &"-disable-os-checks"[1], disable_os_checks, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Skip OS related diagnostics", nullptr, nullptr)
OPTION(prefix_1, &"-disable-ossa-opts"[1], disable_ossa_opts, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't run SIL OSSA optimization passes.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-playground-transform"[1], disable_playground_transform, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable playground transformation", nullptr, nullptr)
OPTION(prefix_1, &"-disable-previous-implementation-calls-in-dynamic-replacements"[1], disable_previous_implementation_calls_in_dynamic_replacements, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable calling the previous implementation in dynamic replacements", nullptr, nullptr)
OPTION(prefix_1, &"-disable-reflection-metadata"[1], disable_reflection_metadata, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable emission of reflection metadata for nominal types", nullptr, nullptr)
OPTION(prefix_1, &"-disable-reflection-names"[1], disable_reflection_names, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable emission of names of stored properties and enum cases inreflection metadata", nullptr, nullptr)
OPTION(prefix_1, &"-disable-requirement-machine"[1], disable_requirement_machine, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable experimental generics implementation", nullptr, nullptr)
OPTION(prefix_1, &"-disable-sil-ownership-verifier"[1], disable_sil_ownership_verifier, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Do not verify ownership invariants during SIL Verification ", nullptr, nullptr)
OPTION(prefix_1, &"-disable-sil-partial-apply"[1], disable_sil_partial_apply, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable use of partial_apply in SIL generation", nullptr, nullptr)
OPTION(prefix_1, &"-disable-sil-perf-optzns"[1], disable_sil_perf_optzns, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't run SIL performance optimization passes", nullptr, nullptr)
OPTION(prefix_1, &"-disable-swift-bridge-attr"[1], disable_swift_bridge_attr, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Disable using the swift bridge attribute", nullptr, nullptr)
OPTION(prefix_1, &"-disable-swift-specific-llvm-optzns"[1], disable_swift_specific_llvm_optzns, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't run Swift specific LLVM optimization passes.", nullptr, nullptr)
OPTION(prefix_1, &"-disable-swift3-objc-inference"[1], disable_swift3_objc_inference, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable Swift 3's @objc inference rules for NSObject-derived classes and 'dynamic' members (emulates Swift 4 behavior)", nullptr, nullptr)
OPTION(prefix_1, &"-disable-target-os-checking"[1], disable_target_os_checking, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Disable checking the target OS of serialized modules", nullptr, nullptr)
OPTION(prefix_1, &"-disable-testable-attr-requires-testable-module"[1], disable_testable_attr_requires_testable_module, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Disable checking of @testable", nullptr, nullptr)
OPTION(prefix_1, &"-disable-type-layout"[1], disable_type_layouts, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable type layout based lowering", nullptr, nullptr)
OPTION(prefix_1, &"-disable-typo-correction"[1], disable_typo_correction, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Disable typo correction", nullptr, nullptr)
OPTION(prefix_1, &"-disable-verify-exclusivity"[1], disable_verify_exclusivity, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Diable verification of access markers used to enforce exclusivity.", nullptr, nullptr)
OPTION(prefix_1, &"-disallow-use-new-driver"[1], disallow_forwarding_driver, Flag, INVALID, INVALID, nullptr, 0, 0,
"Disable using new swift-driver", nullptr, nullptr)
OPTION(prefix_1, &"-driver-always-rebuild-dependents"[1], driver_always_rebuild_dependents, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Always rebuild dependents of files that have been modified", nullptr, nullptr)
OPTION(prefix_1, &"-driver-batch-count"[1], driver_batch_count, Separate, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Use the given number of batch-mode partitions, rather than partitioning dynamically", nullptr, nullptr)
OPTION(prefix_1, &"-driver-batch-seed"[1], driver_batch_seed, Separate, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Use the given seed value to randomize batch-mode partitions", nullptr, nullptr)
OPTION(prefix_1, &"-driver-batch-size-limit"[1], driver_batch_size_limit, Separate, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Use the given number as the upper limit on dynamic batch-mode partition size", nullptr, nullptr)
OPTION(prefix_1, &"-driver-emit-fine-grained-dependency-dot-file-after-every-import"[1], driver_emit_fine_grained_dependency_dot_file_after_every_import, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Emit dot files every time driver imports an fine-grained swiftdeps file.", nullptr, nullptr)
OPTION(prefix_1, &"-driver-filelist-threshold="[1], driver_filelist_threshold_EQ, Joined, INVALID, driver_filelist_threshold, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-driver-filelist-threshold"[1], driver_filelist_threshold, Separate, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Pass input or output file names as filelists if there are more than <n>", "<n>", nullptr)
OPTION(prefix_1, &"-driver-force-response-files"[1], driver_force_response_files, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Force the use of response files for testing", nullptr, nullptr)
OPTION(prefix_3, &"--driver-mode="[2], driver_mode, Joined, INVALID, INVALID, nullptr, HelpHidden, 0,
"Set the driver mode to either 'swift' or 'swiftc'", nullptr, nullptr)
OPTION(prefix_1, &"-driver-print-actions"[1], driver_print_actions, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Dump list of actions to perform", nullptr, nullptr)
OPTION(prefix_1, &"-driver-print-bindings"[1], driver_print_bindings, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Dump list of job inputs and outputs", nullptr, nullptr)
OPTION(prefix_1, &"-driver-print-derived-output-file-map"[1], driver_print_derived_output_file_map, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Dump the contents of the derived output file map", nullptr, nullptr)
OPTION(prefix_1, &"-driver-print-jobs"[1], driver_print_jobs, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Dump list of jobs to execute", nullptr, nullptr)
OPTION(prefix_1, &"-driver-print-output-file-map"[1], driver_print_output_file_map, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Dump the contents of the output file map", nullptr, nullptr)
OPTION(prefix_1, &"-driver-show-incremental"[1], driver_show_incremental, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"With -v, dump information about why files are being rebuilt", nullptr, nullptr)
OPTION(prefix_1, &"-driver-show-job-lifecycle"[1], driver_show_job_lifecycle, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Show every step in the lifecycle of driver jobs", nullptr, nullptr)
OPTION(prefix_1, &"-driver-skip-execution"[1], driver_skip_execution, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Skip execution of subtasks when performing compilation", nullptr, nullptr)
OPTION(prefix_1, &"-driver-time-compilation"[1], driver_time_compilation, Flag, INVALID, INVALID, nullptr, NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Prints the total time it took to execute all compilation tasks", nullptr, nullptr)
OPTION(prefix_1, &"-driver-use-filelists"[1], driver_use_filelists, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Pass input files as filelists whenever possible", nullptr, nullptr)
OPTION(prefix_1, &"-driver-use-frontend-path"[1], driver_use_frontend_path, Separate, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Use the given executable to perform compilations. Arguments can be passed as a ';' separated list", nullptr, nullptr)
OPTION(prefix_1, &"-driver-verify-fine-grained-dependency-graph-after-every-import"[1], driver_verify_fine_grained_dependency_graph_after_every_import, Flag, internal_debug_Group, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Debug DriverGraph by verifying it after every import", nullptr, nullptr)
OPTION(prefix_1, &"-dump-api-path"[1], dump_api_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"The path to output swift interface files for the compiled source files", nullptr, nullptr)
OPTION(prefix_1, &"-dump-ast"[1], dump_ast, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Parse and type-check input file(s) and dump AST(s)", nullptr, nullptr)
OPTION(prefix_1, &"-dump-clang-diagnostics"[1], dump_clang_diagnostics, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Dump Clang diagnostics to stderr", nullptr, nullptr)
OPTION(prefix_1, &"-dump-interface-hash"[1], dump_interface_hash, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Parse input file(s) and dump interface token hash(es)", nullptr, nullptr)
OPTION(prefix_1, &"-dump-jit"[1], dump_jit, JoinedOrSeparate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Dump JIT contents", nullptr, nullptr)
OPTION(prefix_1, &"-dump-migration-states-dir"[1], dump_migration_states_dir, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild | ArgumentIsPath, 0,
"Dump the input text, output text, and states for migration to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-dump-parse"[1], dump_parse, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Parse input file(s) and dump AST(s)", nullptr, nullptr)
OPTION(prefix_1, &"-dump-pcm"[1], dump_pcm, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Dump debugging information about a precompiled Clang module", nullptr, nullptr)
OPTION(prefix_1, &"-dump-scope-maps"[1], dump_scope_maps, Separate, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Parse and type-check input file(s) and dump the scope map(s)", "<expanded-or-list-of-line:column>", nullptr)
OPTION(prefix_2, &"-dump-sdk"[1], dump_sdk, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Dump SDK content to JSON file", nullptr, nullptr)
OPTION(prefix_1, &"-dump-type-info"[1], dump_type_info, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Output YAML dump of fixed-size types from all imported modules", nullptr, nullptr)
OPTION(prefix_1, &"-dump-type-refinement-contexts"[1], dump_type_refinement_contexts, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Type-check input file(s) and dump type refinement contexts(s)", nullptr, nullptr)
OPTION(prefix_1, &"-dump-usr"[1], dump_usr, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Dump USR for each declaration reference", nullptr, nullptr)
OPTION(prefix_1, &"-D"[1], D, JoinedOrSeparate, INVALID, INVALID, nullptr, FrontendOption, 0,
"Marks a conditional compilation flag as true", nullptr, nullptr)
OPTION(prefix_1, &"-embed-bitcode-marker"[1], embed_bitcode_marker, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Embed placeholder LLVM IR data as a marker", nullptr, nullptr)
OPTION(prefix_1, &"-embed-bitcode"[1], embed_bitcode, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Embed LLVM IR bitcode as data", nullptr, nullptr)
OPTION(prefix_1, &"-embed-tbd-for-module"[1], embed_tbd_for_module, Separate, INVALID, INVALID, nullptr, FrontendOption, 0,
"Embed symbols from the module in the emitted tbd file", nullptr, nullptr)
OPTION(prefix_1, &"-emit-assembly"[1], emit_assembly, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit assembly file(s) (-S)", nullptr, nullptr)
OPTION(prefix_1, &"-emit-bc"[1], emit_bc, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit LLVM BC file(s)", nullptr, nullptr)
OPTION(prefix_1, &"-emit-dependencies-path"[1], emit_dependencies_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Output basic Make-compatible dependencies file to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-dependencies"[1], emit_dependencies, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | SupplementaryOutput, 0,
"Emit basic Make-compatible dependencies files", nullptr, nullptr)
OPTION(prefix_1, &"-emit-executable"[1], emit_executable, Flag, modes_Group, INVALID, nullptr, NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit a linked executable", nullptr, nullptr)
OPTION(prefix_1, &"-emit-fine-grained-dependency-sourcefile-dot-files"[1], emit_fine_grained_dependency_sourcefile_dot_files, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Emit dot files for every source file.", nullptr, nullptr)
OPTION(prefix_1, &"-emit-fixits-path"[1], emit_fixits_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Output compiler fixits as source edits to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-imported-modules"[1], emit_imported_modules, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit a list of the imported modules", nullptr, nullptr)
OPTION(prefix_1, &"-emit-irgen"[1], emit_irgen, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit LLVM IR file(s) before LLVM optimizations", nullptr, nullptr)
OPTION(prefix_1, &"-emit-ir"[1], emit_ir, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit LLVM IR file(s) after LLVM optimizations", nullptr, nullptr)
OPTION(prefix_1, &"-emit-ldadd-cfile-path"[1], emit_ldadd_cfile_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Generate .c file defining symbols to add back", "<path>", nullptr)
OPTION(prefix_1, &"-emit-library"[1], emit_library, Flag, modes_Group, INVALID, nullptr, NoInteractiveOption, 0,
"Emit a linked library", nullptr, nullptr)
OPTION(prefix_1, &"-emit-loaded-module-trace-path="[1], emit_loaded_module_trace_path_EQ, Joined, INVALID, emit_loaded_module_trace_path, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath | SupplementaryOutput, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-emit-loaded-module-trace-path"[1], emit_loaded_module_trace_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath | SupplementaryOutput, 0,
"Emit the loaded module trace JSON to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-loaded-module-trace"[1], emit_loaded_module_trace, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | SupplementaryOutput, 0,
"Emit a JSON file containing information about what modules were loaded", nullptr, nullptr)
OPTION(prefix_1, &"-emit-migrated-file-path"[1], emit_migrated_file_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit the migrated source file to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-module-doc-path"[1], emit_module_doc_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Output module documentation file <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-module-doc"[1], emit_module_doc, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Emit a module documentation file based on documentation comments", nullptr, nullptr)
OPTION(prefix_1, &"-emit-module-interface-path"[1], emit_module_interface_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath | SupplementaryOutput, 0,
"Output module interface file to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-module-interface"[1], emit_module_interface, Flag, INVALID, INVALID, nullptr, NoInteractiveOption | SupplementaryOutput, 0,
"Output module interface file", nullptr, nullptr)
OPTION(prefix_1, &"-emit-module-path="[1], emit_module_path_EQ, Joined, INVALID, emit_module_path, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath | SupplementaryOutput, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-emit-module-path"[1], emit_module_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath | SupplementaryOutput, 0,
"Emit an importable module to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-module-source-info-path"[1], emit_module_source_info_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath | SupplementaryOutput, 0,
"Output module source info file to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-module-source-info"[1], emit_module_source_info, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Output module source info file", nullptr, nullptr)
OPTION(prefix_1, &"-emit-module-summary-path"[1], emit_module_summary_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath | SupplementaryOutput, 0,
"Output module summary file to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-module-summary"[1], emit_module_summary, Flag, INVALID, INVALID, nullptr, NoInteractiveOption | SupplementaryOutput, 0,
"Output module summary file", nullptr, nullptr)
OPTION(prefix_1, &"-emit-module"[1], emit_module, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | SupplementaryOutput, 0,
"Emit an importable module", nullptr, nullptr)
OPTION(prefix_1, &"-emit-objc-header-path"[1], emit_objc_header_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath | SupplementaryOutput, 0,
"Emit an Objective-C header file to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-objc-header"[1], emit_objc_header, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | SupplementaryOutput, 0,
"Emit an Objective-C header file", nullptr, nullptr)
OPTION(prefix_1, &"-emit-object"[1], emit_object, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit object file(s) (-c)", nullptr, nullptr)
OPTION(prefix_1, &"-emit-parseable-module-interface-path"[1], emit_parseable_module_interface_path, Separate, INVALID, emit_module_interface_path, nullptr, FrontendOption | NoInteractiveOption | HelpHidden | ArgumentIsPath | SupplementaryOutput, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-emit-parseable-module-interface"[1], emit_parseable_module_interface, Flag, INVALID, emit_module_interface, nullptr, NoInteractiveOption | HelpHidden | SupplementaryOutput, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-emit-pch"[1], emit_pch, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Emit PCH for imported Objective-C header file", nullptr, nullptr)
OPTION(prefix_1, &"-emit-pcm"[1], emit_pcm, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit a precompiled Clang module from a module map", nullptr, nullptr)
OPTION(prefix_1, &"-emit-private-module-interface-path"[1], emit_private_module_interface_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | HelpHidden | ArgumentIsPath | SupplementaryOutput, 0,
"Output private module interface file to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-reference-dependencies-path"[1], emit_reference_dependencies_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Output Swift-style dependencies file to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-reference-dependencies"[1], emit_reference_dependencies, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Emit a Swift-style dependencies file", nullptr, nullptr)
OPTION(prefix_1, &"-emit-remap-file-path"[1], emit_remap_file_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit the replacement map describing Swift Migrator changes to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-sibgen"[1], emit_sibgen, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit serialized AST + raw SIL file(s)", nullptr, nullptr)
OPTION(prefix_1, &"-emit-sib"[1], emit_sib, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit serialized AST + canonical SIL file(s)", nullptr, nullptr)
OPTION(prefix_1, &"-emit-silgen"[1], emit_silgen, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit raw SIL file(s)", nullptr, nullptr)
OPTION(prefix_1, &"-emit-sil"[1], emit_sil, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit canonical SIL file(s)", nullptr, nullptr)
OPTION(prefix_1, &"-emit-sorted-sil"[1], emit_sorted_sil, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"When printing SIL, print out all sil entities sorted by name to ease diffing", nullptr, nullptr)
OPTION(prefix_1, &"-emit-stack-promotion-checks"[1], stack_promotion_checks, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Emit runtime checks for correct stack promotion of objects.", nullptr, nullptr)
OPTION(prefix_1, &"-emit-supported-features"[1], emit_supported_features, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit a JSON file including all supported compiler features", nullptr, nullptr)
OPTION(prefix_1, &"-emit-symbol-graph-dir"[1], emit_symbol_graph_dir, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath | SupplementaryOutput | HelpHidden, 0,
"Emit a symbol graph to directory <dir>", "<dir>", nullptr)
OPTION(prefix_1, &"-emit-symbol-graph"[1], emit_symbol_graph, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | SupplementaryOutput | HelpHidden, 0,
"Emit a symbol graph", nullptr, nullptr)
OPTION(prefix_1, &"-emit-syntax"[1], emit_syntax, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Parse input file(s) and emit the Syntax tree(s) as JSON", nullptr, nullptr)
OPTION(prefix_1, &"-emit-tbd-path="[1], emit_tbd_path_EQ, Joined, INVALID, emit_tbd_path, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath | SupplementaryOutput, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-emit-tbd-path"[1], emit_tbd_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath | SupplementaryOutput, 0,
"Emit the TBD file to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-emit-tbd"[1], emit_tbd, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | SupplementaryOutput, 0,
"Emit a TBD file", nullptr, nullptr)
OPTION(prefix_1, &"-emit-verbose-sil"[1], emit_verbose_sil, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Emit locations during SIL emission", nullptr, nullptr)
OPTION(prefix_2, &"-empty-baseline"[1], empty_baseline, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Use empty baseline for diagnostics", nullptr, nullptr)
OPTION(prefix_1, &"-enable-access-control"[1], enable_access_control, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Respect access control restrictions", nullptr, nullptr)
OPTION(prefix_1, &"-enable-actor-data-race-checks"[1], enable_actor_data_race_checks, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Emit runtime checks for actor data races", nullptr, nullptr)
OPTION(prefix_1, &"-enable-anonymous-context-mangled-names"[1], enable_anonymous_context_mangled_names, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable emission of mangled names in anonymous context descriptors", nullptr, nullptr)
OPTION(prefix_1, &"-enable-ast-verifier"[1], enable_ast_verifier, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Run the AST verifier during compilation. NOTE: This lets the user override the default behavior on whether or not the ASTVerifier is run. The default behavior is to run the verifier when asserts are enabled and not run it when asserts are disabled. NOTE: Can not be used if disable-ast-verifier is used as well", nullptr, nullptr)
OPTION(prefix_1, &"-enable-batch-mode"[1], enable_batch_mode, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | HelpHidden, 0,
"Enable combining frontend jobs into batches", nullptr, nullptr)
OPTION(prefix_1, &"-enable-bridging-pch"[1], enable_bridging_pch, Flag, INVALID, INVALID, nullptr, HelpHidden, 0,
"Enable automatic generation of bridging PCH files", nullptr, nullptr)
OPTION(prefix_1, &"-enable-conformance-availability-errors"[1], enable_conformance_availability_errors, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Diagnose conformance availability violations as errors", nullptr, nullptr)
OPTION(prefix_1, &"-enable-copy-propagation"[1], enable_copy_propagation, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Run SIL copy propagation to shorten object lifetime.", nullptr, nullptr)
OPTION(prefix_1, &"-enable-cross-import-overlays"[1], enable_cross_import_overlays, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Automatically import declared cross-import overlays.", nullptr, nullptr)
OPTION(prefix_1, &"-enable-cxx-interop"[1], enable_cxx_interop, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable C++ interop code generation and config directives", nullptr, nullptr)
OPTION(prefix_1, &"-enable-deserialization-recovery"[1], enable_deserialization_recovery, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Attempt to recover from missing xrefs (etc) in swiftmodules", nullptr, nullptr)
OPTION(prefix_1, &"-enable-dynamic-replacement-chaining"[1], enable_dynamic_replacement_chaining, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable chaining of dynamic replacements", nullptr, nullptr)
OPTION(prefix_1, &"-enable-experimental-additive-arithmetic-derivation"[1], enable_experimental_additive_arithmetic_derivation, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Enable experimental 'AdditiveArithmetic' derived conformances", nullptr, nullptr)
OPTION(prefix_1, &"-enable-experimental-concise-pound-file"[1], enable_experimental_concise_pound_file, Flag, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOption, 0,
"Enable experimental concise '#file' identifier", nullptr, nullptr)
OPTION(prefix_1, &"-enable-experimental-concurrency"[1], enable_experimental_concurrency, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden | ModuleInterfaceOption, 0,
"Enable experimental concurrency model", nullptr, nullptr)
OPTION(prefix_1, &"-enable-experimental-cxx-interop"[1], enable_experimental_cxx_interop, Flag, INVALID, INVALID, nullptr, 0, 0,
"Allow importing C++ modules into Swift (experimental feature)", nullptr, nullptr)
OPTION(prefix_1, &"-enable-experimental-distributed"[1], enable_experimental_distributed, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden | ModuleInterfaceOption, 0,
"Enable experimental 'distributed' actors and functions", nullptr, nullptr)
OPTION(prefix_1, &"-enable-experimental-flow-sensitive-concurrent-captures"[1], enable_experimental_flow_sensitive_concurrent_captures, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden | ModuleInterfaceOption, 0,
"Enable flow-sensitive concurrent captures", nullptr, nullptr)
OPTION(prefix_1, &"-enable-experimental-forward-mode-differentiation"[1], enable_experimental_forward_mode_differentiation, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Enable experimental forward mode differentiation", nullptr, nullptr)
OPTION(prefix_1, &"-enable-experimental-static-assert"[1], enable_experimental_static_assert, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable experimental #assert", nullptr, nullptr)
OPTION(prefix_1, &"-enable-fuzzy-forward-scan-trailing-closure-matching"[1], enable_fuzzy_forward_scan_trailing_closure_matching, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Enable fuzzy forward-scan trailing closure matching", nullptr, nullptr)
OPTION(prefix_1, &"-enable-implicit-dynamic"[1], enable_implicit_dynamic, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Add 'dynamic' to all declarations", nullptr, nullptr)
OPTION(prefix_1, &"-enable-incremental-imports"[1], enable_incremental_imports, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Enable cross-module incremental build metadata and driver scheduling for Swift modules", nullptr, nullptr)
OPTION(prefix_1, &"-enable-infer-public-sendable"[1], enable_infer_public_concurrent_value, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Enable inference of Sendable conformances for public structs and enums", nullptr, nullptr)
OPTION(prefix_1, &"-enable-invalid-ephemeralness-as-error"[1], enable_invalid_ephemeralness_as_error, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Diagnose invalid ephemeral to non-ephemeral conversions as errors", nullptr, nullptr)
OPTION(prefix_1, &"-enable-library-evolution"[1], enable_library_evolution, Flag, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOption, 0,
"Build the module to allow binary-compatible library evolution", nullptr, nullptr)
OPTION(prefix_1, &"-enable-llvm-value-names"[1], enable_llvm_value_names, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Add names to local values in LLVM IR", nullptr, nullptr)
OPTION(prefix_1, &"-enable-new-operator-lookup"[1], enable_new_operator_lookup, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable the new operator decl and precedencegroup lookup behavior", nullptr, nullptr)
OPTION(prefix_1, &"-enable-nonfrozen-enum-exhaustivity-diagnostics"[1], enable_nonfrozen_enum_exhaustivity_diagnostics, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Diagnose switches over non-frozen enums without catch-all cases", nullptr, nullptr)
OPTION(prefix_1, &"-enable-nskeyedarchiver-diagnostics"[1], enable_nskeyedarchiver_diagnostics, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Diagnose classes with unstable mangled names adopting NSCoding", nullptr, nullptr)
OPTION(prefix_1, &"-enable-objc-attr-requires-foundation-module"[1], enable_objc_attr_requires_foundation_module, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden | ModuleInterfaceOption, 0,
"Enable requiring uses of @objc to require importing the Foundation module", nullptr, nullptr)
OPTION(prefix_1, &"-enable-objc-interop"[1], enable_objc_interop, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden | ModuleInterfaceOption, 0,
"Enable Objective-C interop code generation and config directives", nullptr, nullptr)
OPTION(prefix_1, &"-enable-only-one-dependency-file"[1], enable_only_one_dependency_file, Flag, INVALID, INVALID, nullptr, DoesNotAffectIncrementalBuild, 0,
"Enables incremental build optimization that only produces one dependencies file", nullptr, nullptr)
OPTION(prefix_1, &"-enable-operator-designated-types"[1], enable_operator_designated_types, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable operator designated types", nullptr, nullptr)
OPTION(prefix_1, &"-enable-ossa-modules"[1], enable_ossa_modules, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Always serialize SIL in ossa form. If this flag is not passed in, when optimizing ownership will be lowered before serializing SIL", nullptr, nullptr)
OPTION(prefix_1, &"-enable-private-imports"[1], enable_private_imports, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | HelpHidden, 0,
"Allows this module's internal and private API to be accessed", nullptr, nullptr)
OPTION(prefix_1, &"-enable-requirement-machine"[1], enable_requirement_machine, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable experimental generics implementation", nullptr, nullptr)
OPTION(prefix_1, &"-enable-resilience"[1], enable_resilience, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden | ModuleInterfaceOption, 0,
"Deprecated, use -enable-library-evolution instead", nullptr, nullptr)
OPTION(prefix_1, &"-enable-sil-opaque-values"[1], enable_sil_opaque_values, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable SIL Opaque Values", nullptr, nullptr)
OPTION(prefix_1, &"-enable-source-import"[1], enable_source_import, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable importing of Swift source files", nullptr, nullptr)
OPTION(prefix_1, &"-enable-spec-devirt"[1], enable_spec_devirt, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable speculative devirtualization pass.", nullptr, nullptr)
OPTION(prefix_1, &"-enable-swift3-objc-inference"[1], enable_swift3_objc_inference, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable Swift 3's @objc inference rules for NSObject-derived classes and 'dynamic' members (emulates Swift 3 behavior)", nullptr, nullptr)
OPTION(prefix_1, &"-enable-target-os-checking"[1], enable_target_os_checking, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Enable checking the target OS of serialized modules", nullptr, nullptr)
OPTION(prefix_1, &"-enable-testable-attr-requires-testable-module"[1], enable_testable_attr_requires_testable_module, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Enable checking of @testable", nullptr, nullptr)
OPTION(prefix_1, &"-enable-testing"[1], enable_testing, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | HelpHidden, 0,
"Allows this module's internal API to be accessed for testing", nullptr, nullptr)
OPTION(prefix_1, &"-enable-throw-without-try"[1], enable_throw_without_try, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Allow throwing function calls without 'try'", nullptr, nullptr)
OPTION(prefix_1, &"-enable-type-layout"[1], enable_type_layouts, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable type layout based lowering", nullptr, nullptr)
OPTION(prefix_1, &"-enable-verify-exclusivity"[1], enable_verify_exclusivity, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable verification of access markers used to enforce exclusivity.", nullptr, nullptr)
OPTION(prefix_1, &"-enable-volatile-modules"[1], enable_volatile_modules, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Load Swift modules in memory", nullptr, nullptr)
OPTION(prefix_1, &"-enforce-exclusivity="[1], enforce_exclusivity_EQ, Joined, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOption, 0,
"Enforce law of exclusivity", "<enforcement>", nullptr)
OPTION(prefix_1, &"-entry-point-function-name"[1], entry_point_function_name, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Name of the entry point function", "<string>", nullptr)
OPTION(prefix_1, &"-experimental-allow-module-with-compiler-errors"[1], experimental_allow_module_with_compiler_errors, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Attempt to output .swiftmodule, regardless of compilation errors", nullptr, nullptr)
OPTION(prefix_1, &"-experimental-cxx-stdlib"[1], experimental_cxx_stdlib, Separate, INVALID, INVALID, nullptr, 0, 0,
"C++ standard library to use; forwarded to Clang's -stdlib flag", nullptr, nullptr)
OPTION(prefix_1, &"-experimental-one-way-closure-params"[1], experimental_one_way_closure_params, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable experimental support for one-way closure parameters", nullptr, nullptr)
OPTION(prefix_1, &"-experimental-print-full-convention"[1], experimental_print_full_convention, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"When emitting a module interface or SIL, emit additional @convention arguments, regardless of whether they were written in the source. Also requires -use-clang-function-types to be enabled.", nullptr, nullptr)
OPTION(prefix_1, &"-experimental-skip-all-function-bodies"[1], experimental_skip_all_function_bodies, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Skip type-checking function bodies and all SIL generation", nullptr, nullptr)
OPTION(prefix_1, &"-experimental-skip-non-inlinable-function-bodies-without-types"[1], experimental_skip_non_inlinable_function_bodies_without_types, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Skip work on non-inlinable function bodies that do not declare nested types", nullptr, nullptr)
OPTION(prefix_1, &"-experimental-skip-non-inlinable-function-bodies"[1], experimental_skip_non_inlinable_function_bodies, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Skip type-checking and SIL generation for non-inlinable function bodies", nullptr, nullptr)
OPTION(prefix_1, &"-experimental-spi-imports"[1], experimental_spi_imports, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Enable experimental support for SPI imports", nullptr, nullptr)
OPTION(prefix_1, &"-explicit-swift-module-map-file"[1], explict_swift_module_map, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Specify a JSON file containing information of explict Swift modules", "<path>", nullptr)
OPTION(prefix_1, &"-external-pass-pipeline-filename"[1], external_pass_pipeline_filename, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Use the pass pipeline defined by <pass_pipeline_file>", "<pass_pipeline_file>", nullptr)
OPTION(prefix_1, &"-F="[1], F_EQ, Joined, INVALID, F, nullptr, FrontendOption | ArgumentIsPath, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-filelist"[1], filelist, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Specify source inputs in a file rather than on the command line", nullptr, nullptr)
OPTION(prefix_2, &"-find-usr"[1], find_usr, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Find USR for decls by given condition", nullptr, nullptr)
OPTION(prefix_1, &"-fixit-all"[1], fixit_all, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Apply all fixits from diagnostics without any filtering", nullptr, nullptr)
OPTION(prefix_1, &"-force-public-linkage"[1], force_public_linkage, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Force public linkage for private symbols. Used by LLDB.", nullptr, nullptr)
OPTION(prefix_1, &"-force-single-frontend-invocation"[1], force_single_frontend_invocation, Flag, INVALID, whole_module_optimization, nullptr, FrontendOption | NoInteractiveOption | HelpHidden, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-framework"[1], framework, Separate, linker_option_Group, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Specifies a framework which should be linked against", nullptr, nullptr)
OPTION(prefix_1, &"-frontend-parseable-output"[1], frontend_parseable_output, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Emit textual output in a parseable format", nullptr, nullptr)
OPTION(prefix_1, &"-Fsystem"[1], Fsystem, Separate, INVALID, INVALID, nullptr, FrontendOption | ArgumentIsPath | SwiftAPIExtractOption | SwiftSymbolGraphExtractOption, 0,
"Add directory to system framework search path", nullptr, nullptr)
OPTION(prefix_1, &"-function-sections"[1], function_sections, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Emit functions to separate sections.", nullptr, nullptr)
OPTION(prefix_1, &"-F"[1], F, JoinedOrSeparate, INVALID, INVALID, nullptr, FrontendOption | ArgumentIsPath | SwiftAPIExtractOption | SwiftSymbolGraphExtractOption | SwiftAPIDigesterOption, 0,
"Add directory to framework search path", nullptr, nullptr)
OPTION(prefix_1, &"-gdwarf-types"[1], gdwarf_types, Flag, g_Group, INVALID, nullptr, FrontendOption, 0,
"Emit full DWARF type info.", nullptr, nullptr)
OPTION(prefix_2, &"-generate-empty-baseline"[1], generate_empty_baseline, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Generate an empty baseline", nullptr, nullptr)
OPTION(prefix_2, &"-generate-migration-script"[1], generate_migration_script, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Compare SDK content in JSON file and generate migration script", nullptr, nullptr)
OPTION(prefix_2, &"-generate-name-correction"[1], generate_name_correction, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Generate name correction template", nullptr, nullptr)
OPTION(prefix_1, &"-gline-tables-only"[1], gline_tables_only, Flag, g_Group, INVALID, nullptr, FrontendOption, 0,
"Emit minimal debug info for backtraces only", nullptr, nullptr)
OPTION(prefix_1, &"-gnone"[1], gnone, Flag, g_Group, INVALID, nullptr, FrontendOption, 0,
"Don't emit debug info", nullptr, nullptr)
OPTION(prefix_1, &"-group-info-path"[1], group_info_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"The path to collect the group information of the compiled module", nullptr, nullptr)
OPTION(prefix_1, &"-gsil"[1], debug_on_sil, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Write the SIL into a file and generate debug-info to debug on SIL level.", nullptr, nullptr)
OPTION(prefix_1, &"-g"[1], g, Flag, g_Group, INVALID, nullptr, FrontendOption, 0,
"Emit debug info. This is the preferred setting for debugging with LLDB.", nullptr, nullptr)
OPTION(prefix_2, &"-help-hidden"[1], help_hidden, Flag, INVALID, INVALID, nullptr, HelpHidden | FrontendOption, 0,
"Display available options, including hidden options", nullptr, nullptr)
OPTION(prefix_2, &"-help"[1], help, Flag, INVALID, INVALID, nullptr, FrontendOption | AutolinkExtractOption | ModuleWrapOption | SwiftIndentOption | SwiftAPIExtractOption | SwiftSymbolGraphExtractOption | SwiftAPIDigesterOption, 0,
"Display available options", nullptr, nullptr)
OPTION(prefix_1, &"-h"[1], h, Flag, INVALID, help, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-I="[1], I_EQ, Joined, INVALID, I, nullptr, FrontendOption | ArgumentIsPath, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-iframework"[1], iframework, JoinedOrSeparate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"add a directory to the clang importer system framework search path", nullptr, nullptr)
OPTION(prefix_1, &"-ignore-always-inline"[1], ignore_always_inline, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Ignore @inline(__always) attributes.", nullptr, nullptr)
OPTION(prefix_1, &"-ignore-module-source-info"[1], ignore_module_source_info, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Avoid getting source location from .swiftsourceinfo files", nullptr, nullptr)
OPTION(prefix_2, &"-ignored-usrs"[1], ignored_usrs, Separate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"the file containing USRs of removed decls that the digester should ignore", "<path>", nullptr)
OPTION(prefix_1, &"-import-cf-types"[1], import_cf_types, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Recognize and import CF types as class types", nullptr, nullptr)
OPTION(prefix_1, &"-import-module"[1], import_module, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Implicitly import the specified module", nullptr, nullptr)
OPTION(prefix_1, &"-import-objc-header"[1], import_objc_header, Separate, INVALID, INVALID, nullptr, FrontendOption | HelpHidden | ArgumentIsPath, 0,
"Implicitly imports an Objective-C header file", nullptr, nullptr)
OPTION(prefix_1, &"-import-prescan"[1], import_prescan, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"When performing a dependency scan, only dentify all imports of the main Swift module sources", nullptr, nullptr)
OPTION(prefix_1, &"-import-underlying-module"[1], import_underlying_module, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Implicitly imports the Objective-C half of a module", nullptr, nullptr)
OPTION(prefix_1, &"-in-place"[1], in_place, Flag, code_formatting_Group, INVALID, nullptr, NoInteractiveOption | NoBatchOption | SwiftIndentOption, 0,
"Overwrite input file with formatted file.", nullptr, nullptr)
OPTION(prefix_1, &"-include-spi-symbols"[1], include_spi_symbols, Flag, INVALID, INVALID, nullptr, SwiftSymbolGraphExtractOption | FrontendOption | NoInteractiveOption | SupplementaryOutput | HelpHidden, 0,
"Add symbols with SPI information to the symbol graph", nullptr, nullptr)
OPTION(prefix_1, &"-incremental"[1], incremental, Flag, INVALID, INVALID, nullptr, NoInteractiveOption | HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Perform an incremental build if possible", nullptr, nullptr)
OPTION(prefix_1, &"-indent-switch-case"[1], indent_switch_case, Flag, code_formatting_Group, INVALID, nullptr, NoInteractiveOption | NoBatchOption | SwiftIndentOption, 0,
"Indent cases in switch statements.", nullptr, nullptr)
OPTION(prefix_1, &"-indent-width"[1], indent_width, Separate, code_formatting_Group, INVALID, nullptr, NoInteractiveOption | NoBatchOption | SwiftIndentOption, 0,
"Number of characters to indent.", "<n>", nullptr)
OPTION(prefix_1, &"-index-file-path"[1], index_file_path, Separate, INVALID, INVALID, nullptr, NoInteractiveOption | DoesNotAffectIncrementalBuild | ArgumentIsPath, 0,
"Produce index data for file <path>", "<path>", nullptr)
OPTION(prefix_1, &"-index-file"[1], index_file, Flag, modes_Group, INVALID, nullptr, NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Produce index data for a source file", nullptr, nullptr)
OPTION(prefix_1, &"-index-ignore-stdlib"[1], index_ignore_stdlib, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Avoid emitting index data for the standard library.", nullptr, nullptr)
OPTION(prefix_1, &"-index-ignore-system-modules"[1], index_ignore_system_modules, Flag, INVALID, INVALID, nullptr, NoInteractiveOption, 0,
"Avoid indexing system modules", nullptr, nullptr)
OPTION(prefix_1, &"-index-store-path"[1], index_store_path, Separate, INVALID, INVALID, nullptr, FrontendOption | ArgumentIsPath, 0,
"Store indexing data to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-index-system-modules"[1], index_system_modules, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Emit index data for imported serialized swift system modules", nullptr, nullptr)
OPTION(prefix_1, &"-index-unit-output-path-filelist"[1], index_unit_output_path_filelist, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Specify index unit output paths in a file rather than on the command line", nullptr, nullptr)
OPTION(prefix_1, &"-index-unit-output-path"[1], index_unit_output_path, Separate, INVALID, INVALID, nullptr, FrontendOption | ArgumentIsPath, 0,
"Use <path> as the output path in the produced index data.", "<path>", nullptr)
OPTION(prefix_2, &"-input-paths"[1], input_paths, Separate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"The SDK contents under comparison", "<path>", nullptr)
OPTION(prefix_1, &"-interpret"[1], interpret, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Immediate mode", nullptr, nullptr)
OPTION(prefix_1, &"-I"[1], I, JoinedOrSeparate, INVALID, INVALID, nullptr, FrontendOption | ArgumentIsPath | SwiftAPIExtractOption | SwiftSymbolGraphExtractOption | SwiftAPIDigesterOption, 0,
"Add directory to the import search path", nullptr, nullptr)
OPTION(prefix_1, &"-i"[1], i, Flag, modes_Group, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(prefix_2, &"-json"[1], json, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Print output in JSON format.", nullptr, nullptr)
OPTION(prefix_1, &"-j"[1], j, JoinedOrSeparate, INVALID, INVALID, nullptr, DoesNotAffectIncrementalBuild, 0,
"Number of commands to execute in parallel", "<n>", nullptr)
OPTION(prefix_1, &"-L="[1], L_EQ, Joined, linker_option_Group, L, nullptr, FrontendOption | DoesNotAffectIncrementalBuild | ArgumentIsPath, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-libc"[1], libc, Separate, INVALID, INVALID, nullptr, 0, 0,
"libc runtime library to use", nullptr, nullptr)
OPTION(prefix_1, &"-library-level"[1], library_level, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Library distribution level 'api', 'spi' or 'other' (the default)", "<level>", nullptr)
OPTION(prefix_1, &"-line-range"[1], line_range, Separate, code_formatting_Group, INVALID, nullptr, NoInteractiveOption | NoBatchOption | SwiftIndentOption, 0,
"<start line>:<end line>. Formats a range of lines (1-based). Can only be used with one input file.", "<n:n>", nullptr)
OPTION(prefix_1, &"-link-objc-runtime"[1], link_objc_runtime, Flag, INVALID, INVALID, nullptr, DoesNotAffectIncrementalBuild, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-lldb-repl"[1], lldb_repl, Flag, modes_Group, INVALID, nullptr, NoBatchOption | HelpHidden, 0,
"LLDB-enhanced REPL mode", nullptr, nullptr)
OPTION(prefix_1, &"-load-dependency-scan-cache"[1], reuse_dependency_scan_cache, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"After performing a dependency scan, serialize the scanner's internal state.", nullptr, nullptr)
OPTION(prefix_1, &"-locale"[1], locale, Separate, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Choose a language for diagnostic messages", "<locale-code>", nullptr)
OPTION(prefix_1, &"-localization-path"[1], localization_path, Separate, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild | ArgumentIsPath, 0,
"Path to localized diagnostic messages directory", "<path>", nullptr)
OPTION(prefix_2, &"-location"[1], location, Separate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Filter nodes with the given location.", "<location>", nullptr)
OPTION(prefix_1, &"-lto="[1], lto, Joined, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Specify the LTO type to either 'llvm-thin' or 'llvm-full'", nullptr, nullptr)
OPTION(prefix_1, &"-L"[1], L, JoinedOrSeparate, linker_option_Group, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild | ArgumentIsPath | SwiftAPIExtractOption | SwiftSymbolGraphExtractOption, 0,
"Add directory to library link search path", nullptr, nullptr)
OPTION(prefix_1, &"-l"[1], l, Joined, linker_option_Group, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Specifies a library which should be linked against", nullptr, nullptr)
OPTION(prefix_1, &"-merge-modules"[1], merge_modules, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Merge the input modules without otherwise processing them", nullptr, nullptr)
OPTION(prefix_1, &"-migrate-keep-objc-visibility"[1], migrate_keep_objc_visibility, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"When migrating, add '@objc' to declarations that would've been implicitly visible in Swift 3", nullptr, nullptr)
OPTION(prefix_1, &"-migrator-update-sdk"[1], migrator_update_sdk, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Does nothing. Temporary compatibility flag for Xcode.", nullptr, nullptr)
OPTION(prefix_1, &"-migrator-update-swift"[1], migrator_update_swift, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Does nothing. Temporary compatibility flag for Xcode.", nullptr, nullptr)
OPTION(prefix_2, &"-migrator"[1], migrator, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Dump Json suitable for generating migration script", nullptr, nullptr)
OPTION(prefix_1, &"-minimum-access-level"[1], minimum_access_level, Separate, INVALID, INVALID, nullptr, NoDriverOption | SwiftSymbolGraphExtractOption, 0,
"Include symbols with this access level or more", "<level>", nullptr)
OPTION(prefix_1, &"-module-abi-name"[1], module_abi_name, Separate, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOption, 0,
"ABI name to use for the contents of this module", nullptr, nullptr)
OPTION(prefix_1, &"-module-cache-path"[1], module_cache_path, Separate, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild | ArgumentIsPath | SwiftAPIExtractOption | SwiftSymbolGraphExtractOption | SwiftAPIDigesterOption, 0,
"Specifies the Clang module cache path", nullptr, nullptr)
OPTION(prefix_1, &"-module-interface-preserve-types-as-written"[1], module_interface_preserve_types_as_written, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"When emitting a module interface, preserve types as they were written in the source", nullptr, nullptr)
OPTION(prefix_1, &"-module-link-name="[1], module_link_name_EQ, Joined, INVALID, module_link_name, nullptr, FrontendOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-module-link-name"[1], module_link_name, Separate, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOption, 0,
"Library to link against when using this module", nullptr, nullptr)
OPTION(prefix_1, &"-module-list-file"[1], module_list_file, JoinedOrSeparate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"File containing a new-line separated list of modules", nullptr, nullptr)
OPTION(prefix_1, &"-module-name="[1], module_name_EQ, Joined, INVALID, module_name, nullptr, FrontendOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-module-name"[1], module_name, Separate, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOption | SwiftAPIExtractOption | SwiftSymbolGraphExtractOption, 0,
"Name of the module to build", nullptr, nullptr)
OPTION(prefix_2, &"-module"[1], module, Separate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Names of modules", "<name>", nullptr)
OPTION(prefix_1, &"-new-driver-path"[1], new_driver_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Path of the new driver to be used", "<path>", nullptr)
OPTION(prefix_1, &"-no-clang-module-breadcrumbs"[1], no_clang_module_breadcrumbs, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Don't emit DWARF skeleton CUs for imported Clang modules. Use this when building a redistributable static archive.", nullptr, nullptr)
OPTION(prefix_1, &"-no-color-diagnostics"[1], no_color_diagnostics, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Do not print diagnostics in color", nullptr, nullptr)
OPTION(prefix_1, &"-no-link-objc-runtime"[1], no_link_objc_runtime, Flag, INVALID, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Don't link in additions to the Objective-C runtime", nullptr, nullptr)
OPTION(prefix_1, &"-no-serialize-debugging-options"[1], no_serialize_debugging_options, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Never serialize options for debugging (default: only for apps)", nullptr, nullptr)
OPTION(prefix_1, &"-no-static-executable"[1], no_static_executable, Flag, INVALID, INVALID, nullptr, HelpHidden, 0,
"Don't statically link the executable", nullptr, nullptr)
OPTION(prefix_1, &"-no-static-stdlib"[1], no_static_stdlib, Flag, INVALID, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Don't statically link the Swift standard library", nullptr, nullptr)
OPTION(prefix_1, &"-no-stdlib-rpath"[1], no_stdlib_rpath, Flag, INVALID, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Don't add any rpath entries.", nullptr, nullptr)
OPTION(prefix_1, &"-no-toolchain-stdlib-rpath"[1], no_toolchain_stdlib_rpath, Flag, INVALID, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Do not add an rpath entry for the toolchain's standard library (default)", nullptr, nullptr)
OPTION(prefix_1, &"-no-verify-emitted-module-interface"[1], no_verify_emitted_module_interface, Flag, INVALID, INVALID, nullptr, NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Don't check that module interfaces emitted during compilation typecheck", nullptr, nullptr)
OPTION(prefix_1, &"-no-warnings-as-errors"[1], no_warnings_as_errors, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Don't treat warnings as errors", nullptr, nullptr)
OPTION(prefix_1, &"-no-whole-module-optimization"[1], no_whole_module_optimization, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Disable optimizing input files together instead of individually", nullptr, nullptr)
OPTION(prefix_1, &"-nostdimport"[1], nostdimport, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Don't search the standard library import path for modules", nullptr, nullptr)
OPTION(prefix_1, &"-num-threads"[1], num_threads, Separate, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Enable multi-threading and specify number of threads", "<n>", nullptr)
OPTION(prefix_1, &"-only-use-extra-clang-opts"[1], extra_clang_options_only, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Options passed via -Xcc are sufficient for Clang configuration", nullptr, nullptr)
OPTION(prefix_1, &"-Onone"[1], Onone, Flag, O_Group, INVALID, nullptr, FrontendOption | ModuleInterfaceOption, 0,
"Compile without any optimization", nullptr, nullptr)
OPTION(prefix_1, &"-Oplayground"[1], Oplayground, Flag, O_Group, INVALID, nullptr, HelpHidden | FrontendOption | ModuleInterfaceOption, 0,
"Compile with optimizations appropriate for a playground", nullptr, nullptr)
OPTION(prefix_1, &"-Osize"[1], Osize, Flag, O_Group, INVALID, nullptr, FrontendOption | ModuleInterfaceOption, 0,
"Compile with optimizations and target small code size", nullptr, nullptr)
OPTION(prefix_1, &"-Ounchecked"[1], Ounchecked, Flag, O_Group, INVALID, nullptr, FrontendOption | ModuleInterfaceOption, 0,
"Compile with optimizations and remove runtime safety checks", nullptr, nullptr)
OPTION(prefix_1, &"-output-dir"[1], output_dir, Separate, INVALID, INVALID, nullptr, NoDriverOption | SwiftSymbolGraphExtractOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"Output directory", "<dir>", nullptr)
OPTION(prefix_1, &"-output-file-map="[1], output_file_map_EQ, Joined, INVALID, output_file_map, nullptr, NoInteractiveOption | ArgumentIsPath, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-output-file-map"[1], output_file_map, Separate, INVALID, INVALID, nullptr, NoInteractiveOption | ArgumentIsPath, 0,
"A file which specifies the location of outputs", "<path>", nullptr)
OPTION(prefix_1, &"-output-filelist"[1], output_filelist, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Specify outputs in a file rather than on the command line", nullptr, nullptr)
OPTION(prefix_1, &"-O"[1], O, Flag, O_Group, INVALID, nullptr, FrontendOption | ModuleInterfaceOption, 0,
"Compile with optimizations", nullptr, nullptr)
OPTION(prefix_1, &"-o"[1], o, JoinedOrSeparate, INVALID, INVALID, nullptr, FrontendOption | AutolinkExtractOption | ModuleWrapOption | NoInteractiveOption | SwiftIndentOption | ArgumentIsPath | SwiftAPIExtractOption | SwiftAPIDigesterOption, 0,
"Write output to <file>", "<file>", nullptr)
OPTION(prefix_1, &"-package-description-version"[1], package_description_version, Separate, INVALID, INVALID, nullptr, FrontendOption | HelpHidden | ModuleInterfaceOption, 0,
"The version number to be applied on the input for the PackageDescription availability kind", "<vers>", nullptr)
OPTION(prefix_1, &"-parse-as-library"[1], parse_as_library, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Parse the input file(s) as libraries, not scripts", nullptr, nullptr)
OPTION(prefix_1, &"-parse-sil"[1], parse_sil, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Parse the input file as SIL code, not Swift source", nullptr, nullptr)
OPTION(prefix_1, &"-parse-stdlib"[1], parse_stdlib, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden | ModuleInterfaceOption, 0,
"Parse the input file(s) as the Swift standard library", nullptr, nullptr)
OPTION(prefix_1, &"-parseable-output"[1], parseable_output, Flag, INVALID, INVALID, nullptr, NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Emit textual output in a parseable format", nullptr, nullptr)
OPTION(prefix_1, &"-parse"[1], parse, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Parse input file(s)", nullptr, nullptr)
OPTION(prefix_1, &"-pc-macro"[1], pc_macro, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Apply the 'program counter simulation' macro", nullptr, nullptr)
OPTION(prefix_1, &"-pch-disable-validation"[1], pch_disable_validation, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable validating the persistent PCH", nullptr, nullptr)
OPTION(prefix_1, &"-pch-output-dir"[1], pch_output_dir, Separate, INVALID, INVALID, nullptr, FrontendOption | HelpHidden | ArgumentIsPath, 0,
"Directory to persist automatically created precompiled bridging headers", nullptr, nullptr)
OPTION(prefix_1, &"-placeholder-dependency-module-map-file"[1], placeholder_dependency_module_map, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Specify a JSON file containing information of external Swift module dependencies", "<path>", nullptr)
OPTION(prefix_1, &"-playground-high-performance"[1], playground_high_performance, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Omit instrumentation that has a high runtime performance impact", nullptr, nullptr)
OPTION(prefix_1, &"-playground"[1], playground, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Apply the playground semantics and transformation", nullptr, nullptr)
OPTION(prefix_1, &"-prebuilt-module-cache-path="[1], prebuilt_module_cache_path_EQ, Joined, INVALID, prebuilt_module_cache_path, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-prebuilt-module-cache-path"[1], prebuilt_module_cache_path, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Directory of prebuilt modules for loading module interfaces", nullptr, nullptr)
OPTION(prefix_1, &"-prespecialize-generic-metadata"[1], prespecialize_generic_metadata, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Statically specialize metadata for generic types at types that are known to be used in source.", nullptr, nullptr)
OPTION(prefix_1, &"-pretty-print"[1], pretty_print, Flag, INVALID, INVALID, nullptr, SwiftAPIExtractOption | SwiftSymbolGraphExtractOption, 0,
"Pretty-print the output JSON", nullptr, nullptr)
OPTION(prefix_1, &"-previous-module-installname-map-file"[1], previous_module_installname_map_file, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Path to a Json file indicating module name to installname map for @_originallyDefinedIn", "<path>", nullptr)
OPTION(prefix_1, &"-primary-filelist"[1], primary_filelist, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Specify primary inputs in a file rather than on the command line", nullptr, nullptr)
OPTION(prefix_1, &"-primary-file"[1], primary_file, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Produce output for this file, not the whole module", nullptr, nullptr)
OPTION(prefix_1, &"-print-ast"[1], print_ast, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Parse and type-check input file(s) and pretty print AST(s)", nullptr, nullptr)
OPTION(prefix_1, &"-print-clang-stats"[1], print_clang_stats, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Print Clang importer statistics", nullptr, nullptr)
OPTION(prefix_1, &"-print-educational-notes"[1], print_educational_notes, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Include educational notes in printed diagnostic output, if available", nullptr, nullptr)
OPTION(prefix_1, &"-print-inst-counts"[1], print_inst_counts, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Before IRGen, count all the various SIL instructions. Must be used in conjunction with -print-stats.", nullptr, nullptr)
OPTION(prefix_1, &"-print-llvm-inline-tree"[1], print_llvm_inline_tree, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Print the LLVM inline tree.", nullptr, nullptr)
OPTION(prefix_2, &"-print-module"[1], print_module, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Print module names in diagnostics", nullptr, nullptr)
OPTION(prefix_1, &"-print-stats"[1], print_stats, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Print various statistics", nullptr, nullptr)
OPTION(prefix_1, &"-print-target-info"[1], print_target_info, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Print target information for the given target <triple>, such as x86_64-apple-macos10.9", "<triple>", nullptr)
OPTION(prefix_1, &"-profile-coverage-mapping"[1], profile_coverage_mapping, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Generate coverage data for use with profiled execution counts", nullptr, nullptr)
OPTION(prefix_1, &"-profile-generate"[1], profile_generate, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Generate instrumented code to collect execution counts", nullptr, nullptr)
OPTION(prefix_1, &"-profile-stats-entities"[1], profile_stats_entities, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Profile changes to stats in -stats-output-dir, subdivided by source entity", nullptr, nullptr)
OPTION(prefix_1, &"-profile-stats-events"[1], profile_stats_events, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Profile changes to stats in -stats-output-dir", nullptr, nullptr)
OPTION(prefix_1, &"-profile-use="[1], profile_use, CommaJoined, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | ArgumentIsPath, 0,
"Supply a profdata file to enable profile-guided optimization", "<profdata>", nullptr)
OPTION(prefix_2, &"-protocol-requirement-allow-list"[1], protocol_requirement_allow_list, Separate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption | ArgumentIsPath, 0,
"File containing a new-line separated list of protocol names", "<path>", nullptr)
OPTION(prefix_1, &"-public-autolink-library"[1], public_autolink_library, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Add public dependent library", nullptr, nullptr)
OPTION(prefix_1, &"-Raccess-note="[1], Raccess_note_EQ, Joined, INVALID, Raccess_note, nullptr, FrontendOption | NoDriverOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-Raccess-note"[1], Raccess_note, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Control access note remarks (default: all)", "none|failures|all|all-validate", nullptr)
OPTION(prefix_1, &"-Rcross-import"[1], emit_cross_import_remarks, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Emit a remark if a cross-import of a module is triggered.", nullptr, nullptr)
OPTION(prefix_1, &"-Rdependency-scan-cache"[1], dependency_scan_cache_remarks, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Emit remarks indicating use of the serialized module dependency scanning cache.", nullptr, nullptr)
OPTION(prefix_1, &"-read-legacy-type-info-path="[1], read_legacy_type_info_path_EQ, Joined, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Read legacy type layout from the given path instead of default path", nullptr, nullptr)
OPTION(prefix_1, &"-remove-runtime-asserts"[1], RemoveRuntimeAsserts, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Remove runtime safety checks.", nullptr, nullptr)
OPTION(prefix_1, &"-repl"[1], repl, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoBatchOption | HelpHidden, 0,
"REPL mode (the default if there is no input file)", nullptr, nullptr)
OPTION(prefix_1, &"-report-errors-to-debugger"[1], report_errors_to_debugger, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Deprecated, will be removed in future versions.", nullptr, nullptr)
OPTION(prefix_1, &"-require-explicit-availability-target"[1], require_explicit_availability_target, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Suggest fix-its adding @available(<target>, *) to public declarations without availability", "<target>", nullptr)
OPTION(prefix_1, &"-require-explicit-availability"[1], require_explicit_availability, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Require explicit availability on public declarations", nullptr, nullptr)
OPTION(prefix_1, &"-requirement-machine-depth-limit"[1], requirement_machine_depth_limit, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Set the maximum depth before we give up on confluent completion", nullptr, nullptr)
OPTION(prefix_1, &"-requirement-machine-step-limit"[1], requirement_machine_step_limit, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Set the maximum steps before we give up on confluent completion", nullptr, nullptr)
OPTION(prefix_1, &"-resolve-imports"[1], resolve_imports, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Parse and resolve imports in input file(s)", nullptr, nullptr)
OPTION(prefix_1, &"-resource-dir"[1], resource_dir, Separate, INVALID, INVALID, nullptr, FrontendOption | SwiftSymbolGraphExtractOption | SwiftAPIDigesterOption | HelpHidden | ArgumentIsPath, 0,
"The directory that holds the compiler resource files", "</usr/lib/swift>", nullptr)
OPTION(prefix_1, &"-Rmodule-interface-rebuild"[1], Rmodule_interface_rebuild, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Emits a remark if an imported module needs to be re-compiled from its module interface", nullptr, nullptr)
OPTION(prefix_1, &"-Rmodule-loading"[1], remark_loading_module, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Emit a remark and file path of each loaded module", nullptr, nullptr)
OPTION(prefix_1, &"-Rpass-missed="[1], Rpass_missed_EQ, Joined, INVALID, INVALID, nullptr, FrontendOption, 0,
"Report missed transformations by optimization passes whose name matches the given POSIX regular expression", nullptr, nullptr)
OPTION(prefix_1, &"-Rpass="[1], Rpass_EQ, Joined, INVALID, INVALID, nullptr, FrontendOption, 0,
"Report performed transformations by optimization passes whose name matches the given POSIX regular expression", nullptr, nullptr)
OPTION(prefix_1, &"-runtime-compatibility-version"[1], runtime_compatibility_version, Separate, INVALID, INVALID, nullptr, FrontendOption, 0,
"Link compatibility library for Swift runtime version, or 'none'", nullptr, nullptr)
OPTION(prefix_1, &"-sanitize-address-use-odr-indicator"[1], sanitize_address_use_odr_indicator, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | HelpHidden, 0,
"When using AddressSanitizer enable ODR indicator globals to avoid false ODR violation reports in partially sanitized programs at the cost of an increase in binary size", nullptr, nullptr)
OPTION(prefix_1, &"-sanitize-coverage="[1], sanitize_coverage_EQ, CommaJoined, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Specify the type of coverage instrumentation for Sanitizers and additional options separated by commas", "<type>", nullptr)
OPTION(prefix_1, &"-sanitize-recover="[1], sanitize_recover_EQ, CommaJoined, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Specify which sanitizer runtime checks (see -sanitize=) will generate instrumentation that allows error recovery. Listed checks should be comma separated. Default behavior is to not allow error recovery.", "<check>", nullptr)
OPTION(prefix_1, &"-sanitize="[1], sanitize_EQ, CommaJoined, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Turn on runtime checks for erroneous behavior.", "<check>", nullptr)
OPTION(prefix_1, &"-save-optimization-record-passes"[1], save_optimization_record_passes, Separate, INVALID, INVALID, nullptr, FrontendOption, 0,
"Only include passes which match a specified regular expression inthe generated optimization record (by default, include all passes)", "<regex>", nullptr)
OPTION(prefix_1, &"-save-optimization-record-path"[1], save_optimization_record_path, Separate, INVALID, INVALID, nullptr, FrontendOption | ArgumentIsPath, 0,
"Specify the file name of any generated optimization record", nullptr, nullptr)
OPTION(prefix_1, &"-save-optimization-record="[1], save_optimization_record_EQ, Joined, INVALID, INVALID, nullptr, FrontendOption, 0,
"Generate an optimization record file in a specific format (default: YAML)", "<format>", nullptr)
OPTION(prefix_1, &"-save-optimization-record"[1], save_optimization_record, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Generate a YAML optimization record file", nullptr, nullptr)
OPTION(prefix_1, &"-save-temps"[1], save_temps, Flag, INVALID, INVALID, nullptr, NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Save intermediate compilation results", nullptr, nullptr)
OPTION(prefix_1, &"-scan-dependencies"[1], scan_dependencies, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Scan dependencies of the given Swift sources", nullptr, nullptr)
OPTION(prefix_1, &"-sdk"[1], sdk, Separate, INVALID, INVALID, nullptr, FrontendOption | ArgumentIsPath | SwiftAPIExtractOption | SwiftSymbolGraphExtractOption | SwiftAPIDigesterOption, 0,
"Compile against <sdk>", "<sdk>", nullptr)
OPTION(prefix_1, &"-serialize-debugging-options"[1], serialize_debugging_options, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Always serialize options for debugging (default: only for apps)", nullptr, nullptr)
OPTION(prefix_1, &"-serialize-dependency-scan-cache"[1], serialize_dependency_scan_cache, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"After performing a dependency scan, serialize the scanner's internal state.", nullptr, nullptr)
OPTION(prefix_1, &"-serialize-diagnostics-path="[1], serialize_diagnostics_path_EQ, Joined, INVALID, serialize_diagnostics_path, nullptr, FrontendOption | SwiftAPIDigesterOption | NoBatchOption | ArgumentIsPath | SupplementaryOutput, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-serialize-diagnostics-path"[1], serialize_diagnostics_path, Separate, INVALID, INVALID, nullptr, FrontendOption | SwiftAPIDigesterOption | NoBatchOption | ArgumentIsPath | SupplementaryOutput, 0,
"Emit a serialized diagnostics file to <path>", "<path>", nullptr)
OPTION(prefix_1, &"-serialize-diagnostics"[1], serialize_diagnostics, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | SupplementaryOutput, 0,
"Serialize diagnostics in a binary format", nullptr, nullptr)
OPTION(prefix_1, &"-serialize-module-interface-dependency-hashes"[1], serialize_module_interface_dependency_hashes, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-serialize-parseable-module-interface-dependency-hashes"[1], serialize_parseable_module_interface_dependency_hashes, Flag, INVALID, serialize_module_interface_dependency_hashes, nullptr, FrontendOption | NoDriverOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-show-diagnostics-after-fatal"[1], show_diagnostics_after_fatal, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Keep emitting subsequent diagnostics after a fatal error", nullptr, nullptr)
OPTION(prefix_1, &"-sil-debug-serialization"[1], sil_debug_serialization, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Do not eliminate functions in Mandatory Inlining/SILCombine dead functions. (for debugging only)", nullptr, nullptr)
OPTION(prefix_1, &"-sil-inline-caller-benefit-reduction-factor"[1], sil_inline_caller_benefit_reduction_factor, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Controls the aggressiveness of performance inlining in -Osize mode by reducing the base benefits of a caller (lower value permits more inlining!)", "<2>", nullptr)
OPTION(prefix_1, &"-sil-inline-threshold"[1], sil_inline_threshold, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Controls the aggressiveness of performance inlining", "<50>", nullptr)
OPTION(prefix_1, &"-sil-stop-optzns-before-lowering-ownership"[1], sil_stop_optzns_before_lowering_ownership, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Stop optimizing at SIL time before we lower ownership from SIL. Intended only for SIL ossa tests", nullptr, nullptr)
OPTION(prefix_1, &"-sil-unroll-threshold"[1], sil_unroll_threshold, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Controls the aggressiveness of loop unrolling", "<250>", nullptr)
OPTION(prefix_1, &"-sil-verify-all"[1], sil_verify_all, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Verify SIL after each transform", nullptr, nullptr)
OPTION(prefix_1, &"-sil-verify-none"[1], sil_verify_none, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Completely disable SIL verification", nullptr, nullptr)
OPTION(prefix_1, &"-skip-inherited-docs"[1], skip_inherited_docs, Flag, INVALID, INVALID, nullptr, SwiftSymbolGraphExtractOption | FrontendOption | NoInteractiveOption | SupplementaryOutput | HelpHidden, 0,
"Skip emitting doc comments for members inherited through classes or default implementations", nullptr, nullptr)
OPTION(prefix_1, &"-skip-synthesized-members"[1], skip_synthesized_members, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftSymbolGraphExtractOption, 0,
"Skip members inherited through classes or default implementations", nullptr, nullptr)
OPTION(prefix_1, &"-solver-disable-shrink"[1], solver_disable_shrink, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Disable the shrink phase of expression type checking", nullptr, nullptr)
OPTION(prefix_1, &"-solver-expression-time-threshold="[1], solver_expression_time_threshold_EQ, Joined, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-solver-memory-threshold"[1], solver_memory_threshold, Separate, INVALID, INVALID, nullptr, FrontendOption | HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Set the upper bound for memory consumption, in bytes, by the constraint solver", nullptr, nullptr)
OPTION(prefix_1, &"-solver-shrink-unsolved-threshold"[1], solver_shrink_unsolved_threshold, Separate, INVALID, INVALID, nullptr, FrontendOption | HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Set The upper bound to number of sub-expressions unsolved before termination of the shrink phrase", nullptr, nullptr)
OPTION(prefix_1, &"-stack-promotion-limit"[1], stack_promotion_limit, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Limit the size of stack promoted objects to the provided number of bytes.", nullptr, nullptr)
OPTION(prefix_1, &"-static-executable"[1], static_executable, Flag, INVALID, INVALID, nullptr, 0, 0,
"Statically link the executable", nullptr, nullptr)
OPTION(prefix_1, &"-static-stdlib"[1], static_stdlib, Flag, INVALID, INVALID, nullptr, DoesNotAffectIncrementalBuild, 0,
"Statically link the Swift standard library", nullptr, nullptr)
OPTION(prefix_1, &"-static"[1], static, Flag, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOption | NoInteractiveOption, 0,
"Make this module statically linkable and make the output of -emit-library a static library.", nullptr, nullptr)
OPTION(prefix_1, &"-stats-output-dir"[1], stats_output_dir, Separate, INVALID, INVALID, nullptr, FrontendOption | HelpHidden | ArgumentIsPath, 0,
"Directory to write unified compilation-statistics files to", nullptr, nullptr)
OPTION(prefix_1, &"-supplementary-output-file-map"[1], supplementary_output_file_map, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Specify supplementary outputs in a file rather than on the command line", nullptr, nullptr)
OPTION(prefix_1, &"-suppress-static-exclusivity-swap"[1], suppress_static_exclusivity_swap, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Suppress static violations of exclusive access with swap()", nullptr, nullptr)
OPTION(prefix_1, &"-suppress-warnings"[1], suppress_warnings, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Suppress all warnings", nullptr, nullptr)
OPTION(prefix_1, &"-swift-module-file"[1], swift_module_file, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Specify Swift module explicitly built from textual interface", "<path>", nullptr)
OPTION(prefix_2, &"-swift-only"[1], swift_only, Flag, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Only include APIs defined from Swift source", nullptr, nullptr)
OPTION(prefix_1, &"-swift-version"[1], swift_version, Separate, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOption | SwiftAPIExtractOption | SwiftSymbolGraphExtractOption | SwiftAPIDigesterOption, 0,
"Interpret input according to a specific Swift language version number", "<vers>", nullptr)
OPTION(prefix_1, &"-switch-checking-invocation-threshold="[1], switch_checking_invocation_threshold_EQ, Joined, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-S"[1], S, Flag, modes_Group, emit_assembly, nullptr, FrontendOption | NoInteractiveOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-tab-width"[1], tab_width, Separate, code_formatting_Group, INVALID, nullptr, NoInteractiveOption | NoBatchOption | SwiftIndentOption, 0,
"Width of tab character.", "<n>", nullptr)
OPTION(prefix_1, &"-target-cpu"[1], target_cpu, Separate, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOption, 0,
"Generate code for a particular CPU variant", nullptr, nullptr)
OPTION(prefix_1, &"-target-sdk-version"[1], target_sdk_version, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"The version of target SDK used for compilation", nullptr, nullptr)
OPTION(prefix_1, &"-target-variant-sdk-version"[1], target_variant_sdk_version, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"The version of target variant SDK used for compilation", nullptr, nullptr)
OPTION(prefix_1, &"-target-variant"[1], target_variant, Separate, INVALID, INVALID, nullptr, FrontendOption, 0,
"Generate 'zippered' code for macCatalyst that can run on the specified variant target triple in addition to the main -target triple", nullptr, nullptr)
OPTION(prefix_3, &"--target="[2], target_legacy_spelling, Joined, INVALID, target, nullptr, FrontendOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-target"[1], target, Separate, INVALID, INVALID, nullptr, FrontendOption | ModuleWrapOption | ModuleInterfaceOption | SwiftAPIExtractOption | SwiftSymbolGraphExtractOption | SwiftAPIDigesterOption, 0,
"Generate code for the given target <triple>, such as x86_64-apple-macos10.9", "<triple>", nullptr)
OPTION(prefix_1, &"-tbd-compatibility-version="[1], tbd_compatibility_version_EQ, Joined, INVALID, tbd_compatibility_version, nullptr, FrontendOption | NoDriverOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-tbd-compatibility-version"[1], tbd_compatibility_version, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"The compatibility_version to use in an emitted TBD file", "<version>", nullptr)
OPTION(prefix_1, &"-tbd-current-version="[1], tbd_current_version_EQ, Joined, INVALID, tbd_current_version, nullptr, FrontendOption | NoDriverOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-tbd-current-version"[1], tbd_current_version, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"The current_version to use in an emitted TBD file", "<version>", nullptr)
OPTION(prefix_1, &"-tbd-install_name="[1], tbd_install_name_EQ, Joined, INVALID, tbd_install_name, nullptr, FrontendOption | NoDriverOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-tbd-install_name"[1], tbd_install_name, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"The install_name to use in an emitted TBD file", "<path>", nullptr)
OPTION(prefix_1, &"-tbd-is-installapi"[1], tbd_is_installapi, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"If the TBD file should indicate it's being generated during InstallAPI", nullptr, nullptr)
OPTION(prefix_1, &"-test-dependency-scan-cache-serialization"[1], debug_test_dependency_scan_cache_serialization, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"After performing a dependency scan, serialize and then deserialize the scanner's internal state.", nullptr, nullptr)
OPTION(prefix_1, &"-testable-import-module"[1], testable_import_module, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Implicitly import the specified module with @testable", nullptr, nullptr)
OPTION(prefix_1, &"-toolchain-stdlib-rpath"[1], toolchain_stdlib_rpath, Flag, INVALID, INVALID, nullptr, HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Add an rpath entry for the toolchain's standard library, rather than the OS's", nullptr, nullptr)
OPTION(prefix_1, &"-tools-directory"[1], tools_directory, Separate, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild | ArgumentIsPath, 0,
"Look for external executables (ld, clang, binutils) in <directory>", "<directory>", nullptr)
OPTION(prefix_1, &"-trace-stats-events"[1], trace_stats_events, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Trace changes to stats in -stats-output-dir", nullptr, nullptr)
OPTION(prefix_1, &"-track-system-dependencies"[1], track_system_dependencies, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Track system dependencies while emitting Make-style dependencies", nullptr, nullptr)
OPTION(prefix_1, &"-triple"[1], triple, Separate, INVALID, target, nullptr, FrontendOption | NoDriverOption, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-type-info-dump-filter="[1], type_info_dump_filter_EQ, Joined, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"One of 'all', 'resilient' or 'fragile'", nullptr, nullptr)
OPTION(prefix_1, &"-typecheck-module-from-interface"[1], typecheck_module_from_interface, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Treat the (single) input as a swiftinterface and typecheck it", nullptr, nullptr)
OPTION(prefix_1, &"-typecheck"[1], typecheck, Flag, modes_Group, INVALID, nullptr, FrontendOption | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Parse and type-check input file(s)", nullptr, nullptr)
OPTION(prefix_1, &"-typo-correction-limit"[1], typo_correction_limit, Separate, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Limit the number of times the compiler will attempt typo correction to <n>", "<n>", nullptr)
OPTION(prefix_1, &"-update-code"[1], update_code, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden | NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Update Swift code", nullptr, nullptr)
OPTION(prefix_1, &"-use-clang-function-types"[1], use_clang_function_types, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Use stored Clang function types for computing canonical types.", nullptr, nullptr)
OPTION(prefix_2, &"-use-interface-for-module"[1], use_interface_for_module, Separate, INVALID, INVALID, nullptr, NoDriverOption | SwiftAPIDigesterOption, 0,
"Prefer loading these modules via interface", "<name>", nullptr)
OPTION(prefix_1, &"-use-jit"[1], use_jit, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Register Objective-C classes as if the JIT were in use", nullptr, nullptr)
OPTION(prefix_1, &"-use-ld="[1], use_ld, Joined, INVALID, INVALID, nullptr, DoesNotAffectIncrementalBuild, 0,
"Specifies the linker to be used", nullptr, nullptr)
OPTION(prefix_1, &"-use-malloc"[1], use_malloc, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Allocate internal data structures using malloc (for memory debugging)", nullptr, nullptr)
OPTION(prefix_1, &"-use-static-resource-dir"[1], use_static_resource_dir, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Use resources in the static resource directory", nullptr, nullptr)
OPTION(prefix_1, &"-use-tabs"[1], use_tabs, Flag, code_formatting_Group, INVALID, nullptr, NoInteractiveOption | NoBatchOption | SwiftIndentOption, 0,
"Use tabs for indentation.", nullptr, nullptr)
OPTION(prefix_1, &"-user-module-version"[1], user_module_version, Separate, INVALID, INVALID, nullptr, FrontendOption | ModuleInterfaceOptionIgnorable | NewDriverOnlyOption, 0,
"Module version specified from Swift module authors", "<vers>", nullptr)
OPTION(prefix_1, &"-validate-tbd-against-ir="[1], validate_tbd_against_ir_EQ, Joined, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Compare the symbols in the IR against the TBD file that would be generated.", "<level>", nullptr)
OPTION(prefix_1, &"-value-recursion-threshold"[1], value_recursion_threshold, Separate, INVALID, INVALID, nullptr, FrontendOption | HelpHidden | DoesNotAffectIncrementalBuild, 0,
"Set the maximum depth for direct recursion in value types", nullptr, nullptr)
OPTION(prefix_1, &"-verify-additional-file"[1], verify_additional_file, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Verify diagnostics in this file in addition to source files", nullptr, nullptr)
OPTION(prefix_1, &"-verify-all-substitution-maps"[1], verify_all_substitution_maps, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Verify all SubstitutionMaps on construction", nullptr, nullptr)
OPTION(prefix_1, &"-verify-apply-fixes"[1], verify_apply_fixes, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Like -verify, but updates the original source file", nullptr, nullptr)
OPTION(prefix_1, &"-verify-debug-info"[1], verify_debug_info, Flag, INVALID, INVALID, nullptr, NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Verify the binary representation of debug output.", nullptr, nullptr)
OPTION(prefix_1, &"-verify-emitted-module-interface"[1], verify_emitted_module_interface, Flag, INVALID, INVALID, nullptr, NoInteractiveOption | DoesNotAffectIncrementalBuild, 0,
"Check that module interfaces emitted during compilation typecheck", nullptr, nullptr)
OPTION(prefix_1, &"-verify-generic-signatures"[1], verify_generic_signatures, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Verify the generic signatures in the given module", "<module-name>", nullptr)
OPTION(prefix_1, &"-verify-ignore-unknown"[1], verify_ignore_unknown, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Allow diagnostics for '<unknown>' location in verify mode", nullptr, nullptr)
OPTION(prefix_1, &"-verify-incremental-dependencies"[1], verify_incremental_dependencies, Flag, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Enable the dependency verifier for each frontend job", nullptr, nullptr)
OPTION(prefix_1, &"-verify-syntax-tree"[1], verify_syntax_tree, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Verify that no unknown nodes exist in the libSyntax tree", nullptr, nullptr)
OPTION(prefix_1, &"-verify-type-layout"[1], verify_type_layout, JoinedOrSeparate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Verify compile-time and runtime type layout information for type", "<type>", nullptr)
OPTION(prefix_1, &"-verify"[1], verify, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption, 0,
"Verify diagnostics against expected-{error|warning|note} annotations", nullptr, nullptr)
OPTION(prefix_2, &"-version"[1], version, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Print version information and exit", nullptr, nullptr)
OPTION(prefix_1, &"-vfsoverlay="[1], vfsoverlay_EQ, Joined, INVALID, vfsoverlay, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-vfsoverlay"[1], vfsoverlay, JoinedOrSeparate, INVALID, INVALID, nullptr, FrontendOption | ArgumentIsPath | SwiftAPIExtractOption, 0,
"Add directory to VFS overlay file", nullptr, nullptr)
OPTION(prefix_1, &"-v"[1], v, Flag, INVALID, INVALID, nullptr, DoesNotAffectIncrementalBuild | SwiftSymbolGraphExtractOption | SwiftAPIDigesterOption, 0,
"Show commands to run and use verbose output", nullptr, nullptr)
OPTION(prefix_1, &"-warn-concurrency"[1], warn_concurrency, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Warn about code that is unsafe according to the Swift Concurrency model and will become ill-formed in a future language version", nullptr, nullptr)
OPTION(prefix_1, &"-warn-implicit-overrides"[1], warn_implicit_overrides, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Warn about implicit overrides of protocol members", nullptr, nullptr)
OPTION(prefix_1, &"-warn-long-expression-type-checking="[1], warn_long_expression_type_checking_EQ, Joined, INVALID, warn_long_expression_type_checking, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-warn-long-expression-type-checking"[1], warn_long_expression_type_checking, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Warns when type-checking a function takes longer than <n> ms", "<n>", nullptr)
OPTION(prefix_1, &"-warn-long-function-bodies="[1], warn_long_function_bodies_EQ, Joined, INVALID, warn_long_function_bodies, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-warn-long-function-bodies"[1], warn_long_function_bodies, Separate, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Warns when type-checking a function takes longer than <n> ms", "<n>", nullptr)
OPTION(prefix_1, &"-warn-on-potentially-unavailable-enum-case"[1], warn_on_potentially_unavailable_enum_case, Flag, INVALID, INVALID, nullptr, FrontendOption | NoDriverOption | HelpHidden, 0,
"Downgrade potential unavailability of enum case to a warning", nullptr, nullptr)
OPTION(prefix_1, &"-warn-swift3-objc-inference-complete"[1], warn_swift3_objc_inference_complete, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Warn about deprecated @objc inference in Swift 3 for every declaration that will no longer be inferred as @objc in Swift 4", nullptr, nullptr)
OPTION(prefix_1, &"-warn-swift3-objc-inference-minimal"[1], warn_swift3_objc_inference_minimal, Flag, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0,
"Warn about deprecated @objc inference in Swift 3 based on direct uses of the Objective-C entrypoint", nullptr, nullptr)
OPTION(prefix_1, &"-warn-swift3-objc-inference"[1], warn_swift3_objc_inference, Flag, INVALID, warn_swift3_objc_inference_complete, nullptr, FrontendOption | DoesNotAffectIncrementalBuild | HelpHidden, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-warnings-as-errors"[1], warnings_as_errors, Flag, INVALID, INVALID, nullptr, FrontendOption, 0,
"Treat warnings as errors", nullptr, nullptr)
OPTION(prefix_1, &"-whole-module-optimization"[1], whole_module_optimization, Flag, INVALID, INVALID, nullptr, FrontendOption | NoInteractiveOption, 0,
"Optimize input files together instead of individually", nullptr, nullptr)
OPTION(prefix_1, &"-wmo"[1], wmo, Flag, INVALID, whole_module_optimization, nullptr, FrontendOption | NoInteractiveOption | HelpHidden, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-working-directory="[1], working_directory_EQ, Joined, INVALID, working_directory, nullptr, 0, 0, nullptr, nullptr, nullptr)
OPTION(prefix_1, &"-working-directory"[1], working_directory, Separate, INVALID, INVALID, nullptr, 0, 0,
"Resolve file paths relative to the specified directory", "<path>", nullptr)
OPTION(prefix_1, &"-Xcc"[1], Xcc, Separate, INVALID, INVALID, nullptr, FrontendOption | SwiftSymbolGraphExtractOption, 0,
"Pass <arg> to the C/C++/Objective-C compiler", "<arg>", nullptr)
OPTION(prefix_1, &"-Xclang-linker"[1], Xclang_linker, Separate, INVALID, INVALID, nullptr, HelpHidden, 0,
"Pass <arg> to Clang when it is use for linking.", "<arg>", nullptr)
OPTION(prefix_1, &"-Xfrontend"[1], Xfrontend, Separate, INVALID, INVALID, nullptr, HelpHidden, 0,
"Pass <arg> to the Swift frontend", "<arg>", nullptr)
OPTION(prefix_1, &"-Xlinker"[1], Xlinker, Separate, INVALID, INVALID, nullptr, DoesNotAffectIncrementalBuild, 0,
"Specifies an option which should be passed to the linker", nullptr, nullptr)
OPTION(prefix_1, &"-Xllvm"[1], Xllvm, Separate, INVALID, INVALID, nullptr, FrontendOption | HelpHidden, 0,
"Pass <arg> to LLVM.", "<arg>", nullptr)
OPTION(prefix_3, &"--"[2], _DASH_DASH, RemainingArgs, INVALID, INVALID, nullptr, FrontendOption | DoesNotAffectIncrementalBuild, 0, nullptr, nullptr, nullptr)
#endif // OPTION
#ifdef SIMPLE_ENUM_VALUE_TABLE
struct SimpleEnumValue {
const char *Name;
unsigned Value;
};
struct SimpleEnumValueTable {
const SimpleEnumValue *Table;
unsigned Size;
};
static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
static const unsigned SimpleEnumValueTablesSize = sizeof(SimpleEnumValueTables) / sizeof(SimpleEnumValueTable);
#endif // SIMPLE_ENUM_VALUE_TABLE
#ifdef OPTTABLE_ARG_INIT
//////////
// Option Values
#endif // OPTTABLE_ARG_INIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment