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
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ extension Option {
54
54
publicstaticletcheckOnoneCompleteness:Option=Option("-check-onone-completeness",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Print errors if the compile OnoneSupport module is missing symbols")
55
55
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
56
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.")
57
+
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
58
publicstaticletclangTarget:Option=Option("-clang-target",.separate, attributes:[.frontend], helpText:"Separately set the target we should use for internal Clang instance")
58
59
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
60
publicstaticletcodeCompleteInitsInPostfixExpr:Option=Option("-code-complete-inits-in-postfix-expr",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Include initializers when completing a postfix expression")
@@ -156,6 +157,8 @@ extension Option {
156
157
publicstaticletdisableInferPublicConcurrentValue:Option=Option("-disable-infer-public-sendable",.flag, attributes:[.frontend,.noDriver], helpText:"Disable inference of Sendable conformances for public structs and enums")
157
158
publicstaticletdisableInterfaceLockfile:Option=Option("-disable-interface-lock",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't lock interface file when building module")
158
159
publicstaticletdisableInvalidEphemeralnessAsError:Option=Option("-disable-invalid-ephemeralness-as-error",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Diagnose invalid ephemeral to non-ephemeral conversions as warnings")
160
+
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")
161
+
publicstaticletdisableLayoutStringValueWitnesses:Option=Option("-disable-layout-string-value-witnesses",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable layout string based value witnesses")
159
162
publicstaticletdisableLegacyTypeInfo:Option=Option("-disable-legacy-type-info",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Completely disable legacy type layout")
160
163
publicstaticletdisableLlvmOptzns:Option=Option("-disable-llvm-optzns",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't run LLVM optimization passes")
161
164
publicstaticletdisableLlvmValueNames:Option=Option("-disable-llvm-value-names",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't add names to local values in LLVM IR")
@@ -357,11 +360,12 @@ extension Option {
357
360
publicstaticletenableExplicitExistentialTypes:Option=Option("-enable-explicit-existential-types",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable experimental support for explicit existential types")
358
361
publicstaticletenableImplicitBacktracingModuleImport:Option=Option("-enable-implicit-backtracing-module-import",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable the implicit import of the _Backtracing module.")
359
362
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
363
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
364
publicstaticletenableIncrementalImports:Option=Option("-enable-incremental-imports",.flag, attributes:[.frontend], helpText:"Enable cross-module incremental build metadata and driver scheduling for Swift modules")
363
365
publicstaticletenableInferPublicConcurrentValue:Option=Option("-enable-infer-public-sendable",.flag, attributes:[.frontend,.noDriver], helpText:"Enable inference of Sendable conformances for public structs and enums")
364
366
publicstaticletenableInvalidEphemeralnessAsError:Option=Option("-enable-invalid-ephemeralness-as-error",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Diagnose invalid ephemeral to non-ephemeral conversions as errors")
367
+
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")
368
+
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
428
publicstaticletexportAs:Option=Option("-export-as",.separate, attributes:[.frontend], helpText:"Module name to use when referenced in clients module interfaces")
425
429
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>")
430
+
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
431
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.")
@@ -711,6 +716,7 @@ extension Option {
711
716
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
717
publicstaticlettypecheck:Option=Option("-typecheck",.flag, attributes:[.frontend,.noInteractive,.doesNotAffectIncrementalBuild], helpText:"Parse and type-check input file(s)", group:.modes)
713
718
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>")
719
+
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
720
publicstaticletupdateCode:Option=Option("-update-code",.flag, attributes:[.helpHidden,.frontend,.noInteractive,.doesNotAffectIncrementalBuild], helpText:"Update Swift code")
715
721
publicstaticletuseClangFunctionTypes:Option=Option("-use-clang-function-types",.flag, attributes:[.frontend,.noDriver], helpText:"Use stored Clang function types for computing canonical types.")
716
722
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