Pavel Kunyavskiy
6e8a7d4662
[ObjCInterop] Implement @ObjCSignatureOverride
...
This annotation leads to conflicting overloads error supression,
in case where several function with the same argument types,
but different argument names are inherited from ObjC class.
We need to implement it in both K1 and K2 to make the IDE experience
better.
But the annotation itself wouldn't be available in K1.
^KT-61323
2024-02-14 11:44:01 +00:00
Pavel Kunyavskiy
d100a07981
[K/N] Move ObjCOverridabilityCondition to proper module
...
It was not active in diagnostic tests otherwise.
2024-02-14 11:44:01 +00:00
Dmitriy Dolovov
4892a81178
[Native] Simplify *.isNativeStdlib() checks as much as possible
...
...still preserving their reliability.
2023-11-11 13:33:06 +00:00
Timofey Solonin
53584cdd49
Don't emit CAST_NEVER_SUCCEEDS when casting to a forward declaration type
...
^KT-58929
2023-09-13 17:49:12 +00:00
Sergey Bogolepov
becbca2284
[K/N] Fix DeclarationDescriptor.findObjCExportMetaAnnotations
...
`require` is failing in the presence of error types,
so use nullability instead.
2023-07-21 09:57:22 +00:00
Pavel Kunyavskiy
6da3ecceab
[K/N] Implement frontend checkers for usages forward declaration type
...
Forward declaration type doesn't exist in runtime. This restricts
its possible usages.
^KT-59764
2023-07-17 09:24:33 +00:00
Alexander Shabalin
2364ffb299
[K/N] Remove diagnostics about old Native GC ^KT-58853
2023-05-31 14:29:17 +00:00
Sergey Bogolepov
c57c34525f
[K/N] KT-58562: Implement frontend checkers for HiddenFromObjC on classes
2023-05-19 11:33:17 +00:00
Sergey Bogolepov
fce878d63a
[K/N] KT-56464: implementation of HiddenFromObjC for classes in backend
2023-04-26 09:36:10 +00:00
Pavel Kunyavskiy
4928e284f6
Make LateinitIntrinsicApplicabilityChecker warning for Native and JS
...
This checker was enabled only on JVM by mistake.
It's now fixed, but we don't want to make it an error in minor release.
So it will be an warning in 1.8.20 and an error in 1.9.0
^KT-27002
2022-12-20 20:06:52 +00:00
Svyatoslav Scherbina
dc36272354
Get rid of unsafe cast function usages in :native:frontend.native
2022-10-11 15:12:03 +00:00
Rick Clephas
b406722e20
[K/N] Prohibit empty ObjCNames
2022-09-09 12:31:36 +02:00
Rick Clephas
115db22c12
[FE 1.0] Extract NativeObjCNameOverridesChecker from NativeObjCNameChecker
2022-09-07 11:00:51 +00:00
Rick Clephas
203af3afdd
[FE 1.0] Add NativeObjCRefinement checkers
2022-08-22 16:10:44 +02:00
Rick Clephas
5a5e6ad8cd
[K/N] Add ObjCName annotation ( #4815 )
2022-07-23 18:58:06 +02:00
Alexander Shabalin
29f3445721
[K/N] Deprecated freezing ^KT-50541
...
Starting with 1.7.20 freezing is deprecated. See https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md#freezing-deprecation for details.
Merge-request: KT-MR-6399
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2022-06-16 09:04:14 +00:00
Pavel Kirpichenkov
867390b889
[MPP] Move integer names used by commonizer to its module
...
KT-41509
2022-02-28 10:59:42 +03:00
Pavel Kirpichenkov
f257297505
[MPP] Commonize to platform integers considering target's bit width
...
Commonized type should match the platform's `platform.posix.ssize_t`
type alias' width. The implementation hard-codes platform widths for
all the targets, this can be potentially changed to search for ssize_t
in dependencies and get width from its type.
Use real targets in platform int commonization tests.
KT-41509
2022-02-28 10:59:38 +03:00
Pavel Kirpichenkov
8f4d04dad2
[MPP] Add preliminary version of platform integer commonizer
...
Doesn't take target's size_t alias into account just yet
KT-41509
2022-02-28 10:59:36 +03:00
Vyacheslav Gerasimov
f7a9065b75
Build: Use intellij maven repo instead of downloaded IDEA
...
#KTI-82
2021-12-16 21:48:23 +03:00
Victor Petukhov
b957831683
Use WarningAwareUpperBoundChecker independently
...
^KT-47920 Fixed
^KT-48290 Fixed
2021-09-30 20:08:58 +03:00
Victor Petukhov
a264cbfe7d
Move CallUtil.kt under the resolve.util package
2021-09-27 16:12:01 +03:00
Vyacheslav Gerasimov
ab146bd6d4
Build: Fix deprecated Gradle configurations usages
...
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00
Pavel Kunyavskiy
fb875c484d
[K/N] Implement instantiating of annotation class
2021-09-23 06:59:34 +00:00
Dmitriy Novozhilov
0260bf8767
[FE] Move diagnostic parameter renderers to common module
2021-09-09 17:20:20 +03:00
Svyatoslav Scherbina
d4a8c51637
Native: report a warning on invalid characters in identifiers
...
This will become an error in Kotlin 1.7.
^KT-46182 Fixed
2021-08-31 08:50:14 +00:00
Ilmir Usmanov
486c6b3c15
Remove obsolete experimental coroutines support
...
in compiler.
2021-08-13 22:31:30 +02:00
Alexander Shabalin
06001fc091
[K/N] Tweak fronted warning messages for the new MM
2021-08-11 20:06:19 +00:00
Leonid Startsev
83c1a75c1e
Revert "Revert "Instantiation of annotations for JVM IR with the corresponding feature flag""
...
Fix incorrectly rebased ce0a3a57df
This reverts commit 3d0126d5
2021-07-21 18:24:07 +03:00
Leonid Startsev
3d0126d5dd
Revert "Instantiation of annotations for JVM IR with the corresponding feature flag"
...
because of incorrect rebase
This reverts commit ce0a3a57
2021-07-21 15:23:24 +03:00
Leonid Startsev
ce0a3a57df
Instantiation of annotations for JVM IR with the corresponding feature flag
...
Seperate checker for platforms that do not support this language feature yet
Synthetic implementations of annotations are generated on-demand with proper
equals, hashCode, and annotationType methods
#KT-47699 Fixed
2021-07-21 10:23:51 +00:00
Victor Petukhov
0d40022d6d
Add reporting of the warnings based on Java annotations for expanded type aliases
...
Before that, such warnings weren't reported as the corresponding errors were reported during type inference (only original types took part there)
2021-02-15 12:13:55 +03:00
Igor Chevdar
9d1cb6a2c0
Turned off TypeOfChecker for K/N
2020-10-23 18:27:10 +05:00
Dmitriy Novozhilov
a764732020
Rename KotlinBuiltInsNames to StandardNames
2020-08-25 10:41:33 +03:00
Dmitriy Novozhilov
7a7fe77b8e
Move static constants with builtin names to :core:descriptors.common module
2020-08-25 10:31:36 +03:00
Svyatoslav Scherbina
fa152593ef
Fix false-positive @Throws error diagnostics in Native
...
Don't report
THROWS_LIST_EMPTY and MISSING_EXCEPTION_IN_THROWS_ON_SUSPEND
caused by unresolved arguments.
2020-05-26 20:24:34 +03:00
Svyatoslav Scherbina
242d0aa26e
Add Native diagnostics for @Throws suspend fun
...
`@Throws suspend fun` must have CancellationException accepted.
Also add more tests.
2020-05-26 20:24:32 +03:00
Alexander Udalov
ea413cefb4
Remove TypeOfChecker for JVM frontend
...
This is needed to support typeOf with non-reified type parameters.
#KT-30279
2020-05-13 10:04:26 +02:00
Denis Zharkov
45481b214a
Use kotlin.Throws in NativeThrowsChecker
...
KT-35468
2020-04-26 23:08:45 +03:00
LepilkinaElena
4f9364f997
Native specific frontend checker for @ThreadLocal ( #3293 )
2020-04-16 15:23:06 +03:00
Dmitriy Dolovov
5411b85cb9
Minor. Rename isKonanStdlib() into isNativeStdlib()
2020-04-01 11:47:10 +07:00
Dmitriy Dolovov
31a1f8ff4b
Include :native:kotlin-native-utils into kotlin-compiler.jar
2020-04-01 11:46:55 +07:00
LepilkinaElena
61f5523805
Added Native-specific checker for properties of top level singletons ( #3172 )
2020-03-06 14:58:09 +03:00
LepilkinaElena
b031706ea9
Added Native-specific frontend checker for @SharedImmutable ( #3091 )
2020-03-04 16:45:37 +03:00
Svyatoslav Scherbina
829e5908d0
Allow Native @Throws on override when the same list is specified
2020-02-14 17:10:58 +03:00
Svyatoslav Scherbina
5eedba3903
Add Native-specific frontend checker for @Throws
2020-02-06 11:00:31 +03:00
Svyatoslav Scherbina
e699965ed6
Add infrastructure for Native-specific frontend diagnostics
2020-02-06 11:00:22 +03:00
Svyatoslav Scherbina
cd92d3e9b4
Make :native:frontend.native depend on intellij-core
2020-02-06 11:00:16 +03:00
Dmitriy Dolovov
25ff33cc3c
Update NativePlatformAnalyzerServices from Kotlin/Native repo
2020-01-29 20:30:35 +07:00
Dmitriy Dolovov
b49e6ac581
Rename :kotlin-native:kotlin-native-library-reader to :native:frontend.native
2020-01-29 20:30:29 +07:00