Alexander Udalov
0a9498f7e2
Build: suppress deprecated JVM target warning globally
...
There seems to be no point in configuring the compiler argument per
project. This argument will be deleted soon anyway, when we remove
support for JDK 1.6 & 1.7.
Also remove `disableDeprecatedJvmTargetWarning`. It didn't have any
effect in all modules where it was applied because these modules
reassign `freeCompilerArgs` anyway, with
`-Xsuppress-deprecated-jvm-target-warning` in it.
2021-07-27 13:35:39 +02:00
Dmitriy Novozhilov
8e0793091a
Add @NoInfer to safeAs type
...
This change will force specify type argument of every safeAs call
2021-07-12 10:11:36 +03:00
Victor Petukhov
18384788a4
Move type enhancement state stuff into core:descriptors.jvm
2021-07-06 09:54:29 +03:00
Victor Petukhov
8de05691a9
Revert "Move fqname related stuff into core:util.runtime module"
...
This reverts commit e651e1c6
2021-07-06 09:54:28 +03:00
Victor Petukhov
ea901d81fb
Get rid of redundant Jsr305State
2021-07-06 09:54:28 +03:00
Victor Petukhov
f46dc713d7
Support rxjava 3 nullability annotations
2021-07-06 09:54:28 +03:00
Victor Petukhov
61c2f1b203
Extract building JSR-305 settings to separate function
2021-07-06 09:54:27 +03:00
Victor Petukhov
e16033f8d8
Add androidx recently nullability annotations
2021-07-06 09:54:26 +03:00
Victor Petukhov
d5180f79aa
Support picking settings of exacter annotations by the length of the matching part of fqname
2021-07-06 09:54:25 +03:00
Victor Petukhov
46d0b16142
Use new default settings for java nullability annotations in JavaTypeEnhancementState and get rid of all hardcoded defaults
2021-07-06 09:54:24 +03:00
Victor Petukhov
8e7c0e8c61
Describe default settings for java nullability annotations depending on current kotlin version
2021-07-06 09:54:24 +03:00
Victor Petukhov
205087cae3
Move fqname related stuff into core:util.runtime module
2021-07-06 09:54:23 +03:00
Victor Petukhov
c8af1b735f
Introduce compiler flag to manage status of specific Java nullability annotations
2021-07-06 09:54:23 +03:00
Yahor Berdnikau
7789054547
Migrate repo to use JVM toolchains Gradle feature.
...
^KT-46972 Fixed
2021-07-05 14:11:12 +00:00
Dmitriy Novozhilov
e5b7cf23d6
Drop min functions from addToStdlib.kt
2021-05-14 14:30:20 +03:00
Dmitriy Novozhilov
d114913cd2
Replace usages of addToStdlib.firstNotNullResult with firstNotNullOfOrNull
2021-05-14 14:30:19 +03:00
Abduqodiri Qurbonzoda
40d1849f33
Migrate compiler, idea and others to new case conversion api
2021-04-08 03:22:02 +03:00
Ilya Kirillov
e41ad2ea06
FIR IDE: implement generators for IDE diagnostics
2021-02-09 17:14:23 +01:00
Alexander Udalov
e0b6d4d917
Add -Xsuppress-deprecated-jvm-target-warning to modules compiled with 1.6
...
Currently this leads to an unknown argument warning, but it'll be
removed automatically on the next bootstrap.
2021-02-03 12:51:39 +01:00
Ilya Chernikov
02c617468f
Add support for a callback on recursion for memoized functions
2020-12-21 09:43:43 +01:00
Victor Petukhov
2685c7efce
Jspecify: Rename codeanalysis annotations to jspecify ones
2020-10-08 14:00:10 +03:00
Denis Zharkov
f3a490ee16
Support compiler flag -Xcodeanalysis-annotations
2020-10-08 14:00:09 +03:00
Denis Zharkov
6c37574fce
Rename Jsr305State -> JavaTypeEnhancementState
...
Also, rename some of the properties
It's needed to store status for codeanalysis annotation in that class
2020-10-08 14:00:08 +03:00
Alexander Udalov
243db689af
Build: fix "unknown enum constant" warning on Nls.Capitalization
...
#KTI-88 Fixed
2020-09-25 22:17:10 +02:00
Dmitriy Novozhilov
ca031f7ace
[FIR] Split ResolveUtils.kt from :resolve to separate files
2020-09-01 12:00:10 +03:00
Dmitriy Novozhilov
e5e3d7cab1
Extract FE 1.0 related parts from NewConstraintSystem
2020-08-28 10:59:50 +03:00
Alexander Udalov
a21f273570
Fix compiler warnings in compiler code
2020-08-17 21:18:20 +02:00
Nikita Bobko
c5398e8317
Move 'radixPrefix' from compiler modules to IDE modules
...
`radixPrefix` is used only in IDE now. So let's put it into IDE modules.
This commit is done in order to be able to use code dependent on
`radixPrefix` in `kotlin-ide` repo, because `kotlin-ide` depends on
1.4.0 artifacts of compiler. And `radixPrefix` isn't presented in
those artifacts
2020-08-05 20:17:17 +03:00
Roman Golyshev
be06c51aa7
KT-40363 Handle non-octal int literals in for-loop conversions
...
- See EA-210233
- ^KT-40363 Fixed
2020-07-23 11:24:48 +00:00
Dmitriy Novozhilov
3f5db6b86e
[FIR] Add ConeAttributes to ConeKotlinType
...
(cherry picked from commit f76befa84e )
2020-06-29 12:19:00 +03:00
Vladimir Dolzhenko
ab20b3e083
Add InterruptedException handler to CancellableSimpleLock
...
#EA-220650 Fixed
2020-06-29 08:47:53 +00:00
Dmitriy Novozhilov
0b29a3e5c1
Revert "[FIR] Add ConeAttributes to ConeKotlinType"
...
This reverts commit f76befa8
2020-06-26 11:47:08 +03:00
Dmitriy Novozhilov
f76befa84e
[FIR] Add ConeAttributes to ConeKotlinType
2020-06-26 10:54:51 +03:00
Dmitriy Novozhilov
d7ee168dff
[FIR] Create error candidate for completion instead of simple error reference
2020-06-15 15:32:25 +03:00
Ilya Kirillov
418903e9ef
FIR IDE: Make KtReference class descriptors frontend independent
...
* The new idea-frontend-independent module created
* Moved KtReference and it inheritors to that module & implement them in idea-analysis module by using descriptors frontend
2020-06-09 16:19:12 +03:00
Dmitriy Novozhilov
865ddac07a
[NI] Add feature for choosing candidate by lambda return type
2020-05-29 09:36:31 +03:00
Sergey Rostov
cf4ad1908b
Fix lastIndexOfOrNull
2020-05-26 19:22:05 +03:00
Sergey Rostov
4daac14008
Revert due to massive flaky tests
2020-05-12 23:01:01 +03:00
Sergey Rostov
fc59e28610
Fix lastIndexOfOrNull
2020-05-12 16:20:47 +03:00
Sergey Rostov
14edc26cf1
Revert due to test failing in 201
2020-05-08 10:13:07 +03:00
Sergey Rostov
e099ee3af8
Fix lastIndexOfOrNull
2020-05-07 21:48:50 +03:00
Vladimir Dolzhenko
b0483a67c2
Perform tryLock-and-checkCanceled on waiting lock in LockBasedStorageManager
...
Relates to #KT-38012
2020-04-14 13:11:30 +02:00
Vladimir Dolzhenko
3c26d38804
Revert Clear computable when value is calculated in LockBasedStorageManager
...
Relates to #KT-35256
2020-03-10 09:10:46 +01:00
Vyacheslav Gerasimov
bab87c9837
Build: Extract compiler version to separate module to improve caching
...
Compiler version changes every build and makes impossible to reuse
caches for heavy tasks such as compiler proguard. We may fix that by
adding version module directly to the final jar.
2020-03-05 18:05:53 +03:00
Vyacheslav Gerasimov
c2457cae60
Read KotlinCompilerVersion from resource file
...
Writing build number into a public constant field leads to poor gradle
cache reuse between different builds. Public constant value is a part of
public api and its changes affect inputs of dependent modules.
Extracting build number to resource file allows to ignore it from
runtime classpath which fixes same problem for KotlinCompile tasks
2020-03-05 18:05:53 +03:00
Dmitriy Novozhilov
e696d1d06a
[FIR] Improve mapping arguments to parameters
2020-02-14 17:53:28 +03:00
Vladimir Dolzhenko
00c71dd098
Clear computable when value is calculated and CallOnceFunction is added
...
Relates to #KT-35256
2020-01-28 10:50:46 +01:00
Alexander Udalov
f7321b497b
Set KotlinCompilerVersion.IS_PRE_RELEASE = true
...
Since master is now 1.4-M1, and 1.4 is a pre-release version.
2020-01-24 14:18:51 +01:00
Nikolay Krasko
620898c73e
Use local single-thread cached value instead of thread locals (KT-28940)
...
It looks like thread locals are not needed here as their global state
is not utilized but creates troubles with memory management.
2019-10-29 13:40:34 +03:00
Nikolay Krasko
02f9b255e6
Clean using thread local in all threads (KT-28940)
2019-10-29 13:40:34 +03:00