[FIR] Add CLI flag for running extended checkers

This commit is contained in:
vldf
2020-08-05 11:24:03 +03:00
committed by Mikhail Glukhikh
parent 2bf1d3fee8
commit a26eeb6ee8
15 changed files with 69 additions and 11 deletions
+1
View File
@@ -70,6 +70,7 @@ where advanced options include:
-Xskip-prerelease-check Allow to load pre-release classes
-Xuse-experimental=<fq.name> Enable, but don't propagate usages of experimental API for marker annotation with the given fully qualified name
-Xuse-fir Compile using Front-end IR. Warning: this feature is far from being production-ready
-Xuse-fir-extended-checkers Use extended analysis mode based on Front-end IR. Warning: this feature is far from being production-ready
-Xuse-mixed-named-arguments Enable Support named arguments in their own position even if the result appears as mixed
-Xverbose-phases Be verbose while performing these backend phases
+5
View File
@@ -0,0 +1,5 @@
$TESTDATA_DIR$/extendedCheckers.kt
-Xuse-fir
-Xuse-fir-extended-checkers
-d
$TEMP_DIR$
+3
View File
@@ -0,0 +1,3 @@
fun foo() {
val i: Int = 1
}
+4
View File
@@ -0,0 +1,4 @@
compiler/testData/cli/jvm/extendedCheckers.kt:2:12: warning: redundant explicit type
val i: Int = 1
^
OK
@@ -0,0 +1,5 @@
$TESTDATA_DIR$/extendedCheckersNoWarning.kt
-Xuse-fir
-Xuse-fir-extended-checkers
-d
$TEMP_DIR$
@@ -0,0 +1,3 @@
fun foo() {
val s = "Say 'Hi!' to extended checkers"
}
@@ -0,0 +1 @@
OK
+1
View File
@@ -153,6 +153,7 @@ where advanced options include:
-Xskip-prerelease-check Allow to load pre-release classes
-Xuse-experimental=<fq.name> Enable, but don't propagate usages of experimental API for marker annotation with the given fully qualified name
-Xuse-fir Compile using Front-end IR. Warning: this feature is far from being production-ready
-Xuse-fir-extended-checkers Use extended analysis mode based on Front-end IR. Warning: this feature is far from being production-ready
-Xuse-mixed-named-arguments Enable Support named arguments in their own position even if the result appears as mixed
-Xverbose-phases Be verbose while performing these backend phases