Ilya Chernikov
bcd7bc5fd7
Fix arguments processing with scriting with old backend by default
2021-03-24 21:26:57 +01:00
Ilya Chernikov
c3ec94ff82
FIR: copied 2 more gradle incremental IT for FIR
...
temporary, we need a proper test infrastructure to run all gradle IT
with FIR
2021-03-24 21:24:20 +01:00
Ilya Chernikov
2d9c0e137f
Add gradle ITs witn IC and FIR
2021-03-24 21:24:20 +01:00
Ilya Chernikov
a11f6d2e50
Add support for gradle option useFir and appropriate property...
...
`kotlin.useFir`
2021-03-24 21:24:20 +01:00
Ilya Chernikov
3400911d97
[minor] unmute fixed FIR tests
2021-03-24 21:24:20 +01:00
Ilya Chernikov
4a79f544f7
FIR: Mute IC test due to java tracking peculiarities
...
should be fixed after implementing proper java tracking for FIR
2021-03-24 21:24:20 +01:00
Ilya Chernikov
7e08820009
FIR: Mute IC tests with missing FIR diagnostics
2021-03-24 21:24:20 +01:00
Ilya Chernikov
14121a1d9a
FIR: Disable java tracking in FIR IC
...
until it is properly implemented,
fixes some IC tests for now, making it less pecise
2021-03-24 21:24:19 +01:00
Ilya Chernikov
20fdad87ec
FIR: support direct use of typealias with friend-paths
...
also fixes one IC test
2021-03-24 21:24:19 +01:00
Ilya Chernikov
ef2bb48706
FIR: fix fir-specific incremental compilation testdata
2021-03-24 21:24:19 +01:00
Ilya Chernikov
51a1cec08b
FIR: Reimplement conflicts checker to detect conflicts in different files
...
also pass correct ScopeSession to checkers
fixes some IC tests
2021-03-24 21:24:19 +01:00
Ilya Chernikov
3e458a1efb
FIR: Add IncrementalPackagePartsProvider usage in cli...
...
also refactor IncrementalPackagePartsProvider and parents to simplify
usage
2021-03-24 21:24:18 +01:00
Ilya Chernikov
f8d50d585d
FIR: Implement lookup tracking
2021-03-24 21:24:18 +01:00
Ilya Chernikov
7d29ae7cce
FIR: add incremental compilation tests
2021-03-24 21:24:18 +01:00
Ilya Chernikov
6cc39788fd
FIR: Fix main fn mangling (without proper detection)
...
proper main function detector has to be implemented in addition
to that
2021-03-24 21:24:18 +01:00
Ilya Chernikov
88e7ba2a3b
FIR: Report syntax errors in cli compilation
2021-03-24 21:24:18 +01:00
Ilya Chernikov
ed78183dbd
FIR: use more specific cone error for unresolved user type ref
...
replaces diagnostic with <No name> with specific qualifier
2021-03-24 21:24:18 +01:00
Ivan Kylchik
77539fe2db
Add visitExpressionBody method to IrCompileTimeChecker
...
This method is needed to explicitly indicate that IrExpressionBody can
be interpreted in any evaluation mode.
2021-03-24 21:24:17 +01:00
Ilya Chernikov
e0297cf207
[minor] implement automatic stdlib-jdkX jars handling in KotlinPaths
...
fixes some local testing scenarios
2021-03-24 21:24:17 +01:00
Ilya Chernikov
76b2ca2e96
[minor] FIR: add missing error message
2021-03-24 21:24:17 +01:00
Alexander Udalov
81a8566763
Fix verification-metadata.xml after updating r8 to 2.1.96
2021-03-24 20:16:16 +01:00
Mads Ager
41f5ac393a
Update D8 used for dexing tests to version 2.1.96.
2021-03-24 20:16:15 +01:00
Yahor Berdnikau
48599e3768
Bump advance Gradle version in tests to '7.0-rc-1'.
...
- Add missing dependency on ':kotlin-serialization' required
by some tests.
- Add additional location for libcurl on Linux machines.
2021-03-24 21:14:48 +03:00
Ilya Kirillov
6e31ff4fb1
Introduce CallableId.asSingleFqName and use it instead CallableId.asFqNameForDebugInfo
2021-03-24 18:13:21 +01:00
Ilya Kirillov
6f887896ff
FIR IDE: use CallableId for KtCallableSymbol instead of FqName
2021-03-24 18:13:04 +01:00
Ilya Kirillov
f66a155683
FIR IDE: use common spelling for analyse functions family
2021-03-24 18:12:25 +01:00
Igor Chevdar
a618791ff0
[K/N][IR] Removed unnecessary hack
...
The hack has been rendered redundant due to the recent fixes in psi2ir
2021-03-24 20:42:40 +05:00
Igor Chevdar
246a907753
[FE][PSI2IR] Generalized SamType
...
Operations regarding <fun interface> are common for all backends
2021-03-24 20:42:40 +05:00
Tianyu Geng
56bec6997c
FIR checker: report SUPERTYPE_NOT_INITIALIZED
...
Combined this and the checker of
SUPERTYPE_INITIALIZED_WITHOUT_PRIMARY_CONSTRUCTOR together.
Also fixed SUPERTYPE_INITIALIZED_WITHOUT_PRIMARY_CONSTRUCTOR incorrectly
repoted as warning instead of error.
2021-03-24 17:48:39 +03:00
Tianyu Geng
6134c00698
FIR: track KtSuperTypeCallEntry in FirDelegatedConstructorCall
...
In PSI world, a call to super type constructor is represented by a
KtSuperTypeCallEntry. Currently FIR tracks the callee reference to this
constructor call.
This is undesirable because
1. We may want to report issues on the call arguments, so FIR must track
the entire call rather than just the callee reference
2. Light tree actually reports the KtSuperTypeCallEntry.
3. Both the FirDelegatedConstructorCall and its `calleeReference` are
currently referencing the same KtConstructorCalleeExpression PSI
element as the source.
This change makes FirDelegatedConstructorCall track the entire
KtSuperTypeCallEntry as the source, if possible.
2021-03-24 17:48:39 +03:00
Sergey Bogolepov
5243720043
Add support for android and wasm on macos_arm64
2021-03-24 17:37:51 +03:00
Sergey Bogolepov
3a008f6236
Cleanup ClangArgs.kt a little bit
2021-03-24 17:37:50 +03:00
Sergey Bogolepov
273b43d227
Simplify setting apple os version in ClangArgs
...
Use `osVersionMinFlagClang` from konan.properties
instead of manual setup in ClangArgs.
This simplification will make it easier to add support
for future targets.
2021-03-24 17:37:49 +03:00
Sergey Bogolepov
51d3d1f1a8
ClangArgs: Set stdlib for apple targets in a single place
2021-03-24 17:37:48 +03:00
Sergey Bogolepov
f339e9cc66
ClangArgs: Set arch for apple targets in a single place
2021-03-24 17:37:47 +03:00
Sergey Bogolepov
30863cd184
Support the rest of Linux targets on macos_arm64
2021-03-24 17:37:45 +03:00
Sergey Bogolepov
0e1276fc6c
Support the rest of Apple targets on macos_arm64
2021-03-24 17:37:44 +03:00
Sergey Bogolepov
58e0cc1c7c
Specify linker for macos_arm64-linux_x64
2021-03-24 17:37:42 +03:00
Sergey Bogolepov
579c1eb7db
Remove libffi from target dependencies
...
Technically, it is a dependency of a compiler itself.
Thus, we can simplify konan.properties a little bit
by applying the same approach as we did for LLVM.
2021-03-24 17:37:40 +03:00
Tianyu Geng
e1c80ac75c
FIR checker: introduce NO_(GET|SET)_METHOD
...
Besides introducing new diagnostics, this commit unifies source usages
for array accesses in PSI & LT.
2021-03-24 16:25:01 +03:00
pyos
651fd4ad9f
FIR: load Java annotation defaults after binding the class symbol
...
as they can refer to the class itself.
2021-03-24 16:09:25 +03:00
Mikhail Glukhikh
449a79151a
FirNotImplementedOverrideChecker: check also anonymous objects / enums
2021-03-24 16:07:30 +03:00
Mikhail Glukhikh
82b8cc333e
FIR: introduce INVISIBLE_ABSTRACT_MEMBER_FROM_SUPER
2021-03-24 16:07:28 +03:00
Mikhail Glukhikh
47d2a914bc
FIR: add bad test data changes related to not implemented checker
2021-03-24 16:07:26 +03:00
Mikhail Glukhikh
9ce8420491
FIR: introduce not implemented checker
2021-03-24 16:07:25 +03:00
Mikhail Glukhikh
9ae41f5c07
FIR: store substitution for properties with implicit return type
2021-03-24 16:07:21 +03:00
Mikhail Glukhikh
4768700600
FIR error repro: property type mismatch in override from light classes
2021-03-24 16:07:20 +03:00
Mikhail Glukhikh
b6f1a442fb
FIR checkers: use ScopeSession from resolve when possible
2021-03-24 16:07:19 +03:00
Mikhail Glukhikh
a26a195c35
Add FIR_IDENTICAL to some tests
2021-03-24 16:02:09 +03:00
Jinseong Jeon
c6298398ef
FIR checker: rework VAL_REASSIGNMENT_VIA_BACKING_FIELD(_ERROR)
2021-03-24 16:02:08 +03:00