Commit Graph

88089 Commits

Author SHA1 Message Date
Elena Lepilkina 219d9707ec [K/N][stdlib] Fix cases with existing pattern before matched with dot quantifier interval in regular expressions implementation(^KT-49967 Fixed) 2021-12-06 09:23:19 +00:00
Ilya Gorbunov 9c90d4e471 KT-50033 Add missing public API packages to module-info and setup a test
The test checks that new packages are not accidentally non-exported,
so each new stdlib package must be either exported or specified in that
test's expected non-exported package list.
2021-12-06 00:58:51 +00:00
Anton Bannykh 8c558fb6ba [JS IR] fix compilation 2021-12-05 15:38:04 +03:00
Anton Bannykh 53fe540884 [JS IR] use correct factory for new IR2JS 2021-12-05 15:38:04 +03:00
Anton Bannykh 038514ed65 [JS IR] fix IC (KT-49878 fixed) 2021-12-05 15:38:04 +03:00
Anton Bannykh bca9f19c86 [JS IR] enable new Ir2JS by default 2021-12-05 15:38:04 +03:00
Yahor Berdnikau 699671cb82 Ported forward additional changes for TaskOutputsBackup.
^KT-49782 Fixed
2021-12-03 21:24:34 +03:00
Anton Lakotka 550f5cf776 [Gradle] Mute Gradle Configuration Cache test for HMPP projects
Relates to #KT-49933
2021-12-03 17:54:56 +00:00
Anton Lakotka bdb94e282f [Gradle] Remove redundant HMPP Flags from integration tests
These flags are now set by default and hence no longer do any effect:
 * kotlin.mpp.enableGranularSourceSetsMetadata=true
 * kotlin.native.enableDependencyPropagation=false
 * kotlin.mpp.enableHierarchicalCommonization=true
2021-12-03 17:54:56 +00:00
Anton Lakotka c2ef443b0a [Gradle] Fix gradle integration tests after enabling HMPP by default 2021-12-03 17:54:56 +00:00
Anton Lakotka 6fd76a0ae6 [Gradle] Dont fail when resolving MetadataDependencies configuration
When HMPP project depends on non-mpp (ex. java) gradle project
Resolving *MetadataDependencies configurations should not fail due to
lack of Gradle's Kotlin MPP Extension.
Simply return null when no such extension found in non-mpp project.
2021-12-03 17:54:55 +00:00
Anton Lakotka 9a2f18581c [Gradle] Enable HMPP by default
Relates to KT-46721
2021-12-03 17:54:55 +00:00
Anastasiya Shadrina 4d3035e2f7 [Parser] Do not support local contextual declarations 2021-12-03 20:22:17 +03:00
Alexander Shabalin 4fd61ad1b0 [K/N] Change AtomicReference for the new MM ^KT-50026
Make AtomicReference behave like FreezableAtomicReference with the new MM: not frozen by default, don't require freezing value unless the ref itself is frozen. The behaviour with the old MM is unchanged.

Merge-request: KT-MR-5155
2021-12-03 17:08:21 +00:00
Alexander Likhachev 1d2e60a2af [Gradle] Measure TESTS_EXECUTED & COMPILATION_STARTED metrics report time 2021-12-03 15:59:48 +00:00
Alexander Likhachev 59b6aefe67 [Gradle] Validate compiler classpath & invoke compiler in single action
#KT-50037 Fixed
2021-12-03 15:59:47 +00:00
Sergey Bogolepov 26994817d1 [K/N] Update watchOS platform libraries for Xcode 13.1 2021-12-03 12:46:35 +00:00
Sergey Bogolepov 4bd4ef6fee [K/N] Update tvOS platform libraries for Xcode 13.1 2021-12-03 12:46:34 +00:00
Sergey Bogolepov c6574d9d80 [K/N] Update iOS platform libraries for Xcode 13.1 2021-12-03 12:46:34 +00:00
Sergey Bogolepov 5cd3043628 [K/N] Update macOS platform libraries for Xcode 13.1 2021-12-03 12:46:34 +00:00
Svyatoslav Scherbina 00c945ea4a Native: pack licenses from license/ into the bundle as well
Also remove duplicates from kotlin-native/licenses/
2021-12-03 11:24:43 +00:00
Svyatoslav Scherbina 13d0793a43 Update kotlin-native/licenses/ files copied from license/
These files were copied long ago, when kotlin-native/ was in the
separate Git repository, and now some of them don't match the updated
originals.
2021-12-03 11:24:43 +00:00
Svyatoslav Scherbina 427c2bde97 Native: remove kotlin-native/LICENSE as it duplicates license/LICENSE.txt 2021-12-03 11:24:43 +00:00
Svyatoslav Scherbina 3898c52454 Native: extract license packing into a function 2021-12-03 11:24:42 +00:00
Svyatoslav Scherbina 71deeab57c Native: don't pack Xcode license into non-macOS bundles 2021-12-03 11:24:42 +00:00
Svyatoslav Scherbina 0a6c4c985c Native: fix packing licenses into the bundle
The source directory became wrong after merging the kotlin-native/ into
kotlin.
2021-12-03 11:24:42 +00:00
Svyatoslav Scherbina 3d7ac9037a Native: fix packing licenses into the samples archive
The source directory became wrong after merging the kotlin-native/ into
kotlin.
2021-12-03 11:24:41 +00:00
Svyatoslav Scherbina 5af9ecf959 Native: fix packing RELEASE_NOTES.md into the bundle
The source directory became wrong after merging the kotlin-native/ into
kotlin.
2021-12-03 11:24:41 +00:00
Svyatoslav Scherbina 7b9f196528 Native: update Xcode license to 8/7/2019 2021-12-03 11:24:40 +00:00
Dmitriy Novozhilov 1f0b62b25f [FIR] Add smartcasts from == if equals is from Any
^KT-49127 Fixed
2021-12-03 14:19:25 +03:00
Dmitriy Novozhilov ac718cd1c4 [FIR] Move resolvedStatus from FirRegularClassSymbol to FirClassSymbol 2021-12-03 14:19:22 +03:00
Dmitriy Novozhilov 77101edfa4 [FIR] Setup tests for IC with compiler plugins
Most of those tests are ignored, because IC is not supported properly
  for compiler plugins. This commit is needed to prepare infrastructure,
  fix current behaviour and collect main problems of IC with plugins

Check fail.txt files in new testdata for explanation of problems
2021-12-03 14:17:41 +03:00
Dmitriy Novozhilov 8fcb525d75 [Test] Add ability to mute IC tests via fail.txt file
If fail.txt is present in root directory of test then exception from
  test will be muted. If there were no exceptions and fail.txt exists
  then test fail with suggestion to remove fail.txt

Content of fail.txt does not matter, so it can be used to store
  information about why this test doesn't pass
2021-12-03 14:17:41 +03:00
Dmitriy Novozhilov 11b9a6eed2 [FIR] Implement simple serializer like declaration generator
This generator is needed to test complex dependency between generated
  members and annotated classes in incremental compilation
2021-12-03 14:17:40 +03:00
Dmitriy Novozhilov 8c11ea266a [FIR] Enable plugin phases if some extensions are registered 2021-12-03 14:17:39 +03:00
Dmitriy Novozhilov 1d32d5c7d8 [FIR] Slightly reorganize directory structure of FIR plugin prototype 2021-12-03 14:17:38 +03:00
Dmitriy Novozhilov d585027431 [FIR] Rename tests of FIR plugin prototype 2021-12-03 14:17:36 +03:00
Dmitriy Novozhilov 86404b8027 [FIR] Implement IR body generators for all FIR declarations generators in plugin prototype 2021-12-03 14:17:34 +03:00
Dmitriy Novozhilov 9a0e73e132 [FIR] Fix IR file entries for files with generated declarations 2021-12-03 14:17:32 +03:00
Dmitriy Novozhilov 974150a9d8 [FIR] Rename annotations in plugin prototype so they have meaningful names 2021-12-03 14:17:29 +03:00
Svyatoslav Scherbina a760c31b22 Native: update RELEASE_NOTES.md 2021-12-03 10:26:26 +00:00
Anton Bannykh 7b5fbb2985 [IR] add a TODO for the privateSignature 2021-12-03 12:58:25 +03:00
Anton Bannykh 4de69fb4b5 [JS IR] store signatures for private symbols separately from public
Those signatures are used in JS IR IC
2021-12-03 12:58:24 +03:00
Anton Bannykh cb3538db92 Revert "[IR] support storing signatures for non-public symbols"
This reverts commit 33cd7e982c.
2021-12-03 12:58:24 +03:00
Ilya Goncharov 12ea7a9092 [Gradle, JS] Use incremental compilation only for development in IR 2021-12-03 11:59:04 +03:00
Mikhael Bogdanov 0997207c7c Apply -Xjvm-default for specific modules only 2021-12-03 06:39:38 +01:00
Mikhael Bogdanov c0ffbe03c6 Remove '-Xjvm-default-allow-non-default-inheritance' flag. Enable such inheritance by default
#KT-47000 Fixed
2021-12-03 06:39:38 +01:00
Ilya Kirillov 7440c726d0 Analysis API: fix invalid psi elements for constants and annotation values 2021-12-02 20:09:19 +01:00
Ilya Kirillov dc9c2aa39d Analysis API: add KDoc, small cosmetic improvements 2021-12-02 20:09:19 +01:00
Ilya Kirillov 6e4c87f138 Analysis API: pretty print declarations additionaly to debug rendering in some tests 2021-12-02 20:09:19 +01:00