Mikhail Glukhikh
f0453d2f5c
FIR: distinguish qualified access / qualified access expression checkers
2021-06-11 22:03:32 +03:00
Mads Ager
6b6ba77869
[JVM_IR] Trim the expression test string for null assertions.
...
^KT-47166 Fixed.
2021-06-11 21:54:04 +03:00
Alexander Shabalin
58adfd8488
Disable enum and object isFrozen tests on wasm
2021-06-11 18:12:15 +00:00
Roman Golyshev
3f0cc67f17
Fix converting string GLOB to regexp in TestConfigurationBuilder
...
This is required when `p1|p2|p3|...|pN` concatenation is used (see `or`
extension function above `toMatchingRegexString`)
This is a follow-up to the 6f4b6c1b5b7bc05557306179e25a79fa234aa77f
commit
2021-06-11 20:06:04 +03:00
Roman Golyshev
30f20cb835
Use more reliable paths matching in TestConfigurationBuilder
...
Without it, even the slightest difference between the pattern and
testDataPath would cause the path to be excluded, for example:
testDataPath = /some/absolute/path.txt
pattern = absolute/*
The example above didn't match, and it resulted in different
configurations when tests were launched with different testDataPaths
Now, the example above will look like this:
testDataPath = /some/absolute/path.txt
patter = */absolute/*
Now it matches correctly
2021-06-11 20:06:03 +03:00
nataliya.valtman
d42a6771b0
Update statistics that should be sent to ES
...
Next properties should be set in gradle.properties or via -D option:
systemProp.kotlin.plugin.stat.password
systemProp.kotlin.plugin.stat.user
systemProp.kotlin.plugin.stat.enabled=true
systemProp.kotlin.plugin.stat.label
systemProp.kotlin.plugin.stat.endpoint=es_endpoint/index/_doc
kotlin.build.report.verbose=true
kotlin.build.report.enable=true
2021-06-11 19:12:05 +03:00
Dmitry Petrov
bf077b893c
PSI2IR KT-47245 handle declaration statements in control structures
2021-06-11 16:42:31 +03:00
pyos
3be348f910
JVM_IR: fix parentClassId for property accessors
2021-06-11 15:03:13 +02:00
pyos
d4485bc475
JVM: remove unused methodOwner from InlineCodegen
2021-06-11 15:03:13 +02:00
pyos
ed26e97df8
JVM: refactor loading of inline functions from binaries
...
The IR path no longer does any descriptor unwrapping or old-style type
mapping.
2021-06-11 15:03:13 +02:00
pyos
7bcd738bb1
JVM: inline createInlineMethodNode into InlineCodegenForDefaultBody
...
Most of it is unused, since there we know the target function will also
need to be compiled from source.
2021-06-11 15:03:13 +02:00
pyos
4c7eb815fc
JVM: remove some FunctionDescriptors from SourceCompilerForInline
2021-06-11 15:03:13 +02:00
pyos
a24ad233ee
JVM: move PsiSourceCompilerForInline to a separate file
2021-06-11 15:03:13 +02:00
pyos
955b9260d1
JVM: move more old backend code out of InlineCodegen
2021-06-11 15:03:13 +02:00
pyos
043452fb62
JVM: make handling of captured params for default lambdas shorter
2021-06-11 15:03:13 +02:00
pyos
4cae880b44
JVM: remove unused DefaultLambda.parameterOffsetsInDefault
2021-06-11 15:03:13 +02:00
pyos
8a3af851d9
JVM: pregenerate inline lambda bodies as early as possible
...
Which in JVM_IR is immediately in `genValueAndPut`, but for the old
backend needs to be delayed until `genCallInner` for some reason.
2021-06-11 15:03:13 +02:00
pyos
90412ade8a
JVM: remove second parameter of putClosureParametersOnStack
...
Only used by the old backend.
2021-06-11 15:03:13 +02:00
pyos
d4c8a033b1
JVM: remove BaseExpressionCodegen.pushClosureOnStack
...
It's only used by the old backend
2021-06-11 15:03:13 +02:00
pyos
b6c3c9942d
JVM: move activeLambda to PsiInlineCodegen
2021-06-11 15:03:13 +02:00
pyos
7333abf50d
JVM: purge redundant val BaseExpressionCodegen.v
2021-06-11 15:03:13 +02:00
pyos
1f9db7cf25
FE: properly clear the deferred generator stack
...
Before this commit the stack wasn't cleared for read variable case.
#KT-47168 Fixed
2021-06-11 15:56:20 +03:00
Sergey Bogolepov
2f632ada42
[Native] Remove unused code
2021-06-11 12:18:15 +00:00
Sergey Bogolepov
36386de9a2
[Native] Drop explicit -fPIC flag setup
...
We don't need to explicitly set -fPIC flag everywhere
because since d82109cc92
it is set by default for all ClangArgs users.
2021-06-11 12:18:14 +00:00
Sergey Bogolepov
7550351702
[Native] Fix runtime code according to Clang 11 warnings
2021-06-11 12:17:00 +00:00
Georgy Bronnikov
91387e644f
IR: repair collectAndFilterRealOverrides
2021-06-11 15:05:45 +03:00
Georgy Bronnikov
7e6782d684
JVM_IR: simplify resolveFakeOverride call in SyntheticAccessorLowering
2021-06-11 15:05:45 +03:00
Georgy Bronnikov
fca804de14
IR: properly compute IrProperty.resolveFakeOverride()
...
Now that IrProperty has its own overriddenSymbols, we can generalize the
search for fake overrides. Also works for fake override properties
derived from Java fields.
2021-06-11 15:05:45 +03:00
Jinseong Jeon
3769fd8e07
FIR UAST: fix import resolve test
...
The `resolve` failure (or `null` return) of import directive for
`java.lang.Thread.sleep` is legitimate, since there are two static methods
in `java.lang.Thread`:
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Thread.html
hence not able to resolve to a single method.
Unless we change `UImportStatement` to be a subtype of `UMultiResolvable`,
instead of `UResolvable`, we can't properly test `resolve` API for that.
2021-06-11 14:51:07 +03:00
Yahor Berdnikau
da25d58fa7
Control cache redirector status in test via project settings.
...
Test will use project `gradle.properties` file to get current
cache redirector status, so it could be controlled from one place.
^KT-47185 Fixed
2021-06-11 11:44:36 +00:00
Yahor Berdnikau
7b1db6992e
Enable cache redirector for old tests setup.
...
^KT-47185 Fixed
2021-06-11 11:44:35 +00:00
Yahor Berdnikau
e98de36aaa
Enable cache redirector for Junit5 tests.
...
^KT-47185 In Progress
2021-06-11 11:44:34 +00:00
Yahor Berdnikau
5d0abf0e33
Lazily apply cache redirector to all project modules.
...
Mainly move it from 'afterEvaluate { .. }' block.
^KT-47185 In Progress
2021-06-11 11:44:34 +00:00
Viacheslav Kormushkin
3c0709cf4f
A new DSL for framework configuration within cocoapods block
...
#KT-46479
#KT-35723
2021-06-11 11:10:49 +00:00
Mikhail Glukhikh
5a3f84c8fa
Add forgotten test data file
2021-06-11 13:17:01 +03:00
Svyatoslav Scherbina
b13e7d1e28
Native: enable more Obj-C interop tests for new MM
2021-06-11 07:35:50 +00:00
Svyatoslav Scherbina
79d4047e86
Native: improve thread state switching for Obj-C interop
2021-06-11 07:35:49 +00:00
Svyatoslav Scherbina
85ab4f68df
Native: support reentrant mode for CalledFromNativeGuard
2021-06-11 07:35:48 +00:00
sebastian.sellmair
1bcafd3cd0
[Gradle] commonizeCInterop task: Require hierarchical commonization to be enabled
...
^KT-47133 Verification Pending
2021-06-11 07:03:24 +00:00
Roman Golyshev
d781902626
Add possibility to use baseDir in SpecHelpersSourceFilesProvider
...
In IJ infrastructure we have specific path prefix for compiler testData
2021-06-11 02:28:39 +03:00
Vladimir Dolzhenko
2c8d583d8b
Added ad-hoc KtValueArgument.stringTemplateExpression
...
Use only stub stringTemplateExpression if it is present and don't use ast nodes as it could be unbounded
#KT-47034 Fixed
2021-06-10 21:14:32 +00:00
Yahor Berdnikau
a383c1ce79
Ensure kapt tasks don't capture sources state in configuration cache.
...
Kapt tasks have captured sources state inside SourceRoots container
internal collection, that was cached by configuration cache.
This lead to the compilation errors whenever sources files
were changed (deleted or renamed), because kapt still expected
previous file state to exist.
Now SourceRoots will not create internal collection, but rather
reuse standard Gradle FileCollection methods that perform required
calculations dynamically.
^KT-46651 Fixed
2021-06-10 20:00:39 +00:00
Yahor Berdnikau
3d36e11e80
Make 'kapt.verbose' property compatible with configuration cache.
...
^KT-46651 In Progress
2021-06-10 20:00:38 +00:00
Ilya Kirillov
c4b1fa8ec0
Fix FE1.0 plugin testdata after adding // IGNORE_FIR directive
2021-06-10 19:05:33 +02:00
Ilya Kirillov
bc306a5195
FIR IDE: Regenerate quickfix tests
2021-06-10 19:05:33 +02:00
Tianyu Geng
90a0c9bb25
FIR IDE: quickfix to add override keyword
...
Also enables more tests that covers previous quickfixes
2021-06-10 19:05:33 +02:00
Alexander Likhachev
1658f4433d
[Build] Update Gradle Enterprise plugin to 3.6.2
2021-06-10 18:39:21 +03:00
Alexander Likhachev
17991c5b6e
[Build] Update common-custom-user-data-gradle-plugin to 1.4
...
Now the plugin detects IDEA via system properties using Gradle providers and shoudn't cause undeclared system property reads issue
#KT-44611 In Progress
2021-06-10 18:39:20 +03:00
Nikita Bobko
debc0d2b93
Add .idea/libraries-with-intellij-classes.xml to .gitignore
2021-06-10 17:37:50 +02:00
Vladimir Dolzhenko
1eb04d5440
Support Kotlin 1.5 / 1.6 language versions come from external sources
...
#KTIJ-15743 Fixed
Original commit: 784f77a2b98b0c9719f4919e45a193f35d7d9875
2021-06-10 13:12:36 +00:00