You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SwiftOptions/Options.swift
+23-3
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ extension Option {
21
21
publicstaticletaccessNotesPath:Option=Option("-access-notes-path",.separate, attributes:[.frontend,.argumentIsPath], helpText:"Specify YAML file to override attributes on Swift declarations in this module")
22
22
publicstaticletaliasModuleNamesInModuleInterface:Option=Option("-alias-module-names-in-module-interface",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"When emitting a module interface, disambiguate modules using distinct alias names")
23
23
publicstaticletallowableClient:Option=Option("-allowable-client",.separate, attributes:[.frontend], metaVar:"<vers>", helpText:"Module names that are allowed to import this module")
24
+
publicstaticletalwaysCompileOutputFiles:Option=Option("-always-compile-output-files",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Always compile output files even it might not change the results")
24
25
publicstaticletanalyzeRequirementMachine:Option=Option("-analyze-requirement-machine",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Print out requirement machine statistics at the end of the compilation job")
25
26
publicstaticletapiDiffDataDir:Option=Option("-api-diff-data-dir",.separate, attributes:[.frontend,.noInteractive,.doesNotAffectIncrementalBuild,.argumentIsPath], metaVar:"<path>", helpText:"Load platform and version specific API migration data files from <path>. Ignored if -api-diff-data-file is specified.")
26
27
publicstaticletapiDiffDataFile:Option=Option("-api-diff-data-file",.separate, attributes:[.frontend,.noInteractive,.doesNotAffectIncrementalBuild,.argumentIsPath], metaVar:"<path>", helpText:"API migration data is from <path>")
@@ -44,16 +45,18 @@ extension Option {
44
45
publicstaticletBF:Option=Option("-BF",.joinedOrSeparate, attributes:[.noDriver,.argumentIsPath], helpText:"add a directory to the baseline framework search path")
publicstaticletBI:Option=Option("-BI",.joinedOrSeparate, attributes:[.noDriver,.argumentIsPath], helpText:"add a module for baseline input")
48
+
publicstaticletblockListFile:Option=Option("-blocklist-file",.separate, attributes:[.frontend,.noDriver], metaVar:"<path>", helpText:"The path to a blocklist configuration file")
47
49
publicstaticletbreakageAllowlistPath:Option=Option("-breakage-allowlist-path",.joinedOrSeparate, attributes:[.noDriver,.argumentIsPath], helpText:"An allowlist of breakages to not complain about")
48
50
publicstaticletbridgingHeaderDirectoryForPrint:Option=Option("-bridging-header-directory-for-print",.separate, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<path>", helpText:"Directory for bridging header to be printed in compatibility header")
49
51
publicstaticletbsdk:Option=Option("-bsdk",.joinedOrSeparate, attributes:[.noDriver,.argumentIsPath], helpText:"path to the baseline SDK to import frameworks")
publicstaticletbypassBatchModeChecks:Option=Option("-bypass-batch-mode-checks",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Bypass checks for batch-mode errors.")
52
54
publicstaticletcandidateModuleFile:Option=Option("-candidate-module-file",.separate, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<path>", helpText:"Specify Swift module may be ready to use for an interface")
53
-
publicstaticletcheckApiAvailabilityOnly:Option=Option("-check-api-availability-only",.flag, attributes:[.helpHidden,.frontend,.noInteractive], helpText:"Only check the availability of the APIs, ignore function bodies")
55
+
publicstaticletcheckApiAvailabilityOnly:Option=Option("-check-api-availability-only",.flag, attributes:[.helpHidden,.frontend,.noInteractive], helpText:"Deprecated, has no effect")
54
56
publicstaticletcheckOnoneCompleteness:Option=Option("-check-onone-completeness",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Print errors if the compile OnoneSupport module is missing symbols")
55
57
publicstaticletclangBuildSessionFile:Option=Option("-clang-build-session-file",.separate, attributes:[.frontend,.argumentIsPath], helpText:"Use the last modification time of <file> as the underlying Clang build session timestamp")
56
58
publicstaticletclangHeaderExposeDecls:Option=Option("-clang-header-expose-decls=",.joined, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"all-public|has-expose-attr", helpText:"Which declarations should be exposed in the generated clang header.")
59
+
publicstaticletclangHeaderExposeModule:Option=Option("-clang-header-expose-module",.separate, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<imported-module-name>=<generated-header-name>", helpText:"Allow the compiler to assume that APIs from the specified module are exposed to C/C++/Objective-C in another generated header, so that APIs in the current module that depend on declarations from the specified module can be exposed in the generated header.")
57
60
publicstaticletclangTarget:Option=Option("-clang-target",.separate, attributes:[.frontend], helpText:"Separately set the target we should use for internal Clang instance")
58
61
publicstaticletcodeCompleteCallPatternHeuristics:Option=Option("-code-complete-call-pattern-heuristics",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Use heuristics to guess whether we want call pattern completions")
59
62
publicstaticletcodeCompleteInitsInPostfixExpr:Option=Option("-code-complete-inits-in-postfix-expr",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Include initializers when completing a postfix expression")
@@ -156,6 +159,8 @@ extension Option {
156
159
publicstaticletdisableInferPublicConcurrentValue:Option=Option("-disable-infer-public-sendable",.flag, attributes:[.frontend,.noDriver], helpText:"Disable inference of Sendable conformances for public structs and enums")
157
160
publicstaticletdisableInterfaceLockfile:Option=Option("-disable-interface-lock",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't lock interface file when building module")
158
161
publicstaticletdisableInvalidEphemeralnessAsError:Option=Option("-disable-invalid-ephemeralness-as-error",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Diagnose invalid ephemeral to non-ephemeral conversions as warnings")
162
+
publicstaticletdisableLayoutStringValueWitnessesInstantiation:Option=Option("-disable-layout-string-value-witnesses-instantiation",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable runtime instantiation of layout string value witnesses for generic types")
163
+
publicstaticletdisableLayoutStringValueWitnesses:Option=Option("-disable-layout-string-value-witnesses",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable layout string based value witnesses")
159
164
publicstaticletdisableLegacyTypeInfo:Option=Option("-disable-legacy-type-info",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Completely disable legacy type layout")
160
165
publicstaticletdisableLlvmOptzns:Option=Option("-disable-llvm-optzns",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't run LLVM optimization passes")
161
166
publicstaticletdisableLlvmValueNames:Option=Option("-disable-llvm-value-names",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't add names to local values in LLVM IR")
@@ -334,6 +339,7 @@ extension Option {
334
339
publicstaticletenableDeserializationRecovery:Option=Option("-enable-deserialization-recovery",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Attempt to recover from missing xrefs (etc) in swiftmodules")
335
340
publicstaticletenableDeserializationSafety:Option=Option("-enable-deserialization-safety",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Avoid reading potentially unsafe decls in swiftmodules")
336
341
publicstaticletenableDestroyHoisting:Option=Option("-enable-destroy-hoisting=",.joined, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"true|false", helpText:"Whether to enable destroy hoisting")
342
+
publicstaticletenableDeterministicCheck:Option=Option("-enable-deterministic-check",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Check compiler output determinisim by running it twice")
337
343
publicstaticletenableDynamicReplacementChaining:Option=Option("-enable-dynamic-replacement-chaining",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable chaining of dynamic replacements")
338
344
publicstaticletenableEmitGenericClassRoTList:Option=Option("-enable-emit-generic-class-ro_t-list",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable emission of a section with references to class_ro_t of generic class patterns")
publicstaticletenableExplicitExistentialTypes:Option=Option("-enable-explicit-existential-types",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable experimental support for explicit existential types")
358
364
publicstaticletenableImplicitBacktracingModuleImport:Option=Option("-enable-implicit-backtracing-module-import",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable the implicit import of the _Backtracing module.")
359
365
publicstaticletenableImplicitDynamic:Option=Option("-enable-implicit-dynamic",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Add 'dynamic' to all declarations")
360
-
publicstaticletenableImportObjcForwardDeclarations:Option=Option("-enable-import-objc-forward-declarations",.flag, attributes:[.helpHidden,.frontend,.noDriver,.moduleInterface], helpText:"Attempt to import Objective-C forward declarations")
361
366
publicstaticletenableImportPtrauthFieldFunctionPointers:Option=Option("-enable-import-ptrauth-field-function-pointers",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable import of custom ptrauth qualified field function pointers")
362
367
publicstaticletenableIncrementalImports:Option=Option("-enable-incremental-imports",.flag, attributes:[.frontend], helpText:"Enable cross-module incremental build metadata and driver scheduling for Swift modules")
363
368
publicstaticletenableInferPublicConcurrentValue:Option=Option("-enable-infer-public-sendable",.flag, attributes:[.frontend,.noDriver], helpText:"Enable inference of Sendable conformances for public structs and enums")
364
369
publicstaticletenableInvalidEphemeralnessAsError:Option=Option("-enable-invalid-ephemeralness-as-error",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Diagnose invalid ephemeral to non-ephemeral conversions as errors")
370
+
publicstaticletenableLayoutStringValueWitnessesInstantiation:Option=Option("-enable-layout-string-value-witnesses-instantiation",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable runtime instantiation of layout string value witnesses for generic types")
371
+
publicstaticletenableLayoutStringValueWitnesses:Option=Option("-enable-layout-string-value-witnesses",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable layout string based value witnesses")
publicstaticletexplicitSwiftModuleMap:Option=Option("-explicit-swift-module-map-file",.separate, attributes:[.frontend,.noDriver], metaVar:"<path>", helpText:"Specify a JSON file containing information of explicit Swift modules")
424
431
publicstaticletexportAs:Option=Option("-export-as",.separate, attributes:[.frontend], helpText:"Module name to use when referenced in clients module interfaces")
425
432
publicstaticletexternalPassPipelineFilename:Option=Option("-external-pass-pipeline-filename",.separate, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<pass_pipeline_file>", helpText:"Use the pass pipeline defined by <pass_pipeline_file>")
433
+
publicstaticletexternalPluginPath:Option=Option("-external-plugin-path",.separate, attributes:[.frontend,.argumentIsPath], metaVar:"<path>#<plugin-server-path>", helpText:"Add directory to the plugin search path with a plugin server executable")
426
434
publicstaticlete:Option=Option("-e",.separate, attributes:[], helpText:"Executes a line of code provided on the command line")
publicstaticletfileCompilationDir:Option=Option("-file-compilation-dir",.separate, attributes:[.frontend], metaVar:"<path>", helpText:"The compilation directory to embed in the debug info. Coverage mapping is not supported yet.")
@@ -495,6 +503,7 @@ extension Option {
495
503
publicstaticletj:Option=Option("-j",.joinedOrSeparate, attributes:[.doesNotAffectIncrementalBuild], metaVar:"<n>", helpText:"Number of commands to execute in parallel")
publicstaticletlibraryLevel:Option=Option("-library-level",.separate, attributes:[.helpHidden,.frontend,.moduleInterface], metaVar:"<level>", helpText:"Library distribution level 'api', 'spi' or 'other' (the default)")
499
508
publicstaticletlineRange:Option=Option("-line-range",.separate, attributes:[.noInteractive,.noBatch,.indent], metaVar:"<n:n>", helpText:"<start line>:<end line>. Formats a range of lines (1-based). Can only be used with one input file.", group:.codeFormatting)
publicstaticlettypecheckModuleFromInterface:Option=Option("-typecheck-module-from-interface",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Treat the (single) input as a swiftinterface and typecheck it", group:.modes)
712
721
publicstaticlettypecheck:Option=Option("-typecheck",.flag, attributes:[.frontend,.noInteractive,.doesNotAffectIncrementalBuild], helpText:"Parse and type-check input file(s)", group:.modes)
713
722
publicstaticlettypoCorrectionLimit:Option=Option("-typo-correction-limit",.separate, attributes:[.helpHidden,.frontend], metaVar:"<n>", helpText:"Limit the number of times the compiler will attempt typo correction to <n>")
723
+
publicstaticletunavailableDeclOptimizationEQ:Option=Option("-unavailable-decl-optimization=",.joined, attributes:[.frontend,.noInteractive], metaVar:"<complete,none>", helpText:"Specify the optimization mode for unavailable declarations. The value may be 'none' (no optimization) or 'complete' (code is not generated at all unavailable declarations)")
714
724
publicstaticletupdateCode:Option=Option("-update-code",.flag, attributes:[.helpHidden,.frontend,.noInteractive,.doesNotAffectIncrementalBuild], helpText:"Update Swift code")
715
725
publicstaticletuseClangFunctionTypes:Option=Option("-use-clang-function-types",.flag, attributes:[.frontend,.noDriver], helpText:"Use stored Clang function types for computing canonical types.")
716
726
publicstaticletuseFrontendParseableOutput:Option=Option("-use-frontend-parseable-output",.flag, attributes:[.helpHidden], helpText:"Emit parseable-output from swift-frontend jobs instead of from the driver")
0 commit comments