Commit Graph

5800 Commits

Author SHA1 Message Date
Artyom Degtyarev 1ca299d024 Fixing KT-37212 (#3939)
* Fixing KT-37212(https://youtrack.jetbrains.com/issue/KT-37212)
unification of the floating-point constants evaluation
2020-03-10 09:57:58 +03:00
Sergey Bogolepov 61fee6ecfa [Interop] Enable metadata mode by default 2020-03-06 21:01:42 +07:00
Igor Chevdar bc7c123d50 [IR] Fix for https://youtrack.jetbrains.com/issue/KT-37057 + test 2020-03-06 16:19:46 +03:00
Roman Artemev be9d49dc7e [Metadata] Improve Forward-declaration related hack 2020-03-06 18:44:57 +07:00
Ilya Matveev 2562522392 Platform libs: Use FQ-names for platform libraries
This patch changes the platform libraries naming scheme.
Earlier the platform libraries used to have simple names,
like posix or Foundation. But these names are not unique
enough. This causes issues with library resolution and cache
building if a user library has the same simple name.

With this patch all platform libraries have FQ names like
org.jetbrains.konan.platform.posix. Corresponding change
for user libraries will be added separately at the Gradle
plugin side.

Fix for #KT-36720.
2020-03-06 13:24:20 +07:00
Ilya Matveev c7cd560228 Platform lib generator: Allow rebuilding platform libs 2020-03-06 13:24:20 +07:00
Ilya Matveev a4422c22e5 Platform lib generator: Allow building metadata libraries 2020-03-06 13:24:20 +07:00
Ilya Matveev be8622053e build: Build stdlib cache as a part of dist/cross_dist 2020-03-06 13:24:20 +07:00
Sergey Bogolepov 934b843ffa [platformLibs] Support -nopack option for metadata mode 2020-03-06 13:24:20 +07:00
Ilya Matveev 764be2f461 Add prebuilt distribution type
Since platform libraries can now be generated at the use side,
we need to:

a) remove them from a default distribution
b) drop the restricted distribution

But we still need a distribution with prebuilt libraries to be
able to workaround problems with platform libraries generator.

This patch removes libraries from a default distribution and
adds a distribution type with pretuilt libraries.
2020-03-06 13:24:20 +07:00
Ilya Matveev 3af8564bf6 Platform libs: Improve library generator
- Support concurrent execution
- Provide default values for parameter
- Skip existing libraries/caches
- Improve logging
2020-03-06 13:24:20 +07:00
Sergey Bogolepov 4fd2e67d68 [Interop][Metadata] Avoid unnecessary backticks
`Classifier.relativeFqName` returns fully-qualified name where parts may be backticked.
We don't need backticks in case of metadata output because names in metadata are already "parsed".
2020-03-06 10:40:32 +07:00
Sergey Bogolepov dde5eced87 [Interop][Linker] Full support for metadata-only interop
Add support for IdSignatures to interop declarations from metadata-only libraries.
2020-03-05 18:45:45 +07:00
Sergey Bogolepov ac5fd80cb4 [Interop][Serialization] Skip files with C enums and structs
We don't need to serialize these files since stubs for enums and structs
will be generated anew.
2020-03-05 18:45:45 +07:00
Svyatoslav Scherbina e79b055c81 Add basic support for suspend functions in produced Obj-C header 2020-03-05 12:33:21 +03:00
Svyatoslav Scherbina 4e048b5e25 Refactor block generator in ObjCExport 2020-03-05 12:33:21 +03:00
Collin Monahan 6d65722b67 Fix typo (#3932) 2020-03-04 14:30:45 +03:00
Vasily Levchenko 682d56da7d [codegen][debug info] use single compile unit for compilation 2020-03-04 12:24:48 +01:00
Dominic Fischer 7e9f8b5c8c Fix toKStringFromUtf32 (#3903)
Remove null terminator from returned String
2020-03-04 14:18:04 +03:00
Ilya Gorbunov 27307552e7 [stdlib] Synchronize kotlin.time in master with kotlin-mirror/master branch 2020-03-03 19:38:49 +03:00
Igor Chevdar 5e30eaef55 [IR] Used common type parameters copy function
This fixes possible [IR_VALIDATION] warnings because
previously noone set parents for copied type parameters
2020-03-03 11:17:58 +03:00
Alexander Shabalin b339c950b5 Fix pthread_cond_timedwait usage (#3925) 2020-03-03 11:17:00 +03:00
Sergey Bogolepov 38380f0686 Add task that makes LLVM dependency smaller
Currently Kotlin/Native uses default LLVM distribution.
While it is useful to have whole LLVM toolchain for development,
it is huge pain for users, because dependency is needlessly big.

The correct solution for this problem is to make own build script for LLVM,
but it is a big task that make take a while.

So for now we repack LLVM dependency without unnecessary files.
2020-03-03 11:28:59 +07:00
Sergey Bogolepov bffca00ff4 [Target] Make KonanPropertiesLoader host-independent 2020-03-03 11:28:59 +07:00
Sergey Bogolepov 2d3766b519 [DependencyProcessor] Minor code cleanup 2020-03-03 11:28:59 +07:00
Sergey Bogolepov eb486a6e45 [DependencyProcessor] Untie from platform-default archive type
MinGW artifacts have `.zip` extension, while their versions for Linux and macOS have `.tar.gz`.
To be able to download zips on macOS (and vice-versa) we pass archive type as parameter to DependencyProcessor.
2020-03-03 11:28:59 +07:00
Sergey Bogolepov e147993ff2 Avoid IR node duplication when lowering interop constant access 2020-03-03 11:28:41 +07:00
Sergey Bogolepov eec5547213 [Codegen] Do not emit unneeded external accessor declarations 2020-03-03 11:28:41 +07:00
Sergey Bogolepov 9b5513ca37 [Interop] Fix assignment of nulls to pointer fields 2020-03-03 11:28:41 +07:00
Sergey Bogolepov 07177396ac [cinterop] A bit more robust logic of mode selection 2020-03-03 11:28:41 +07:00
Vasily Levchenko aee9bcfed0 [kotlin compiler][update] 1.4.0-dev-3529
* 266149b88c - (tag: build-1.4.0-dev-3529) RedundantLetInspection: fix false positive with nullable receiver extension call (vor 6 Stunden) <Toshiaki Kameyama>
* a6139f3635 - (tag: build-1.4.0-dev-3528) Wizard: minor: fix YamlParsingError package (vor 15 Stunden) <Ilya Kirillov>
* a9c96a7cde - Wizard: move downloading Kotlin version phase to the end (vor 18 Stunden) <Ilya Kirillov>
* a03510e3c0 - Wizard: add tags for project templates (vor 18 Stunden) <Ilya Kirillov>
* d639816393 - Wizard: use kotlinx-collections-immutable for storing IRs (vor 18 Stunden) <Ilya Kirillov>
* e38448c6f2 - (tag: build-1.4.0-dev-3527, tag: build-1.4.0-dev-3524, tag: build-1.4.0-dev-3522, tag: build-1.4.0-dev-3519, tag: build-1.4.0-dev-3515) No need to hack PsiSubstitutor anymore in AS 40 (KT-36039) (vor 2 Tagen) <Nikolay Krasko>
* b1ca06b21d - (tag: build-1.4.0-dev-3513) Build: Add missing tools.jar to performance tests runtime (vor 2 Tagen) <Vyacheslav Gerasimov>
* 05b5894ef1 - (tag: build-1.4.0-dev-3507) Build: Use configurations property for shadowJar in :kotlin-main-kts (vor 2 Tagen) <Vyacheslav Gerasimov>
* 0db69cadb6 - Build: Make all compile dependencies on toolsJar compileOnly (vor 2 Tagen) <Vyacheslav Gerasimov>
* 8e0f403f02 - Build: normalize inputs of :kotlin-reflect:stripMetadata as classpath (vor 2 Tagen) <Vyacheslav Gerasimov>
* 6e2fb72bb6 - Build: Make :kotlin-reflect:relocateCoreSources task cacheable (vor 2 Tagen) <Vyacheslav Gerasimov>
* 0ebc11270b - Build: Remove duplicated manifestAttributes call from reflectShadowJar (vor 2 Tagen) <Vyacheslav Gerasimov>
* 54d8afea40 - Build: Disable caching for Test tasks until we are sure it is safe (vor 2 Tagen) <Vyacheslav Gerasimov>
* 5195cc8c12 - Build: Add buildserver.labs.intellij.net to valid hosts in caching check (vor 2 Tagen) <Vyacheslav Gerasimov>
* b64c7cce84 - Build: Use Jar task for :kotlin-compiler:packCompiler (vor 2 Tagen) <Vyacheslav Gerasimov>
* 35c4cc6d45 - Build: Use Jar task instead ShadowJar task in :kotlin-daemon-client-new (vor 2 Tagen) <Vyacheslav Gerasimov>
* 07949aaf4f - Build: Use Jar task instead ShadowJar task in :kotlin-daemon (vor 2 Tagen) <Vyacheslav Gerasimov>
* 6c8c126ebc - (tag: build-1.4.0-dev-3506) as40: Update to AS 4.0 Beta 1 (vor 2 Tagen) <Vyacheslav Gerasimov>
* 7359bb8a00 - (tag: build-1.4.0-dev-3503) Fix tests freeze because of ScriptChangesNotifier (KT-37112) (vor 3 Tagen) <Sergey Rostov>
* 03913ff029 - (tag: build-1.4.0-dev-3501) KT-33119 Generate IINC for primitive types only (vor 3 Tagen) <Dmitry Petrov>
* 2010d8d2b9 - (tag: build-1.4.0-dev-3500) KT-36956 fix back-end part in JVM and JVM_IR (vor 3 Tagen) <Dmitry Petrov>
* f764d3a021 - (tag: build-1.4.0-dev-3498) testCompileOnlyDependencyProcessingForMetadataCompilations -> Gradle 5+ (vor 3 Tagen) <Sergey Igushkin>
* b8602fa31a - Fix missing installation dependencies in Gradle integration tests (vor 3 Tagen) <Sergey Igushkin>
* 197e096017 - (tag: build-1.4.0-dev-3497) Disable PerformanceNativeProjectsTest (vor 3 Tagen) <Vladimir Dolzhenko>
* bc0e466981 - Add undo typing kts performance test (vor 3 Tagen) <Vladimir Dolzhenko>
* 4ac45eb38b - (tag: build-1.4.0-dev-3494) JVM IR: Fix inline class constructors taking default values of inline class type. (vor 3 Tagen) <Steven Schäfer>
* 846e50a0c0 - (tag: build-1.4.0-dev-3478) Backport ActionUtil.underModalProgress to fix 191/192 compilation (vor 3 Tagen) <Vladimir Dolzhenko>
* d47fc7280b - (tag: build-1.4.0-dev-3475) Fix testUnresolvedMultiline test data (vor 3 Tagen) <Nikolay Krasko>
* 50c92f2a05 - Bad string interpolation for empty string in batch (KT-37090) (vor 3 Tagen) <Nikolay Krasko>
* b173284d1d - (tag: build-1.4.0-dev-3473) Add tests for super calls in inline classes (vor 3 Tagen) <Steven Schäfer>
* 0fe8fec1d1 - Mute FIR tests (vor 3 Tagen) <Steven Schäfer>
* 465e9f2d68 - JVM IR: Always produce stubs for interface methods in inline classes (vor 3 Tagen) <Steven Schäfer>
* 8c9ebc1bf9 - JVM IR: Initialize parent field in InlineCallableReferenceToLambda (vor 3 Tagen) <Steven Schäfer>
* c2eab08cc9 - (tag: build-1.4.0-dev-3467) FIR: fix arose problem with smartcast un-stability (vor 3 Tagen) <Mikhail Glukhikh>
* d5fbd93fe6 - Unmute additional FIR black box tests (vor 3 Tagen) <Mikhail Glukhikh>
* 9e69ffad36 - FIR2IR (refactoring): introduce ConversionTypeContext (vor 3 Tagen) <Mikhail Glukhikh>
* 883dd95e3c - FIR: fix class / constructor type parameter duplication (vor 3 Tagen) <Mikhail Glukhikh>
* 2308e5bb7c - FIR2IR: in case of use-site generic type use call from original class (vor 3 Tagen) <Mikhail Glukhikh>
* 096dc25701 - FIR: change callableId of fake overrides to derived class owner (vor 3 Tagen) <Mikhail Glukhikh>
* db7401d8eb - FIR2IR: set GET_PROPERTY origin for property reads (vor 3 Tagen) <Mikhail Glukhikh>
* e066afc67f - FIR2IR: set parents for external enum entries (vor 3 Tagen) <Mikhail Glukhikh>
* 5b3b35cd78 - FIR2IR: set "external stub" origin for external enum entries (vor 3 Tagen) <Mikhail Glukhikh>
* 3a3d6e740c - FIR2IR: correctly set type parameters of property accessors (vor 3 Tagen) <Mikhail Glukhikh>
* 50abb07245 - [FIR] Record & use type arguments of FirQualifiedAccessExpression (vor 3 Tagen) <Mikhail Glukhikh>
* f53b059410 - (tag: build-1.4.0-dev-3460) [Gradle, tests] Fix native compiler arguments test for Windows (vor 3 Tagen) <Ilya Matveev>
* 0b9106b0f8 - (tag: build-1.4.0-dev-3457) CanBePrimaryConstructorPropertyInspection: do not report for 'open' property used in class initializer in 'open' class (vor 3 Tagen) <Toshiaki Kameyama>
* 963258189a - (tag: build-1.4.0-dev-3455) JVM_IR: change parameter type computation in InlineCallableReferenceToLambda (vor 3 Tagen) <Georgy Bronnikov>
* 456139fc5e - (tag: build-1.4.0-dev-3451) JVM_IR: cache signatures in BridgeLowering (vor 3 Tagen) <pyos>
* 97e320b57f - (tag: build-1.4.0-dev-3446) Don't show IR_COMPILED_CLASS error in IJ when it arises in module with backend IR enabled (vor 3 Tagen) <Ilya Kirillov>
* 7a4d414c59 - (tag: build-1.4.0-dev-3445) 201: Mute SuggestedRefactoring tests (vor 3 Tagen) <Nikolay Krasko>
* 6a9dfd4935 - 201: Mute HierarchicalMultiplatformProjectImportingTest: No module dependency found (vor 3 Tagen) <Nikolay Krasko>
* 774db02b23 - 201: Mute quick fix tests: Range must be inside element being annotated (vor 3 Tagen) <Nikolay Krasko>
* 06adac1abf - 201: Mute TodoSearchTest: duplicate TODO items (vor 3 Tagen) <Nikolay Krasko>
* 543168c61d - 201: Mute incremental compilation tests with constants (vor 3 Tagen) <Nikolay Krasko>
* 8501ea78c8 - 201: Mute a lot of tests with enums (vor 3 Tagen) <Nikolay Krasko>
* 79e663828a - 201: Mute QuickFixTestGenerate: Range must be inside element being annotated (vor 3 Tagen) <Nikolay Krasko>
* f5a97ea56e - 201: Mute GradleScriptInputsWatcherTest failures (vor 3 Tagen) <Nikolay Krasko>
* dad7fd383c - 201: Upgrade nodejs plugin in 201 branch (vor 3 Tagen) <Nikolay Krasko>
* f0a4f838f2 - 201: Mute NewMultiplatformProjectImportingTest tests (vor 3 Tagen) <Nikolay Krasko>
* f4cd25ce72 - 201: Mute MultiplatformProjectImportingTest tests (vor 3 Tagen) <Nikolay Krasko>
* 67dee52b8a - 201: Mute NewJavaToKotlinConverterSingleFileTestGenerated tests (vor 3 Tagen) <Nikolay Krasko>
* 958b8a0b10 - 201: Fix maven plugin loading by adding repository-search to runtime (vor 3 Tagen) <Nikolay Krasko>
* 0fcd011abb - 201: Fix loading project in configuration tests (vor 3 Tagen) <Nikolay Krasko>
* 1a01ba0ae5 - 201: Trick idea home path exception with custom `idea.home` variable (vor 3 Tagen) <Nikolay Krasko>
* da2683d180 - Copy 192 muted tests (vor 3 Tagen) <Nikolay Krasko>
* dd21736471 - Register JDK for default project to prevent create leaking one for Gradle import (vor 3 Tagen) <Nikolay Krasko>
* c9fd79c311 - Enable mute in code for all KotlinLightCodeInsightFixtureTestCaseBase (vor 3 Tagen) <Nikolay Krasko>
* 1c0a9d2981 - Minor: better asserts in TodoSearchTest.kt (vor 3 Tagen) <Nikolay Krasko>
* 26df2a5c68 - Enable mute test with database in BaseKotlinJpsBuildTestCase (vor 3 Tagen) <Nikolay Krasko>
* 31ba40cc99 - Ignore auto-mute files (vor 3 Tagen) <Nikolay Krasko>
* c22272bbca - Enable mute for KotlinCompletionTestCase (vor 3 Tagen) <Nikolay Krasko>
* 66e2f95dba - Update method after UsefulTestCase update to make in work in 201 (vor 3 Tagen) <Nikolay Krasko>
* 3c3b1bb5e4 - Support auto-mute in parametrized JUnit 4 tests (vor 3 Tagen) <Nikolay Krasko>
* f042b04320 - Minor: remove unneeded class (vor 3 Tagen) <Nikolay Krasko>
* 14f7529c1b - (tag: build-1.4.0-dev-3444) [NI] Reanalyze coroutine-block if there is inapplicable call (vor 3 Tagen) <Mikhail Zarechenskiy>
* aab8555d65 - (tag: build-1.4.0-dev-3442) Move adjustExtractionData.performAnalysis under modal progress (vor 3 Tagen) <Vladimir Dolzhenko>
* ec431460b3 - Do not lookup for kotlin tests in non kotlin files (vor 3 Tagen) <Vladimir Dolzhenko>
* 2a27ca828c - Commit document before actual imports optimization (vor 3 Tagen) <Vladimir Dolzhenko>
* acc4118903 - Provide import alias suggestion for Companion (vor 3 Tagen) <Vladimir Dolzhenko>
* 3ec2095c9f - Don't log ControlFlowException (vor 3 Tagen) <Vladimir Dolzhenko>
* 3881220386 - (tag: build-1.4.0-dev-3441) JVM IR: Box arguments in abstract method stubs for "remove" bridges (vor 3 Tagen) <Steven Schäfer>
* 86f9cb6eef - (tag: build-1.4.0-dev-3435) Adds AdditionalExtractableAnalyser EP. (vor 3 Tagen) <kovalp>
* b53cb5cb4c - (tag: build-1.4.0-dev-3426) Cover with a test current Double/Float companion values access (vor 3 Tagen) <Ilya Gorbunov>
* 1f47c6d54f - (tag: build-1.4.0-dev-3425) Add missed calcHashCode for ModuleSourceScope subclasses (vor 4 Tagen) <Vladimir Dolzhenko>
* 035cc57cf4 - (tag: build-1.4.0-dev-3420) JVM_IR: don't remap current method signature when detecting clashes (vor 4 Tagen) <pyos>
* ad0070ed8a - (tag: build-1.4.0-dev-3419) KT-37059 Support 'String?.plus(Any?)' in JVM_IR (vor 4 Tagen) <Dmitry Petrov>
* f9483b1f4f - (tag: build-1.4.0-dev-3400) [FIR] KT-37027: Add 'out' projection to vararg elements (vor 4 Tagen) <simon.ogorodnik>
* f405b3f827 - [FIR] Reorganize ConeKotlinTypeProjection hierarchy (vor 4 Tagen) <simon.ogorodnik>
* 7c4f59dfcb - [FIR] KT-37009: Fix loss of bound smart-cast due to synthetic removal (vor 4 Tagen) <simon.ogorodnik>
* ec936b7286 - [FIR] Setup FIR tests configuration (vor 4 Tagen) <simon.ogorodnik>
* fbf4abf0cf - (tag: build-1.4.0-dev-3399) FIR: Unignore FIR2IR test (vor 4 Tagen) <Denis Zharkov>
* 53454a783c - (tag: build-1.4.0-dev-3398) Fix project compilation (vor 4 Tagen) <Denis Zharkov>
* 8fca343ef0 - (tag: build-1.4.0-dev-3395) FIR: Support FirComparisonOperator in Fir2Ir (vor 4 Tagen) <Denis Zharkov>
* 434444cd69 - FIR: Support FirComparisonOperator in body transformers and DFA (vor 4 Tagen) <Denis Zharkov>
* c3aed433ae - FIR: Support FirComparisonOperator in builders (vor 4 Tagen) <Denis Zharkov>
* 80b7fbd07a - FIR: Add new nodes kind for comparison operator (vor 4 Tagen) <Denis Zharkov>
* 3ecee5c7cd - (tag: build-1.4.0-dev-3389) [JS IR BE] Implement kotlin.js.jsTypeOf as intrinsics (vor 4 Tagen) <Svyatoslav Kuzmich>
* dff7d7b7b9 - [PSI2IR] Patch parents before referenceExpectsForUsedActuals (vor 4 Tagen) <Svyatoslav Kuzmich>
* 1e02fa3db9 - [JS IR BE] Create temporary variables with wrapped descriptors. (vor 4 Tagen) <Svyatoslav Kuzmich>
* 8877bac873 - [JS IR BE] Don't fail typeOf lowering on reified type parameters. (vor 4 Tagen) <Svyatoslav Kuzmich>
* b359bf1859 - [JS IR BE] Stop checking mangling for klib-to-js compilation. (vor 4 Tagen) <Svyatoslav Kuzmich>
* cd80eced32 - [JS IR BE] Use fresh name for external JsModule declarations. (vor 4 Tagen) <Svyatoslav Kuzmich>
* 5c6f452c10 - (tag: build-1.4.0-dev-3386) Revert "add cleanup dependencies tasks for buildSrc" (vor 4 Tagen) <nataliya.valtman>
* e7816b4ec2 - (tag: build-1.4.0-dev-3383) JS: support callable references with vararg and default parameters conversion (vor 4 Tagen) <Anton Bannykh>
* f6a23ea441 - [FIR] Add infrastructure for call checkers (vor 4 Tagen) <Dmitriy Novozhilov>
* 9cee2962db - [FIR] Add more nodes for declaration checkers (vor 4 Tagen) <Dmitriy Novozhilov>
* 04424a1ec3 - (tag: build-1.4.0-dev-3382) Reduce UI freezes by preparing affected Gradle project files lists in advance, once per event. isRelevant() method is a hotspot, as it is called for each file in bulk VFS event (vor 4 Tagen) <Nikita Skvortsov>
* a9e03937a3 - (tag: build-1.4.0-dev-3381) Minor. Update tests to support them on Android (vor 4 Tagen) <Mikhael Bogdanov>
* 8a8536f8ae - (tag: build-1.4.0-dev-3379, minamoto/1.4.0/rr/build/konan-version) add cleanup dependencies tasks for buildSrc (vor 4 Tagen) <nataliya.valtman>
* ea7b5827ab - Minor: update testData for bytecode listing tests (vor 4 Tagen) <Dmitry Petrov>
* 5827be4182 - (tag: build-1.4.0-dev-3371) Tests: fix test for AS 3.6 (vor 4 Tagen) <Dmitry Gridin>
* ca3c72c143 - (tag: build-1.4.0-dev-3369) IDE perf tests for Kotlin/Native projects (vor 4 Tagen) <Dmitriy Dolovov>
* f5e6001d82 - (tag: build-1.4.0-dev-3366) Registry key to show hidden variables in debugger. (vor 4 Tagen) <Vladimir Ilmov>
* e19c0c9768 - (tag: build-1.4.0-dev-3360) Update idea-completion testData after introducing vararg maxOf/minOf (vor 4 Tagen) <Abduqodiri Qurbonzoda>
* 12bf8a44e7 - (tag: build-1.4.0-dev-3357) Minor changes after code review (vor 5 Tagen) <Valentin Kipyatkov>
* b9a9000569 - Suggested Rename and Change Signature implementation for Kotlin (vor 5 Tagen) <Valentin Kipyatkov>
* a01b840eab - (tag: build-1.4.0-dev-3353) Android Import: Search for Android SDK using public API instead of reflection (vor 5 Tagen) <Vyacheslav Karpukhin>
* ec23c25286 - (tag: build-1.4.0-dev-3351, tag: build-1.4.0-dev-3350) [Commonizer] Friendly displaying commonized KLIBs in IDE (vor 5 Tagen) <Dmitriy Dolovov>
* 23e218396e - (tag: build-1.4.0-dev-3341, tag: build-1.4.0-dev-3339) JS: support SAM conversion (vor 5 Tagen) <Anton Bannykh>
* 2742e643c1 - JS: prohibit `external fun interface` (vor 5 Tagen) <Anton Bannykh>
* f20ed39b92 - Fix a typo in an error message (vor 5 Tagen) <Anton Bannykh>
* a01e66a618 - Run IrJsTypeScriptExportTestGenerated tests with `jsIrTest` instead of `jsTest` (vor 5 Tagen) <Anton Bannykh>
* c1d350f8f3 - [JVM IR] Added null-checks of handler for non-super $default calls (vor 5 Tagen) <Kristoffer Andersen>
* fe50bb4b93 - (tag: build-1.4.0-dev-3333) KProperty and ReadOnlyProperty type parameter names #KT-16529 (vor 5 Tagen) <Abduqodiri Qurbonzoda>
2020-03-02 15:58:18 +01:00
Igor Chevdar 056435a9e5 Fix for https://youtrack.jetbrains.com/issue/KT-36980 2020-03-02 13:17:45 +03:00
Vladimir Ivanov ee7917cf36 [Interop] Additional simple mangling of special names such as Companion (#3919) 2020-02-28 15:29:52 +03:00
Pavel Punegov 576431e42b Don't filter out tests for new inference 2020-02-28 11:34:12 +03:00
Vasily Levchenko da40d6bfdd [KLIB] adoption 25a91a217e
[KLIB] Fix package for NullFlexibleTypeDeserializer
2020-02-27 16:38:43 +01:00
Vasily Levchenko 78a8ddc90b [kotlin compiler][update] 1.4.0-dev-3327 2020-02-27 16:38:43 +01:00
Abduqodiri Qurbonzoda 818d271f92 KProperty and ReadOnlyProperty type parameter names #KT-16529
(cherry picked from commit de93ad63cf1a5863f478401312d213dbd299e614)
2020-02-27 16:38:43 +01:00
Sergey Bogolepov a8e0f42e61 [Linker] Adapt to classFqn -> declarationFqn rename
(cherry picked from commit ee981ce8e535ad749a18a7893b01e303035c8e21)
2020-02-27 16:38:43 +01:00
Abduqodiri Qurbonzoda aa4f360e51 Add vararg overloads for maxOf/minOf functions #KT-33906
(cherry picked from commit e72e97f1da33e09e344747f56901eabfbc71e075)
2020-02-27 16:38:43 +01:00
Ilya Matveev 6e1e416bbb [docs] Actualize CocoaPods documentation (#3920)
Related issues: #KT-32750, #KT-31542.
2020-02-27 18:57:05 +07:00
Sergey Bogolepov 9f6d92d4d4 [Interop][Lowering] Support constants
Previously `const val`s from metadata-based interop libraries accidentally
were linked as IrField. It is fixed, and now we should properly lower these constants.
2020-02-26 23:07:54 +07:00
Sergey Bogolepov 6b0cdf7be6 [Interop][Metadata] Fix constant property flags
Absence of getter flag for constant properties is leading to
incorrect interop library deserialization in IdSignature-based linker.
This is happening because new linker does not allow to link external IrField.
2020-02-26 23:07:54 +07:00
LepilkinaElena dafadad6a9 Fixes versions regexes in different parts of infrastructure (#3917) 2020-02-26 17:08:00 +03:00
Vasily Levchenko b75536581b [kotlin compiler][update] 1.4.0-dev-3251
* 3eed0609b2 - (tag: build-1.4.0-dev-3251) Brought back mppKlibs guard lost in rebase (vor 4 Stunden) <Alexander Gorshenev>
* 36ebbc49f4 - KotlinExpressionMover: trailing comma support (vor 5 Stunden) <Dmitry Gridin>
* 72c8b38864 - KotlinExpressionMover: convert to Kotlin (vor 5 Stunden) <Dmitry Gridin>
* bca9242492 - KotlinExpressionMover: rename .java to .kt (vor 5 Stunden) <Dmitry Gridin>
* 56064f2a92 - JoinLines: add tests (vor 5 Stunden) <Dmitry Gridin>
* feaa53c4f2 - Formatter: shouldn't format property chains (vor 5 Stunden) <Dmitry Gridin>
* 522eeae062 - (tag: build-1.4.0-dev-3240) FIR2IR: standardize expression with smart cast conversion (vor 6 Stunden) <Mikhail Glukhikh>
* d1fac6dce1 - FIR2IR: declare receivers for all accessors of extension properties (vor 6 Stunden) <Mikhail Glukhikh>
* 8c155578f7 - FIR2IR: generate both dispatch & extension receiver without 'else if' (vor 6 Stunden) <Mikhail Glukhikh>
* 4f6fe1d0ca - [FIR]: fix translation of top-level property accesses like array.indices (vor 6 Stunden) <Juan Chen>
* c9658eb6e4 - (tag: build-1.4.0-dev-3237) Adjust tests due to keep imports for extension functions used in kdoc (vor 6 Stunden) <Vladimir Dolzhenko>
* afd71d3d19 - Adjust tests due to "Remove argument" quick fix for TOO_MANY_ARGUMENTS (vor 6 Stunden) <Vladimir Dolzhenko>
* b047d78580 - (tag: build-1.4.0-dev-3236) Minor: update testData for IR bytecode text and unmute test (vor 7 Stunden) <Dmitry Petrov>
* 0b9fc1541d - (tag: build-1.4.0-dev-3235, tag: build-1.4.0-dev-3233) [NI] Don't try inferring variables for effectively empty system (vor 7 Stunden) <Mikhail Zarechenskiy>
* fe71d5256c - (tag: build-1.4.0-dev-3231, tag: build-1.4.0-dev-3222) [Minor] Refactor IR Suspend Main code to not use intrinsic (vor 20 Stunden) <Kristoffer Andersen>
* a3d85e108f - (tag: build-1.4.0-dev-3218) JVM_IR: keep `suspend fun` return type in IrCalls (vor 23 Stunden) <pyos>
* d982203d56 - (tag: build-1.4.0-dev-3209) [JVM_IR] Handle big arity suspend functions in existing lowering. (vor 27 Stunden) <Mads Ager>
* e406669190 - (tag: build-1.4.0-dev-3206) Invert if condition intention: don't add unnecessary 'continue' (vor 29 Stunden) <Toshiaki Kameyama>
2020-02-26 07:00:30 +01:00
Vasily Levchenko 0897db2362 [version] 1.4.0-M2 2020-02-25 16:27:21 +01:00
LepilkinaElena a477233b04 Added option to add compiler options for kotlinc compiler call in cin… (#3906) 2020-02-25 18:16:55 +03:00
Vasily Levchenko 7f49eae401 [build][version] replace old version string parsing with regex 2020-02-25 14:36:08 +01:00
Sergey Bogolepov bb32410100 [Interop][Linker] Mark interop declarations
Add IS_NATIVE_INTEROP_LIBRARY flag to IdSignature of interop declarations.
It allows to link metadata-based interop libraries.

Note that libraries that depend on metadata-based interop libraries are not supported yet.
2020-02-25 19:26:41 +07:00
Vasily Levchenko 1479997665 [kotlin compiler][update] 1.4.0-dev-3197
* 62e335ac88 - (tag: build-1.4.0-dev-3197) Implement members: fix it works correctly for data class (vor 18 Stunden) <Toshiaki Kameyama>
* fe009ac695 - (tag: build-1.4.0-dev-3193) IR: restore reading common Klib from JVM (vor 27 Stunden) <Georgy Bronnikov>
* d54a35ef56 - (tag: build-1.4.0-dev-3191) Add "Remove argument" quick fix for TOO_MANY_ARGUMENTS (vor 29 Stunden) <Toshiaki Kameyama>
* 13afb2e45e - (tag: build-1.4.0-dev-3189) Make kotlin build version for buildSrc the same as for kotlin project (vor 33 Stunden) <nataliya.valtman>
* 699ea0aa2b - (tag: build-1.4.0-dev-3179) Replace 'if' with 'when': don't swallow comments if there is no synthetic else branch (vor 2 Tagen) <Toshiaki Kameyama>
* f487118be5 - (tag: build-1.4.0-dev-3176) Change signature: fix it works correctly when call site function has no value argument list (vor 2 Tagen) <Toshiaki Kameyama>
* 223ed1ad60 - (tag: build-1.4.0-dev-3175) KT-27601 review fixes (vor 2 Tagen) <kvirolainen>
* 90cfa80683 - KT-27601 keep imports for extension functions used in kdoc (vor 2 Tagen) <kvirolainen>
* 423aeb9a08 - (tag: build-1.4.0-dev-3172) Always check project.useCompositeAnalysis in findAnalyzerServices (vor 3 Tagen) <Dmitry Savvinov>
* e56abcbb85 - (tag: build-1.4.0-dev-3170) Inline variable: fix it works correctly for 'when' subject variable (vor 3 Tagen) <Toshiaki Kameyama>
* d8ab046136 - (tag: build-1.4.0-dev-3168) Convert property to function: remove annotation use-site target (vor 3 Tagen) <Toshiaki Kameyama>
* d5e71ebef1 - (tag: build-1.4.0-dev-3166) Invert if condition intention: 'isEmpty' <-> 'isNotEmpty' (vor 3 Tagen) <Toshiaki Kameyama>
* 79c15e49b6 - (tag: build-1.4.0-dev-3165) Convert function to property: suggest on fun keyword (vor 3 Tagen) <Toshiaki Kameyama>
* 820b8c3c54 - (tag: build-1.4.0-dev-3163) Introduce "Redundant '?: return null'" inspection (vor 3 Tagen) <Toshiaki Kameyama>
* 5f1cc3b152 - Introduce "Redundant 'inner' modifier" inspection (vor 3 Tagen) <Toshiaki Kameyama>
* d76dc6f57e - (tag: build-1.4.0-dev-3160) [Commonizer] Call commonizer on Gradle configuration phase (vor 3 Tagen) <Dmitriy Dolovov>
* f2f95496e3 - (tag: build-1.4.0-dev-3159) [NI] Complete contradictory candidates inside builder-inference (vor 3 Tagen) <Mikhail Zarechenskiy>
* 3398683093 - (tag: build-1.4.0-dev-3149) Unused symbol: do not report for secondary constructor when class is used as typealias (vor 3 Tagen) <Toshiaki Kameyama>
* 81f1f441fc - (tag: build-1.4.0-dev-3145) [FIR] Add stub default values to kotlin.Enum constructor parameters (vor 3 Tagen) <Mikhail Glukhikh>
* 39bd97147f - [FIR] Don't create initializers for simple enum entries (vor 3 Tagen) <Mikhail Glukhikh>
* b1e9dbf994 - [FIR] Use super<Enum> as delegated calls in enum constructors (vor 3 Tagen) <Mikhail Glukhikh>
* f173af9238 - FIR2IR: use enum constructor call for enum entries (vor 3 Tagen) <Mikhail Glukhikh>
* 9e3f17c52a - (tag: build-1.4.0-dev-3144) [FIR TEST] Add test for unresolved reference in default argument (vor 3 Tagen) <Mikhail Glukhikh>
* a3252b9480 - Unused symbol: fix false positive in anonymous object in top level or companion object (vor 3 Tagen) <Toshiaki Kameyama>
* ef1e54eda9 - (tag: build-1.4.0-dev-3143) ReplaceToStringWithStringTemplateInspection: insert curly braces if needed (vor 3 Tagen) <Toshiaki Kameyama>
* c87bc2123c - (tag: build-1.4.0-dev-3142) Add "Change to val" quick fix for MUST_BE_INITIALIZED (vor 3 Tagen) <Toshiaki Kameyama>
* a46c6ce5df - Revert global project settings to LATEST_STABLE in teardown (vor 3 Tagen) <Nikolay Krasko>
* f995192f21 - Always configure and restore api version settings in tests (vor 3 Tagen) <Nikolay Krasko>
* 6c83e9fb85 - Clean LANGUAGE_VERSION_SETTINGS after the test (vor 3 Tagen) <Nikolay Krasko>
* 19bc39d3ab - Clean facet if it wasn't set before test (fix tests on 201) (vor 3 Tagen) <Nikolay Krasko>
* af3b057ba2 - Always clean language and api versions after usage (vor 3 Tagen) <Nikolay Krasko>
* c0dac9bf32 - Refactoring: extract long function out of local context (vor 3 Tagen) <Nikolay Krasko>
* 3a5f42cc5e - Refactoring: always use compiler settings with de-configuration in tests (vor 3 Tagen) <Nikolay Krasko>
* 018215f47d - De-bunch KotlinLightCodeInsightFixtureTestCase.kt (vor 3 Tagen) <Nikolay Krasko>
* 94be4d77ff - Fix init order in inline fun (native test) (vor 3 Tagen) <Pavel Punegov>
* 19093e2e02 - (tag: build-1.4.0-dev-3140) Redundant companion reference: fix false positive when companion has same name member as companion name (vor 3 Tagen) <Toshiaki Kameyama>
* 98ce49ba73 - [build][native] version with milestone clause (vor 3 Tagen) <Vasily Levchenko>
2020-02-25 10:28:24 +01:00
Sergey Bogolepov 452a7784db [Interop][IrProvider] Simplify IrProviderForInteropStubs
IrProviderForInteropStubs was doing the same thing as DeclarationStubGenerator.
Instead of replicating, we delegate stub generation to DeclarationStubGenerator.
2020-02-25 16:24:13 +07:00