Commit Graph

12351 Commits

Author SHA1 Message Date
Svyatoslav Kuzmich 7fed003531 [Wasm] stdlib: Remove unchecked cast in PrimitiveClasses::functionClass
This half-stub function is used for compatibility with Kotlin/JS
lowering and doesn't need full KClassImpl<Any> return type.
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich dba5d401bb [Wasm] fdlibm NFC: Remove dead code in expm1
Fixes warning that value of y is never used before it is read.

Removed dead code is not present in FreeBSD codebase since at least 1994
https://github.com/freebsd/freebsd-src/blame/34ac629b40e68e5394fe0a27e47c73a875d9f8cb/lib/msun/src/s_expm1.c#L141
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich d6a713ad39 [Wasm] fdlibm NFC: Remove dead code in __ieee754_pow
Fixes warnings.
i0 and i1 are not used in the original C code.
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich 3acf371f8a [Wasm] fdlibm NFC: Replace division by zero with inf and NaN constants
Fixes warnings.
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich 181e1023ed [Wasm] fdlibm NFC: Suppress name shadowing for "mutable parameters" 2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich 5faa430904 [Wasm] fdlibm NFC: Remove unnecessary variable initializers in
Fixes warnings.
These initializers were not in the original C code anyway.
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich ffb8138ae2 [Wasm] stdlib NFC: Suppress warnings in _WasmArrays.kt 2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich 14cf0a0b3f [Wasm] stdlib NFC: Remove dead code in Number2String.kt
This fixes compiler warning
`w_exp` corresponds to unused field of `w` struct
in the original C code
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich d0b25e5a90 [Wasm] stdlib NFC: Suppress warnings for @WasmPrimitiveConstructor 2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich 8973ba294e [Wasm] stdlib API: Mark all Double and Float companion values as const
Make it consistent with core/builtins and K/N runtime
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich 6efeee2037 [Wasm] stdlib API: remove bitwise Byte and Short operations from builtins
They shadow kotlin.experimental extensions
2023-01-24 14:54:59 +01:00
Leonid Startsev 5999c2b324 Enhance documentation for KotlinClassMetadata 2023-01-24 11:07:45 +00:00
Leonid Startsev f327d68fe0 Refactor JvmMemberSignature:
- Deprecate asString() in favor of toString()
- Rename desc to descriptor with deprecation
2023-01-24 11:07:43 +00:00
Leonid Startsev 0fcb4c3fb0 Document @ExperimentalContextReceivers 2023-01-24 11:07:43 +00:00
Leonid Startsev 1828e293ea Provide @UnstableMetadataApi and mark kotlin_module related API with it,
as it is not finished yet.
2023-01-24 11:07:42 +00:00
Leonid Startsev 165e779e3e Change extension properties on ClassName into functions, to be more distinct from other String extensions. 2023-01-24 11:07:42 +00:00
Sebastian Sellmair 0443ef0648 [Gradle] Only resolve hostSpecificMetadataConfiguration when konanTarget is enabled
^KT-56111 Verification Pending
2023-01-23 19:25:34 +00:00
Sebastian Sellmair 8f6a15e33e [Gradle] MetadataDependencyTransformationTask: Declare dependency to 'hostSpecificMetadataConfiguration's
^KT-56111 Verification Pending
2023-01-23 19:25:34 +00:00
Sebastian Sellmair 24db9f3680 [Gradle] Add MppCompositeBuildIT with host specific targets
... to cover KT-56111
2023-01-23 19:25:34 +00:00
Artem Daugel-Dauge c2e092fe4a [Gradle] Fix invalidating iOS framework after import
^KT-49430 Verification Pending
2023-01-23 18:52:03 +00:00
Artem Daugel-Dauge 8a34d1f430 Separate podgen & podinstall tasks
^KT-54161 Verification Pending
2023-01-23 18:52:03 +00:00
Alexander.Likhachev f144f8b6d3 [Gradle] Fix compilation error in CocoaPodsIT
Also add a Gradle version constraint for deprecation warnings suppressing
KT-55972 Related
2023-01-23 19:02:22 +01:00
Alexander.Likhachev 2e7e1625d3 [Gradle] Remove warnings suppression from more tests
KT-55972 Related
2023-01-23 17:21:17 +00:00
Alexander.Likhachev 9bb2a2468d [Gradle] Suppress warnings only for the Gradle versions that produce them
KT-55972 Related
2023-01-23 17:21:17 +00:00
Alexander.Likhachev 3373a1dd90 [Gradle] Add a warning mode assertion for the old test DSL tests
#KT-55972 Fixed
2023-01-23 17:21:17 +00:00
Alexander.Likhachev 1e7cf5571b [Gradle] Add a warning mode assertion for the new test DSL tests
#KT-55972 In Progress
2023-01-23 17:21:16 +00:00
Alexander.Likhachev dc24582a0b [Gradle] Apply gradle-warnings-detector to test projects
#KT-55972 In Progress
2023-01-23 17:21:16 +00:00
Alexander.Likhachev 7bcfa45c49 [Build] Add gradle-warnings-detector plugin for integration tests
#KT-55972 In Progress
2023-01-23 17:21:16 +00:00
Dmitriy Dolovov b42492cd4d [Native][tests] Mute failing ktor 1_5_4 and coroutines 1_5_0-RC-native-mt (KT-46697) Gradle IT 2023-01-23 16:11:06 +00:00
Roman Efremov 2dc3871954 Add "hasEnumEntries" class flag to kotlinx-metadata
^KT-53929 Fixed
2023-01-23 12:53:06 +01:00
Artem Daugel-Dauge f6eb978671 [Gradle] More workarounds for KT-55751 after adding linkOnly mode 2023-01-23 11:48:04 +00:00
Abduqodiri Qurbonzoda 1b258646be Specify benchmarks repository for Base64 2023-01-22 02:02:38 +00:00
Nikolay Krasko 922ffa80b0 Remove kotlinx-serialization-core:1.0.0-RC usage 2023-01-21 16:38:48 +00:00
Anton Lakotka bbc2a9a1db [Gradle] Test that CInterop[MDT]Tasks outputs doesn't conflict
^KT-49933
2023-01-20 20:15:40 +00:00
Sebastian Sellmair d4a9bb8d90 [Gradle] CInteropMetadataDependencyTransformationTask: Fix overlapping outputLibrariesFileIndex
Before this change, IDE tasks from different projects
were re-using the same libraries index file, leading
to overwrites and therefore missing dependencies in the IDE

KT-49933
2023-01-20 20:15:40 +00:00
Sebastian Sellmair 6849804941 [Gradle] KotlinMetadataLibraryDirectories: Use composite build root for IDE directories
KT-49933
2023-01-20 20:15:39 +00:00
Anton Lakotka 61748f4016 [Gradle] Add mavenCentralCacheRedirector back to fix compilation error
^KT-49933
2023-01-20 20:15:39 +00:00
Sebastian Sellmair 3d8ee5bae5 [Gradle][Minor] ProjectMppDependencyProjectStructureMetadataExtractor: Remove unnecessary constructor
KT-49933
2023-01-20 20:15:39 +00:00
Anton Lakotka 00bcaebd15 [Gradle] Move collectAll[PSM]InCurrentBuild to
^KT-49933
2023-01-20 20:15:38 +00:00
Anton Lakotka cc98b7b4cd [Gradle] Delete failing KPM tests after Configuration Cache fixes
KPM is experimental and is not going to be supported before stable
release

^KT-49933
2023-01-20 20:15:38 +00:00
Anton Lakotka 3a02090ff3 [Gradle] Collect project structure metadata for current build separately
^KT-49933
2023-01-20 20:15:38 +00:00
Anton Lakotka 244f742610 [Gradle] Move MetadataDependencyTransformationTask configuration to task file
^KT-49933
2023-01-20 20:15:37 +00:00
Anton Lakotka afaa86291f [Gradle] Remove dependency to transform all dependencies metadata task
from `resolveIdeDependencies` task.

^KT-49933
2023-01-20 20:15:37 +00:00
Anton Lakotka 33a680c123 [Gradle] Re-use GlobalProjectStructureMetadataStorage to obrain all...
...Kotlin Project Structure Metadata to feed it for Metadata Dependency
Transformation process

^KT-49933
2023-01-20 20:15:37 +00:00
Sebastian Sellmair 321647b831 [Gradle] Restore KotlinMetadataTargetConfigurator.applyToConfiguration
... to avoid unnecessary :all: dependencies being imported
in 'old' import style (using deprecated DependenciesMetadata configurations)

KT-49933
2023-01-20 20:15:36 +00:00
Sebastian Sellmair a02279df7d [Gradle][Minor] Optimise imports on KotlinNativeCompilation
KT-49933
2023-01-20 20:15:36 +00:00
Sebastian Sellmair 55faa69a7d [Gradle][Minor] Optimise imports on ProjectMetadataProviderImpl
KT-49933
2023-01-20 20:15:36 +00:00
Anton Lakotka 5a396187ca [Gradle] Remove with prefix in hostSpecificMetadataConfigurationName
^KT-49933
2023-01-20 20:15:35 +00:00
Anton Lakotka d5936a52f0 [Gradle] Move hostSpecificMetadataConfiguration to configuration container
Previously it was declared on KotlinNativeCompilation with extra
NativeCompilationDependencyConfigurationsContainer interface. But it is
not necessary, and hostSpecificMetadataConfiguration can be placed
directly to KotlinCompilationConfigurationsContainer and guarded
and created on demand via `withHostSpecificMetadata` flag on a factory
method.

^KT-49933
2023-01-20 20:15:35 +00:00
Sebastian Sellmair e36338b091 [Gradle][Minor] CInteropMetadataDependencyTransformationTask: Demote visibility of internals
KT-49933
2023-01-20 20:15:35 +00:00