KT-34167: Warn when incremental AP does not follow the contract

Isolating incremental AP must report exactly one originating source file.
This commit logs a warning when this constraint is violated.

Test: AnnotationProcessorDependencyCollectorTest.testIsolatingWithoutOrigin
This commit is contained in:
Ivan Gavrilovic
2019-10-15 17:44:21 +01:00
committed by Yan Zhulanow
parent 8f94a71de7
commit 4e807692e5
7 changed files with 34 additions and 18 deletions
@@ -175,7 +175,7 @@ abstract class AbstractKotlinKapt3IntegrationTest : CodegenTestCase() {
internal var savedBindings: Map<String, KaptJavaFileObject>? = null
override fun loadProcessors() = LoadedProcessors(
processors.map { IncrementalProcessor(it, DeclaredProcType.NON_INCREMENTAL) },
processors.map { IncrementalProcessor(it, DeclaredProcType.NON_INCREMENTAL, logger) },
Kapt3ExtensionForTests::class.java.classLoader)
override fun saveStubs(kaptContext: KaptContext, stubs: List<KaptStub>) {