Add using -Xinline-classes by default in IDE intentions

^KT-34209 Fixed
This commit is contained in:
Victor Petukhov
2020-02-17 18:17:11 +03:00
parent 79d7babb57
commit bf23b39d76
5 changed files with 42 additions and 5 deletions
@@ -41,12 +41,12 @@ object CliArgumentStringBuilder {
val dedicatedFlag = dedicatedFlagInfo?.run {
val (xFlag, xFlagSinceVersion) = this
// TODO: replace to returning xFlag in 1.4 (behaviour for fallback)
if (kotlinVersion == null) return@run null
if (kotlinVersion == null) return@run xFlag
val isAtLeastSpecifiedVersion = versionRegex.find(kotlinVersion)?.destructured?.let { (major, minor, patch) ->
val parsedVersion = versionRegex.find(kotlinVersion) ?: return@run xFlag
val isAtLeastSpecifiedVersion = parsedVersion.destructured.let { (major, minor, patch) ->
KotlinVersion(major.toInt(), minor.toInt(), patch.toInt()) >= xFlagSinceVersion
} == true
}
if (isAtLeastSpecifiedVersion) xFlag else null
}