Ian Lynagh
7560573b89
Merge pull request #14906 from igfoo/igfoo/locs
...
Kotlin 2: Accept some location changes in test-kotlin2/library-tests/stmts
2023-11-27 11:42:47 +00:00
Stephan Brandauer
68a7734e08
Merge pull request #14849 from github/kaeluka/automodel-extraction-skip-primitive-types-candidates
...
Java Automodel extraction: remove primitives in framework mode
2023-11-27 09:52:48 +01:00
Stephan Brandauer
2e5971bb57
Java automodel: also drop boxed types and number types from endpoints
2023-11-24 15:04:13 +01:00
Ian Lynagh
b33fcf3719
Kotlin: Accept some location changes in test-kotlin2/library-tests/stmts
2023-11-24 13:34:44 +00:00
Ian Lynagh
c4d3d505ca
Kotlin: Accept changes in Kotlin2 ExtractorInformation test
2023-11-23 14:30:50 +00:00
Ian Lynagh
69cfc79561
Kotlin: Add LighterAST support to numlines extraction
2023-11-23 12:02:27 +00:00
Ian Lynagh
1f2d9dc95c
Merge pull request #14862 from igfoo/igfoo/test-kotlin1
...
Kotlin: Move tests from test/kotlin to test-kotlin1
2023-11-22 14:45:13 +00:00
Tom Hvitved
979bcf4ef3
Merge pull request #14868 from hvitved/ssa/locations
...
SSA: Add locations to ease debugging
2023-11-22 13:26:41 +01:00
amammad
97eb7b7b72
update example to include more logical vulnerable pattern, add documentations for ql classes
2023-11-22 09:27:55 +01:00
Tom Hvitved
1a6886cf99
SSA: Add locations to ease debugging
2023-11-22 08:37:02 +01:00
Ian Lynagh
45bbcccd1a
Kotlin: Copy TestUtilities into the kotlin testsuites
2023-11-21 17:16:54 +00:00
Ian Lynagh
1fb19191ba
Kotlin: Add a qlpack.yml to the test-kotlin1 tests
2023-11-21 15:31:18 +00:00
Ian Lynagh
f48cc1a526
Kotlin: Move tests from test/kotlin to test-kotlin1
...
Matches test-kotlin2
2023-11-21 15:28:12 +00:00
Ian Lynagh
1998e29639
Kotlin 2: isFake is currently broken, so assume not fake for now
...
We'll want to find a Kotlin-2-compatible replacement for this.
2023-11-21 14:37:53 +00:00
Ian Lynagh
6bd269502f
Kotlin: Pull out a tryIsHiddenToOvercomeSignatureClash method
2023-11-21 14:36:10 +00:00
Stephan Brandauer
f2de449ce4
Merge branch 'main' into kaeluka/automodel-extraction-skip-primitive-types-candidates
2023-11-21 14:57:24 +01:00
Ian Lynagh
2c2dccabe9
Merge pull request #14833 from igfoo/igfoo/kot2tests
...
Kotlin: Add a kotlin2 copy of the testsuite
2023-11-21 12:24:49 +00:00
Ian Lynagh
95de7495d1
Kotlin: Fix build with 2.0.0-Beta1
2023-11-20 16:08:02 +00:00
Ian Lynagh
72bafd86df
Kotlin: Tweak the regex we use to find the installed Kotlin version
2023-11-20 16:08:02 +00:00
Ian Lynagh
452b68c0ca
Kotlin: Add 2.0.0-Beta1 to versions
2023-11-20 16:08:02 +00:00
Max Schaefer
b5c92408f4
Merge pull request #14845 from github/max-schaefer/minor
...
Automodel: Fix a few nits.
2023-11-20 15:24:45 +00:00
Stephan Brandauer
737aab66f5
Java automodel: drop primitive parameters from endpoints
2023-11-20 15:09:05 +01:00
Stephan Brandauer
e34a9de008
Java Automodel: drop return values of primitive return type methods from consideration for extraction in framework mode
2023-11-20 14:11:14 +01:00
Stephan Brandauer
212a515fa9
Java Automodel: drop return values void methods other than ctors from consideration for extraction in framework mode
2023-11-20 14:00:59 +01:00
Stephan Brandauer
d84501d65c
Java automodel extraction: test case for framework mode extraction showing how primitives are currently candidates
2023-11-20 13:36:41 +01:00
Ian Lynagh
b8a2716ced
Merge pull request #14835 from igfoo/igfoo/findTopLevelFunctionOrWarn
...
Kotlin: Fix findTopLevelFunctionOrWarn for Kotlin 2
2023-11-20 12:11:58 +00:00
Max Schaefer
1bed9f9003
Automodel: Fix a few nits.
2023-11-20 11:06:02 +00:00
Arthur Baars
db180d9872
Merge pull request #14823 from github/post-release-prep/codeql-cli-2.15.3
...
Post-release preparation for codeql-cli-2.15.3
2023-11-19 12:13:42 +01:00
masterofnow
2952d8f65a
Updated query to cover broader detection.
2023-11-18 18:52:47 +08:00
Ian Lynagh
5c36e63dfe
Kotlin: Fix findTopLevelFunctionOrWarn for Kotlin 2
...
The AST when the parent class is a file class is different in
Kotlin 2 mode.
2023-11-17 15:25:53 +00:00
github-actions[bot]
bad499e360
Post-release preparation for codeql-cli-2.15.3
2023-11-17 14:35:41 +00:00
Ian Lynagh
007f181ff5
K2: library-tests/properties: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
90ba3812fe
K2: library-tests/private-anonymous-types: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
e63ddd2071
K2: library-tests/operator-overloads: Accept changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
8f8f5f8826
K2: library-tests/methods-mixed-java-and-kotlin: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
584ba80ec7
K2: library-tests/literals: Accept changes
...
Some literals that were negative are now unaryMiunus applied to a
positive literal.
2023-11-17 14:07:15 +00:00
Ian Lynagh
4ad874a089
K2: library-tests/lateinit: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
a3ed965032
K2: library-tests/jvmstatic-annotation: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
2bd18ab41d
K2: library-tests/jvmoverloads_flow: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
713695f8f9
K2: library-tests/jvmoverloads-annotation: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
bb1d5d3c8c
K2: library-tests/java_and_kotlin_internal: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
737e9d8844
K2: library-tests/java-lang-number-conversions: Accept changes
...
With
fun f(b: kotlin.Byte) {
val x = b.describeConstable()
}
and -language-version 1.9 we get
test.kt:2:15: warning: 'describeConstable(): Optional<DynamicConstantDesc<Byte!>!>!' is deprecated. This member is not fully supported by Kotlin compiler, so it may be absent or have different signature in next major version
and with 2.0
test.kt:2:15: error: unresolved reference 'describeConstable'.
2023-11-17 14:07:15 +00:00
Ian Lynagh
02ed6e03e2
K2: library-tests/internal-public-alias: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
0a4ba8e8c7
K2: library-tests/interface-delegate: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
081a4ad021
K2: library-tests/inherited-default-value: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
23d881baa4
K2: library-tests/generics: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
91a48856c5
K2: library-tests/generic-instance-methods: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
b97f4401c0
K2: library-tests/exprs_typeaccess: Accept changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
11a664d707
K2: library-tests/dataflow/notnullexpr: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
46e155d327
K2: library-tests/controlflow/dominance: Accept changes
2023-11-17 14:07:14 +00:00