Commit Graph

1914 Commits

Author SHA1 Message Date
Svyatoslav Scherbina d6475cb2ad Handle inline class operations in inline class secondary constructors
#KT-27225 Fixed
2018-10-02 09:25:13 +03:00
Pavel Punegov 366bb0c5e6 Rename ByteArray getters 2018-09-28 18:51:25 +03:00
Nikolay Igotti 892e90cee5 Make assertions worker-friendly. (#2152) 2018-09-28 15:31:41 +03:00
Pavel Punegov 38b15e3ece Parse and add stdlib test results to overall statistics 2018-09-27 12:14:58 +03:00
Pavel Punegov fb546ecbcc Create an exclude list for external tests 2018-09-27 12:09:14 +03:00
Igor Chevdar aa816d1097 Fix for https://youtrack.jetbrains.com/issue/KT-26315 2018-09-26 18:27:22 +03:00
Igor Chevdar 7e6e05a129 Fix for https://youtrack.jetbrains.com/issue/KT-25427 2018-09-26 18:26:53 +03:00
Nikolay Igotti 59653835eb Fix bug preventing return from worker value passed in it. (#2135) 2018-09-26 12:25:44 +03:00
Svyatoslav Scherbina 080ecf0d11 Properly handle extensions to inlined classes when producing framework
See https://github.com/JetBrains/kotlin-native/issues/2120#issuecomment-424262886
2018-09-26 09:54:19 +03:00
Igor Chevdar c9632e4f23 Made coroutines and lambdas numbered continuously 2018-09-25 13:26:54 +03:00
Eugene Petrenko d9d53d84d8 Optionally print TeamCity service message, only when under TeamCity 2018-09-24 19:03:16 +03:00
Eugene Petrenko 4b70081c26 send TeamCity service message to publish stdlib sources, add task dependency transitively to bundle task 2018-09-24 19:03:16 +03:00
Eugene Petrenko 07c02db3f2 add task to zip stdlib sources, extract&reuse code 2018-09-24 19:03:16 +03:00
Henrik Tunedal 23b58c38ac Use HTTPS when downloading dependencies (#2118) 2018-09-22 23:18:45 +03:00
Pavel Punegov 6bc47171ca Fix test sources copy: delete target directory 2018-09-21 16:51:45 +03:00
Igor Chevdar 30b0602492 Fix of https://youtrack.jetbrains.com/issue/KT-26317 2018-09-21 13:23:09 +03:00
Svyatoslav Scherbina 9dfd347ef2 Add workaround for unexpected libclang behaviour
`clang_tokenize(tu, clang_getCursorExtent(cursor), ...)` doesn't seem
to work properly when cursor points to expanded macro:
the result includes too many tokens
2018-09-21 09:52:35 +03:00
Alexander Gorshenev 30fd4060d3 Provide a forced compiler version compatibility -X control. 2018-09-21 02:02:02 +03:00
Pavel Punegov c57bf1a10b Ignore incorrect stdlib tests 2018-09-21 00:12:41 +03:00
Pavel Punegov 6e568247a1 Fix assertTypeEquals to check subtypes 2018-09-21 00:12:41 +03:00
Ilya Matveev 9270b45fa5 [stdlib] Use Kotlin/JVM implementation for regex split (#2100) 2018-09-20 20:44:39 +03:00
Ilya Matveev 8213df8bf2 [klib-resolver] Resolve libraries passed as files by unique name (#2104) 2018-09-20 20:08:11 +03:00
Svyatoslav Scherbina 39c3ff556e Don't expose interface nested types as Swift nested types
Since this turns out to be unsupported by Swift.

Also don't do this for nested interfaces as its status is unclear.
2018-09-20 14:24:06 +03:00
Vasily Levchenko bddd6534a6 [kotlin compiler][update] 1.3.0-rc-51 2018-09-19 22:43:46 +03:00
Nikolay Igotti 45032f0b88 Allow sharing top level vals with types marked as frozen. (#2086) 2018-09-19 11:23:32 +03:00
Vasily Levchenko d1d7c1904f [kotlin compiler][update] 1.3.0-rc-37 (#2082) 2018-09-18 14:14:49 +03:00
Svyatoslav Scherbina 803620f423 Improve interop with headers generated by Swift
Support `objc_runtime_name` attribute on Objective-C classes
thus enabling interop with `@objc` Swift classes without
explicitly specified name.

See https://github.com/JetBrains/kotlin-native/issues/1841#issuecomment-411346727
2018-09-18 10:12:24 +03:00
SvyatoslavScherbina 0faee23b1d Fix #2069 (#2073) 2018-09-17 17:44:42 +03:00
Nikolay Igotti 1794f08638 Fix @Retain annotation behavior. (#2068) 2018-09-14 17:00:45 +03:00
Nikolay Igotti 8d2dd01c8f Explicitly report an error if entry point is marked 'suspend'. (#2067) 2018-09-14 14:01:08 +03:00
Dmitriy Dolovov c40396bf19 Split serialized package fragments metadata (#2051) 2018-09-13 18:01:56 +03:00
Svyatoslav Scherbina 1791ed5643 Improve inner/nested class names in framework
Use 'Outer.Inner' instead of 'OuterInner' for Swift

Also do some refactoring and add other minor improvements.
2018-09-13 17:39:29 +03:00
Svyatoslav Scherbina e4ca831f06 Don't add overriding and refining interface methods to framework protocols
As this appears to be inconvenient when adopting in Swift: #1884
2018-09-13 17:39:29 +03:00
Svyatoslav Scherbina 40847df19f Improve framework name clash detection for property setters
Setters for equally named properties don't clash.

Fix #1843
2018-09-13 17:39:29 +03:00
Svyatoslav Scherbina 86e9908aff Improve framework name clash detection for top-level declarations 2018-09-13 17:39:29 +03:00
Svyatoslav Scherbina 29748e59df Don't add swift_name attribute to categories in framework 2018-09-13 17:39:29 +03:00
Ilya Matveev 3e4f5fd4a2 Support OptionalExpectation in serializer (#2048)
* [serializer] Support OptionalExpectation

* Fix OptionalExectation test for Windows

* [tests] Don't print compiler args by default
2018-09-13 14:39:29 +03:00
alexander-gorshenev 30f5eb0bfa Allow entry points without args: Array<String> (#2049) 2018-09-13 10:23:02 +03:00
Nikolay Igotti b6a01a86f1 Update to 1.3.0-rc-6. (#2050) 2018-09-13 10:20:52 +03:00
alexander-gorshenev 27ce3b194d Provided library versioning in klib. (#2038)
* Provided library versioning in klib.
* A test for library mismatch messages.
2018-09-13 02:10:34 +03:00
Ilya Matveev d406b1b16d Support OptionalExpectation (#2040) 2018-09-12 17:23:59 +03:00
Vasily Levchenko 66732675e5 build/gradle/cli compiler flags usage fix (#2045) 2018-09-12 17:02:31 +03:00
Sergey Bogolepov 20d3520717 Lazy stacktrace (#2036)
* stringify stacktrace lazily

* Introduce NativePtrArray

* Added Throwable::getStackTrace
2018-09-12 20:27:01 +07:00
Svyatoslav Scherbina da2736337e Improve naming in produced framework
*   Group top-level declarations by file name instead of package name
*   Remove main prefix from Swift class names
*   Use 'Kotlin' prefix
    * Instead of 'Stdlib'
    * In Swift names for KotlinMutableSet/Dictionary, KotlinNumber and subclasses
2018-09-12 12:28:41 +03:00
Nikolay Igotti 2f61cf9fa3 Fix tests build. 2018-09-12 10:22:09 +03:00
SvyatoslavScherbina 996ec4a6fd Update Kotlin with tests to 1.3.0-dev-391 (#2037) 2018-09-11 18:24:59 +03:00
Vasily Levchenko 669e38f566 [compiler][command line] normalization of kotlin native compiler arguments. 2018-09-11 06:26:05 +03:00
Max Medvedev 0d8e176050 kotlin-objective-c cross resolve: introduce createNamer() function 2018-09-08 15:47:54 +03:00
Max Medvedev e6b66bb6c5 kotlin-objective-c cross resolve: introduce public ObjCExportNamer interface 2018-09-08 15:47:54 +03:00
Max Medvedev d08947ce59 kotlin-objective-c cross resolve: rename ObjCExportNamer#getName -> getPropertyName 2018-09-08 15:47:54 +03:00