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
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ extension Option {
50
50
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")
51
51
publicstaticletcheckApiAvailabilityOnly:Option=Option("-check-api-availability-only",.flag, attributes:[.helpHidden,.frontend,.noInteractive], helpText:"Only check the availability of the APIs, ignore function bodies")
52
52
publicstaticletcheckOnoneCompleteness:Option=Option("-check-onone-completeness",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Print errors if the compile OnoneSupport module is missing symbols")
53
-
publicstaticletclangHeaderExposePublicDecls:Option=Option("-clang-header-expose-public-decls",.flag, attributes:[.helpHidden,.frontend,.noDriver],helpText:"Expose allpublicdeclarations in the generated clang header")
53
+
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.")
54
54
publicstaticletclangTarget:Option=Option("-clang-target",.separate, attributes:[.frontend], helpText:"Separately set the target we should use for internal Clang instance")
55
55
publicstaticletcodeCompleteCallPatternHeuristics:Option=Option("-code-complete-call-pattern-heuristics",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Use heuristics to guess whether we want call pattern completions")
56
56
publicstaticletcodeCompleteInitsInPostfixExpr:Option=Option("-code-complete-inits-in-postfix-expr",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Include initializers when completing a postfix expression")
@@ -107,6 +107,7 @@ extension Option {
107
107
publicstaticletdiagnosticsEditorMode:Option=Option("-diagnostics-editor-mode",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Diagnostics will be used in editor")
108
108
publicstaticletdigesterBreakageAllowlistPath:Option=Option("-digester-breakage-allowlist-path",.separate, attributes:[.noInteractive,.argumentIsPath], metaVar:"<path>", helpText:"The path to a list of permitted breaking changes the API digester should ignore")
109
109
publicstaticletdigesterMode:Option=Option("-digester-mode",.separate, attributes:[.noInteractive], metaVar:"<api|abi>", helpText:"Whether the API digester should run in API or ABI mode (defaults to API checking)")
110
+
publicstaticletdirectClangCc1ModuleBuild:Option=Option("-direct-clang-cc1-module-build",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Use the specified -Xcc options to build a PCM by using Clang frontend directly, bypassing the Clang driver")
110
111
publicstaticletdisableAccessControl:Option=Option("-disable-access-control",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't respect access control restrictions")
111
112
publicstaticletdisableActorDataRaceChecks:Option=Option("-disable-actor-data-race-checks",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Disable runtime checks for actor data races")
112
113
publicstaticletdisableArcOpts:Option=Option("-disable-arc-opts",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't run SIL ARC optimization passes.")
@@ -322,12 +323,14 @@ extension Option {
322
323
publicstaticletenableExperimentalAsyncTopLevel:Option=Option("-enable-experimental-async-top-level",.flag, attributes:[.helpHidden,.frontend,.noDriver,.moduleInterface], helpText:"Enable experimental concurrency in top-level code")
publicstaticletenableExperimentalCxxInteropInClangHeader:Option=Option("-enable-experimental-cxx-interop-in-clang-header",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable experimental Swift to C++ interop code generation in generated Clang header")
325
327
publicstaticletenableExperimentalCxxInterop:Option=Option("-enable-experimental-cxx-interop",.flag, attributes:[.helpHidden,.frontend,.moduleInterface], helpText:"Enable experimental C++ interop code generation and config directives")
326
328
publicstaticletenableExperimentalDistributed:Option=Option("-enable-experimental-distributed",.flag, attributes:[.helpHidden,.frontend,.noDriver,.moduleInterface], helpText:"Enable experimental 'distributed' actors and functions")
327
329
publicstaticletenableExperimentalEagerClangModuleDiagnostics:Option=Option("-enable-experimental-eager-clang-module-diagnostics",.flag, attributes:[.helpHidden,.frontend,.noDriver,.moduleInterface], helpText:"Enable experimental eager diagnostics reporting on the importability of all referenced C, C++, and Objective-C libraries")
328
330
publicstaticletenableExperimentalFeature:Option=Option("-enable-experimental-feature",.separate, attributes:[.frontend], helpText:"Enable an experimental feature")
publicstaticletenableExperimentalNamedOpaqueTypes:Option=Option("-enable-experimental-named-opaque-types",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable experimental support for named opaque result types")
333
336
publicstaticletenableExperimentalOpaqueTypeErasure:Option=Option("-enable-experimental-opaque-type-erasure",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Type-erases opaque types that conform to @_typeEraser protocols")
@@ -516,6 +519,7 @@ extension Option {
516
519
publicstaticletnostartfiles:Option=Option("-nostartfiles",.flag, attributes:[.helpHidden,.frontend,.noInteractive,.doesNotAffectIncrementalBuild], helpText:"Do not link in the Swift language startup routines")
517
520
publicstaticletnostdimport:Option=Option("-nostdimport",.flag, attributes:[.frontend], helpText:"Don't search the standard library import path for modules")
518
521
publicstaticletnumThreads:Option=Option("-num-threads",.separate, attributes:[.frontend,.doesNotAffectIncrementalBuild], metaVar:"<n>", helpText:"Enable multi-threading and specify number of threads")
522
+
publicstaticletomitExtensionBlockSymbols:Option=Option("-omit-extension-block-symbols",.flag, attributes:[.helpHidden,.frontend,.noInteractive,.supplementaryOutput], helpText:"Directly associate members and conformances with the extended nominal when generating symbol graphs instead of emitting 'swift.extension' symbols for extensions to external types")
519
523
publicstaticletextraClangOptionsOnly:Option=Option("-only-use-extra-clang-opts",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Options passed via -Xcc are sufficient for Clang configuration")
520
524
publicstaticletOnone:Option=Option("-Onone",.flag, attributes:[.frontend,.moduleInterface], helpText:"Compile without any optimization", group:.O)
521
525
publicstaticletOplayground:Option=Option("-Oplayground",.flag, attributes:[.helpHidden,.frontend,.moduleInterface], helpText:"Compile with optimizations appropriate for a playground", group:.O)
0 commit comments