K2: add more accurate & more automatic control of diagnostic suppression

#KT-51363 Fixed
This commit is contained in:
Mikhail Glukhikh
2022-07-20 16:46:23 +02:00
committed by Space
parent 179b267d9f
commit 9add6f3d55
21 changed files with 194 additions and 101 deletions
@@ -172,7 +172,7 @@ object FirKotlinToJvmBytecodeCompiler {
val renderDiagnosticNames = moduleConfiguration.getBoolean(CLIConfigurationKeys.RENDER_DIAGNOSTIC_INTERNAL_NAME)
val diagnosticsReporter = DiagnosticReporterFactory.createReporter()
val diagnosticsReporter = DiagnosticReporterFactory.createPendingReporter()
val firResult = runFrontend(allSources, diagnosticsReporter).also {
performanceManager?.notifyAnalysisFinished()
}
@@ -120,7 +120,7 @@ fun compileModulesUsingFrontendIrAndLightTree(
}
val renderDiagnosticName = moduleConfiguration.getBoolean(CLIConfigurationKeys.RENDER_DIAGNOSTIC_INTERNAL_NAME)
val diagnosticsReporter = DiagnosticReporterFactory.createReporter()
val diagnosticsReporter = DiagnosticReporterFactory.createPendingReporter()
val compilerInput = ModuleCompilerInput(
TargetId(module),