[FIR] Remove the extra dash from `--Xdata-flow-based-exhaustiveness` The flag was introduced in `0741b64f`, and we didn't notice it. ^KT-78484 (cherry picked from commit 7365dfe376e7fd54f8e725ea973a12f0abc18acb)
diff --git a/compiler/arguments/resources/kotlin-compiler-arguments.json b/compiler/arguments/resources/kotlin-compiler-arguments.json index 834c2d4..ed90d73 100644 --- a/compiler/arguments/resources/kotlin-compiler-arguments.json +++ b/compiler/arguments/resources/kotlin-compiler-arguments.json
@@ -2609,7 +2609,7 @@ } }, { - "name": "-Xdata-flow-based-exhaustiveness", + "name": "Xdata-flow-based-exhaustiveness", "shortName": null, "deprecatedName": null, "description": {
diff --git a/compiler/arguments/src/org/jetbrains/kotlin/arguments/description/CommonCompilerArguments.kt b/compiler/arguments/src/org/jetbrains/kotlin/arguments/description/CommonCompilerArguments.kt index f98cb3b..8992295 100644 --- a/compiler/arguments/src/org/jetbrains/kotlin/arguments/description/CommonCompilerArguments.kt +++ b/compiler/arguments/src/org/jetbrains/kotlin/arguments/description/CommonCompilerArguments.kt
@@ -708,7 +708,7 @@ compilerArgument { - name = "-Xdata-flow-based-exhaustiveness" + name = "Xdata-flow-based-exhaustiveness" description = "Enable `when` exhaustiveness improvements that rely on data-flow analysis.".asReleaseDependent() valueType = BooleanType.defaultFalse
diff --git a/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt b/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt index ac98bdc..4302d74 100644 --- a/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt +++ b/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt
@@ -676,11 +676,11 @@ } @Argument( - value = "--Xdata-flow-based-exhaustiveness", + value = "-Xdata-flow-based-exhaustiveness", description = "Enable `when` exhaustiveness improvements that rely on data-flow analysis.", ) @Enables(LanguageFeature.DataFlowBasedExhaustiveness) - var xdataFlowBasedExhaustiveness: Boolean = false + var dataFlowBasedExhaustiveness: Boolean = false set(value) { checkFrozen() field = value
diff --git a/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArgumentsCopyGenerated.kt b/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArgumentsCopyGenerated.kt index 1daa826..85bb048 100644 --- a/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArgumentsCopyGenerated.kt +++ b/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArgumentsCopyGenerated.kt
@@ -23,6 +23,7 @@ to.contextParameters = from.contextParameters to.contextReceivers = from.contextReceivers to.contextSensitiveResolution = from.contextSensitiveResolution + to.dataFlowBasedExhaustiveness = from.dataFlowBasedExhaustiveness to.debugLevelCompilerChecks = from.debugLevelCompilerChecks to.directJavaActualization = from.directJavaActualization to.disableDefaultScriptingPlugin = from.disableDefaultScriptingPlugin @@ -91,7 +92,6 @@ to.verifyIrVisibility = from.verifyIrVisibility to.warningLevels = from.warningLevels?.copyOf() to.whenGuards = from.whenGuards - to.xdataFlowBasedExhaustiveness = from.xdataFlowBasedExhaustiveness return to }
diff --git a/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/ConfigureCommonLanguageFeatures.kt b/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/ConfigureCommonLanguageFeatures.kt index c43ae7c..c2330e5 100644 --- a/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/ConfigureCommonLanguageFeatures.kt +++ b/compiler/cli/cli-common/gen/org/jetbrains/kotlin/cli/common/arguments/ConfigureCommonLanguageFeatures.kt
@@ -46,7 +46,7 @@ put(LanguageFeature.BreakContinueInInlineLambdas, LanguageFeature.State.ENABLED) } - if (arguments.xdataFlowBasedExhaustiveness) { + if (arguments.dataFlowBasedExhaustiveness) { put(LanguageFeature.DataFlowBasedExhaustiveness, LanguageFeature.State.ENABLED) }
diff --git a/compiler/testData/cli/js/jsExtraHelp.out b/compiler/testData/cli/js/jsExtraHelp.out index f0ee9bd..6d80a68 100644 --- a/compiler/testData/cli/js/jsExtraHelp.out +++ b/compiler/testData/cli/js/jsExtraHelp.out
@@ -143,6 +143,8 @@ -Xcontext-parameters Enable experimental context parameters. -Xcontext-sensitive-resolution Enable experimental context-sensitive resolution. -Xnon-local-break-continue Enable experimental non-local break and continue. + -Xdata-flow-based-exhaustiveness + Enable `when` exhaustiveness improvements that rely on data-flow analysis. -Xdirect-java-actualization Enable experimental direct Java actualization support. -Xmulti-dollar-interpolation Enable experimental multi-dollar interpolation. -Xenable-incremental-compilation
diff --git a/compiler/testData/cli/js/jsHelp.out b/compiler/testData/cli/js/jsHelp.out index e5a9d86..3e0735b 100644 --- a/compiler/testData/cli/js/jsHelp.out +++ b/compiler/testData/cli/js/jsHelp.out
@@ -26,8 +26,6 @@ -opt-in <fq.name> Enable API usages that require opt-in with an opt-in requirement marker with the given fully qualified name. -P plugin:<pluginId>:<optionName>=<value> Pass an option to a plugin. - --Xdata-flow-based-exhaustiveness - Enable `when` exhaustiveness improvements that rely on data-flow analysis. -help (-h) Print a synopsis of standard options. -X Print a synopsis of advanced options. -version Display the compiler version.
diff --git a/compiler/testData/cli/jvm/extraHelp.out b/compiler/testData/cli/jvm/extraHelp.out index 2e0205b..2218dd0 100644 --- a/compiler/testData/cli/jvm/extraHelp.out +++ b/compiler/testData/cli/jvm/extraHelp.out
@@ -211,6 +211,8 @@ -Xcontext-parameters Enable experimental context parameters. -Xcontext-sensitive-resolution Enable experimental context-sensitive resolution. -Xnon-local-break-continue Enable experimental non-local break and continue. + -Xdata-flow-based-exhaustiveness + Enable `when` exhaustiveness improvements that rely on data-flow analysis. -Xdirect-java-actualization Enable experimental direct Java actualization support. -Xmulti-dollar-interpolation Enable experimental multi-dollar interpolation. -Xenable-incremental-compilation
diff --git a/compiler/testData/cli/jvm/help.out b/compiler/testData/cli/jvm/help.out index fa3bc00..f12b644 100644 --- a/compiler/testData/cli/jvm/help.out +++ b/compiler/testData/cli/jvm/help.out
@@ -32,8 +32,6 @@ -opt-in <fq.name> Enable API usages that require opt-in with an opt-in requirement marker with the given fully qualified name. -P plugin:<pluginId>:<optionName>=<value> Pass an option to a plugin. - --Xdata-flow-based-exhaustiveness - Enable `when` exhaustiveness improvements that rely on data-flow analysis. -help (-h) Print a synopsis of standard options. -X Print a synopsis of advanced options. -version Display the compiler version.