[FIR] Prevent reporting ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT twice in CLI

It is duplicated because we have two checkers: FIR (for IDE support
in simple cases) and IR ("honest" checker supporting all cases).
Fix this by running FIR checker only in IDE.

FIR checker behavior remains covered by tests in
`LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated`.

^KT-62559 Fixed
This commit is contained in:
Roman Efremov
2023-10-20 18:28:41 +02:00
committed by Space Team
parent a466b14264
commit fcc6f873c7
33 changed files with 97 additions and 80 deletions
@@ -80,6 +80,7 @@ private object CheckersFactory {
} else {
createDeclarationCheckers {
add(CommonDeclarationCheckers)
add(CommonIdeOnlyDeclarationCheckers)
when {
platform.isJvm() -> add(JvmDeclarationCheckers)
platform.isJs() -> add(JsDeclarationCheckers)