Commit Graph

90877 Commits

Author SHA1 Message Date
Ilya Kirillov d38e797399 Docs: Analysis API Usage document 2022-01-28 18:14:41 +01:00
Ilya Kirillov b67e011930 Docs: fix small typos 2022-01-28 18:14:40 +01:00
Ilya Kirillov 5e6827e65e Docs: change analysis docs structure 2022-01-28 18:14:40 +01:00
Alexander Korepanov d584cfc31d Remove workaround for KT-45620 from NumbersTest.kt. 2022-01-28 17:10:01 +00:00
Nikolay Krasko b28a79f5d0 Refactoring: utility for working with temp directory in FilePathsInKlibTest 2022-01-28 18:54:37 +03:00
Nikolay Krasko 0625446449 Minor: fix actual, expected usage in FilePathsInKlibTest 2022-01-28 18:54:37 +03:00
Nikolay Krasko 14936cbad2 Refactoring: do plain roots read in klib in FilePathsInKlibTest 2022-01-28 18:54:36 +03:00
Nikolay Krasko d951432fe3 Minor: remove commented code from FilePathsInKlibTest
Don't store commented code in the repository, it will likely
to be broken after uncomment anyway.
2022-01-28 18:54:35 +03:00
Dmitriy Novozhilov 3b7409be5f [FIR] Properly pass optIn annotations to full pipeline test 2022-01-28 17:53:59 +03:00
Mikhail Glukhikh c2f43dd98e Revert OPT_IN_MARKER_ON_OVERRIDE limitation #KT-48890 Fixed 2022-01-28 13:40:35 +00:00
Mikhail Glukhikh 0c49ae04cb Delay AbstractClassMemberNotImplementedWithIntermediate... to 1.8
Related to KT-45508
2022-01-28 13:40:35 +00:00
Mikhail Glukhikh 2a6462ef09 Enable KT-45508 and KT-49017 errors when jvmDefault=all(-compatibility) 2022-01-28 13:40:35 +00:00
Mikhail Glukhikh d3f6ba99cb Add links to related issues to some deprecation warnings 2022-01-28 13:40:34 +00:00
Aleksei.Cherepanov 0e0b3e6d75 Add test of Kotlin Lombok project compilation
This test checks that the project with Lombok plugin will be compiled successfully after successful import (KTIJ-20506)

#KTIJ-20641 Fixed
2022-01-28 13:30:42 +00:00
Dmitriy Dolovov 2c3b2ccf6f [Native][tests] Fix failing black box tests due to misconfiguration 2022-01-28 16:23:36 +03:00
Dmitriy Dolovov 02022cf260 [Native][tests] Generate KLIB ABI tests twice - to run with and w/o cache 2022-01-28 16:23:36 +03:00
Dmitriy Dolovov 5d1884d8dc [Native][tests] Refactoring: Move configuration properties that can be overridden to class-level settings 2022-01-28 16:23:35 +03:00
Dmitriy Dolovov 709101a56b [Native][tests] Refactoring: Extract configuration properties from NativeTestSupport 2022-01-28 16:23:35 +03:00
Dmitriy Dolovov bfc7e3d825 [Native][tests] Use new Gradle property for cache mode 2022-01-28 16:23:35 +03:00
Dmitriy Dolovov 18cd07ea5f [Test] Fix proper use of annotation parameter names in generated classes
When an annotation parameter has a different name than "value" or there is more than one annotation parameter we need to specify annotation parameter names explicitly in generated Java source code.

Fix using classes as annotation parameters in generated classes
2022-01-28 16:23:35 +03:00
Dmitriy Novozhilov 938baa5cfe [FIR] Support reading optIn annotations from module dump in MT and FP tests 2022-01-28 16:12:13 +03:00
Dmitriy Novozhilov 1265dda880 [FIR] Render diagnostic names in full pipeline tests 2022-01-28 16:12:12 +03:00
Dmitriy Novozhilov aab66bd623 [FIR] Support rendering diagnostic names in CLI FIR compiler 2022-01-28 16:12:12 +03:00
Dmitriy Novozhilov 5055e1eaf1 Add kotlinx_cli_jvm_* idea artifact to .gitignore 2022-01-28 16:12:11 +03:00
Alexander Shabalin 4c97b55adf [K/N] Simplify SingleThreadExecutor
Merge-request: KT-MR-5591
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-01-28 12:11:44 +00:00
Svyatoslav Scherbina 4cd60090e0 ObjCExport: fix replacing Kotlin class methods by Swift extensions
^KT-49937 Fixed
2022-01-28 11:15:39 +00:00
Dmitriy Novozhilov 199edd59f8 [FE] Delay StopPropagatingDeprecationThroughOverrides till 1.9
^KT-47902
2022-01-28 13:59:21 +03:00
Sergej Jaskiewicz 8149189585 [JS IR] Optimize away upcasts
#KT-50212 Fixed
2022-01-28 10:03:53 +00:00
Sergej Jaskiewicz 400a5a0f34 [JS] Add CHECK_TERNARY_OPERATOR_COUNT and CHECK_BINOP_COUNT directives 2022-01-28 10:03:52 +00:00
Pavel Kirpichenkov a220624769 [Commonizer] move commonizer setting keys to the commonizer-cli module
Get rid of `OptionAlias` as unnecessary; keys will be used directly
2022-01-28 12:22:50 +03:00
Pavel Kirpichenkov b17737d7de [Commonizer] minor: rename type commonizer options
Call it `context` to make more distinguishable from the global settings
2022-01-28 12:22:50 +03:00
Pavel Kirpichenkov 2609175d58 [Commonizer] Introduce commonizer settings
Add settings for a more fine-grained control over commonizer features
that will be added in the future

Add setting and KGP flag for optimistic number commonization

KT-51011
2022-01-28 12:22:50 +03:00
Igor Chevdar 1aea2d0437 [K/N][IR] Respect -Xlazy-ir-for-caches on caches building 2022-01-28 13:14:37 +05:00
Igor Chevdar 0cc48440e1 [K/N][IR] Properly handle enums when building caches
Helps to fix https://youtrack.jetbrains.com/issue/KT-50977 but not entirely
2022-01-28 12:35:50 +05:00
nataliya.valtman 5e721122e9 Add human readable timestamp in statistic 2022-01-28 09:58:00 +03:00
Pavel Kunyavskiy 1bc8061667 [K/N] Refactor suspension to reduce generated code size 2022-01-28 06:44:47 +00:00
Ilya Matveev 41c45b97e7 [K/N][Runtime] Switch thread state when triggering CMS GC 2022-01-28 12:25:03 +07:00
Ilya Matveev 1e78036a1b [K/N] Enable CMS GC by default for the new MM
Issue #KT-50713 Fixed
2022-01-28 12:24:57 +07:00
Artem Kobzar f835433221 test: add optional argument d.ts generation. 2022-01-27 19:45:00 +00:00
Artem Kobzar 0cf1ebd686 fix(d.ts for Default Argument Value): add question mark to exported funcitons with default parameter. 2022-01-27 19:44:59 +00:00
Simon Ogorodnik 4c5eb9ac32 KT-50889: Fix caching of module descriptors in K2MetadataKlibSerializer
Previously, in case of repeated analysis, descriptors cached in
CommonDependenciesContainer was initialized multiple times

 #KT-50889 Fixed
2022-01-27 17:32:18 +00:00
Dmitriy Novozhilov 794297eea3 Advance bootstrap to 1.7.0-dev-1132 2022-01-27 17:54:03 +03:00
Mikhail Glukhikh fd3d86eddf FE 1.0: introduce deprecation for Enum.declaringClass (KT-49653) 2022-01-27 17:27:40 +03:00
Mikhail Glukhikh 983fa4c8c7 FIR: add temporary access to Enum.getDeclaringClass (see KT-49653) 2022-01-27 17:27:39 +03:00
Mikhail Glukhikh c2ab09fa84 Add test for KT-49653 2022-01-27 17:27:38 +03:00
Roman Golyshev 9ff46004e4 FIR IDE: Remove typesCache from KtSymbolByFirBuilder
This cache wasn't working too well, because ConeTypes have
equals/hashCode implementations which do not account for types'
attributes (like annotations, for example).

Because of that, `String` and `@Annotated String` were considered the
same type, and the cache was remembering whichever came first.
2022-01-27 16:23:44 +03:00
Pavel Punegov 10ac98b029 [Gradle][test] Fix Cocoapods integration tests
The change 782b4f64be added plugin
management to settings that require at least 2 properties to be set.
2022-01-27 12:42:03 +00:00
Alexander Shabalin 4c8bb93560 [K/N] Helpers for saturating arithmetics in runtime
Merge-request: KT-MR-5496
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-01-27 12:32:40 +00:00
Victor Petukhov 1a23cd8c45 [FE 1.0] Don't try to report specialized resolution ambiguity error for builder inference if the corresponding substitutor is empty
^KT-50989 Fixed
2022-01-27 15:30:16 +03:00
Mikhail Glukhikh eeadd8588d Drop CommonCompilerArguments.optInDeprecated
On the way to KT-22956
2022-01-27 11:48:22 +00:00