[Test] Disable UNUSED_* diagnostics in tests which are not belong to contolFlowAnalysis suite

This commit is contained in:
Dmitriy Novozhilov
2021-03-29 12:14:16 +03:00
committed by TeamCityServer
parent 85949b387e
commit cd890d5833
758 changed files with 1832 additions and 3745 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
class Z(<!UNUSED_PARAMETER!>s<!>: (Int) -> Int) {
class Z(s: (Int) -> Int) {
}
public inline fun test(s : (Int) -> Int) {
Z(<!USAGE_IS_NOT_INLINABLE!>s<!>)
}
}
+1 -1
View File
@@ -6,5 +6,5 @@ open class Foo protected constructor()
inline fun foo(f: () -> Unit) = object: Foo() {}
class A : Foo() {
inline fun foo(f: () -> Unit) = <!PROTECTED_CONSTRUCTOR_CALL_FROM_PUBLIC_INLINE{NI}, PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>Foo<!>()
inline fun foo(f: () -> Unit) = <!PROTECTED_CONSTRUCTOR_CALL_FROM_PUBLIC_INLINE, PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>Foo<!>()
}
@@ -4,24 +4,24 @@ inline fun inlineFunWithInvoke(s: (p: Int) -> Unit) {
(s)(11)
(s).invoke(11)
(s) <!INFIX_MODIFIER_REQUIRED!>invoke<!> 11
(<!UNUSED_EXPRESSION, USAGE_IS_NOT_INLINABLE!>s<!>)
(<!USAGE_IS_NOT_INLINABLE!>s<!>)
}
<!NOTHING_TO_INLINE!>inline<!> fun Function1<Int, Unit>.inlineExt() {
(this).invoke(11)
(this) <!INFIX_MODIFIER_REQUIRED!>invoke<!> 11
(this)(11)
(<!UNUSED_EXPRESSION!>this<!>)
(this)
}
inline fun inlineFunWithInvoke2(s: (p: Int) -> Unit) {
(((s)))(11)
(((s))).invoke(11)
(((s))) <!INFIX_MODIFIER_REQUIRED!>invoke<!> 11
(((<!UNUSED_EXPRESSION, USAGE_IS_NOT_INLINABLE!>s<!>)))
(((<!USAGE_IS_NOT_INLINABLE!>s<!>)))
}
inline fun propagation(s: (p: Int) -> Unit) {
inlineFunWithInvoke((<!REDUNDANT_LABEL_WARNING!>label@<!> s))
inlineFunWithInvoke((<!REDUNDANT_LABEL_WARNING!>label2@<!> <!REDUNDANT_LABEL_WARNING!>label@<!> s))
}
}
@@ -16,7 +16,7 @@ open class A {
<!INLINE_PROPERTY_WITH_BACKING_FIELD!>inline var z2<!> = 1
<!INLINE_PROPERTY_WITH_BACKING_FIELD!>var z2_1<!> = 1
inline set(<!UNUSED_PARAMETER!>p<!>: Int) {}
inline set(p: Int) {}
<!INLINE_PROPERTY_WITH_BACKING_FIELD!>inline val z<!> by Delegate()
}
@@ -7,11 +7,11 @@ final class FinalProperty {
inline var varProp: Int
get() = 1
set(<!UNUSED_PARAMETER!>p<!>: Int) {}
set(p: Int) {}
var varProp_2: Int
get() = 1
inline set(<!UNUSED_PARAMETER!>p<!>: Int) {}
inline set(p: Int) {}
}
@@ -24,11 +24,11 @@ open class OpenProperty {
<!DECLARATION_CANT_BE_INLINED!>inline open var varProp: Int<!>
get() = 1
set(<!UNUSED_PARAMETER!>p<!>: Int) {}
set(p: Int) {}
<!DECLARATION_CANT_BE_INLINED!>open var varProp_2: Int<!>
get() = 1
inline set(<!UNUSED_PARAMETER!>p<!>: Int) {}
inline set(p: Int) {}
}
@@ -15,7 +15,7 @@ open class A {
protected val z: String = "1"
public var zVar: String = "1"
protected set(<!UNUSED_PARAMETER!>value<!>) {}
protected set(value) {}
inline fun call() {
<!PROTECTED_CALL_FROM_PUBLIC_INLINE!>test<!>()
@@ -78,7 +78,7 @@ internal class AInternal {
protected val z: String = "1"
public var zVar: String = "1"
protected set(<!UNUSED_PARAMETER!>value<!>) {}
protected set(value) {}
inline fun call() {
@@ -99,4 +99,4 @@ private class X {
}
}
}
}
@@ -15,7 +15,7 @@ open class A {
protected val z: String = "1"
public var zVar: String = "1"
protected set(<!UNUSED_PARAMETER!>value<!>) {}
protected set(value) {}
inline fun call() {
<!PROTECTED_CALL_FROM_PUBLIC_INLINE_ERROR!>test<!>()
@@ -78,7 +78,7 @@ internal class AInternal {
protected val z: String = "1"
public var zVar: String = "1"
protected set(<!UNUSED_PARAMETER!>value<!>) {}
protected set(value) {}
inline fun call() {
@@ -99,4 +99,4 @@ private class X {
}
}
}
}
@@ -2,7 +2,7 @@
inline fun call(a: A) {
a.test()
publishedTopLevel()
a.publishedVar
a.publishedVar = 1
+4 -4
View File
@@ -2,7 +2,7 @@
inline fun call(a: A) {
a.test()
publishedTopLevel()
a.publishedVar
a.publishedVar = 1
@@ -23,7 +23,7 @@ inline var inlineVar: Int
publishedVarTopLevel = 1
return 1
}
set(<!UNUSED_PARAMETER!>value<!>) {
set(value) {
val a = A()
a.test()
publishedTopLevel()
@@ -88,7 +88,7 @@ internal class A {
return 1
}
set(<!UNUSED_PARAMETER!>value<!>) {
set(value) {
publicFun()
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>internalFun<!>()
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>privateFun<!>()
@@ -147,7 +147,7 @@ inline internal var publishedVarTopLevel: Int
return 1
}
set(<!UNUSED_PARAMETER!>value<!>) {
set(value) {
publicFun()
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>internalFun<!>()
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>privateFun<!>()
+6 -6
View File
@@ -22,8 +22,8 @@ inline fun inlineFunWithInvoke(s: (p: Int) -> Unit, ext: Int.(p: Int) -> Unit) {
11.ext(11)
11 <!INFIX_MODIFIER_REQUIRED!>ext<!> 11
<!UNUSED_EXPRESSION, USAGE_IS_NOT_INLINABLE!>s<!>
<!UNUSED_EXPRESSION, USAGE_IS_NOT_INLINABLE!>ext<!>
<!USAGE_IS_NOT_INLINABLE!>s<!>
<!USAGE_IS_NOT_INLINABLE!>ext<!>
11
}
}
@@ -37,8 +37,8 @@ inline fun inlineFunWithInvokeNonInline(noinline s: (p: Int) -> Unit, ext: Int.(
11.ext(11)
11 <!INFIX_MODIFIER_REQUIRED!>ext<!> 11
<!UNUSED_EXPRESSION!>s<!>
<!UNUSED_EXPRESSION, USAGE_IS_NOT_INLINABLE!>ext<!>
s
<!USAGE_IS_NOT_INLINABLE!>ext<!>
11
}
@@ -51,8 +51,8 @@ inline fun inlineFunWithInvokeNonInline(noinline s: (p: Int) -> Unit, ext: Int.(
this <!INFIX_MODIFIER_REQUIRED!>invoke<!> 11
this(11)
<!UNUSED_EXPRESSION!>this<!>
this
11
}
}
}