Mathias Vorreiter Pedersen
4aed638066
Merge pull request #14577 from MathiasVP/capture-flow-swift
...
Swift: Add variable-capture flow
2023-10-27 14:09:04 +01:00
Mathias Vorreiter Pedersen
68999f3cef
Swift: Fix test by including the 'allowParameterReturnInSelf' hook from the variable capture library.
2023-10-27 11:25:19 +01:00
Mathias Vorreiter Pedersen
9b150e4ea9
Swift: Add failing test.
2023-10-27 11:22:56 +01:00
Mathias Vorreiter Pedersen
a5a7d27c4b
Swift: Add change note.
2023-10-27 11:16:32 +01:00
Mathias Vorreiter Pedersen
b41ec37993
Swift: Remove the code related to constructor capture (and the related TODO). This cannot happen in Swift.
2023-10-27 11:05:48 +01:00
Mathias Vorreiter Pedersen
65e13aa5ed
Swift: Add simple version of the 'captureList' test that works.
2023-10-27 10:27:35 +01:00
Mathias Vorreiter Pedersen
93234c0b5c
Swift: Add model for 'withVaList' and accept test changes.
2023-10-27 10:21:12 +01:00
Mathias Vorreiter Pedersen
9e2dd09ddc
Swift: Accept test regression (caused by no model for 'withVaList').
2023-10-27 10:20:07 +01:00
Mathias Vorreiter Pedersen
63525a9d9e
Swift: Delete one TODO (it has been converted to an internal issue) and fix another.
2023-10-26 21:48:41 +01:00
Mathias Vorreiter Pedersen
784bb72b33
Swift: Add some more tests.
2023-10-26 17:29:26 +01:00
Mathias Vorreiter Pedersen
96a37f3a3c
Swift: Simplify more tests.
2023-10-26 14:55:17 +01:00
Mathias Vorreiter Pedersen
2ad121a8a5
Swift: Simplify test.
2023-10-26 14:46:59 +01:00
Mathias Vorreiter Pedersen
2465cc20f0
Swift: Don't define 'ClosureSelfParameterNode' as the expression node of the closure.
2023-10-26 11:56:27 +01:00
Mathias Vorreiter Pedersen
11194e574c
Swift: Get rid of the unnecessary parameter/argument position for the closure. Instead, we can just reuse the 'this' parameter and argument.
2023-10-25 15:46:10 +01:00
Mathias Vorreiter Pedersen
951b6beeb1
Swift: Untangle the confusion between 'getParameter' and 'asParameter'.
2023-10-25 14:44:09 +01:00
Mathias Vorreiter Pedersen
78e08cf63c
Swift: Remove irrelevant TODO.
2023-10-25 13:55:07 +01:00
Geoffrey White
42a2ec9891
Merge branch 'main' into substring
2023-10-24 17:03:00 +01:00
Geoffrey White
06b1cd939c
Merge pull request #14502 from geoffw0/xmlquery
...
Swift: Model RawRepresentable
2023-10-24 16:25:15 +01:00
Mathias Vorreiter Pedersen
862de152a1
Swift: Add required qldoc.
2023-10-24 15:45:17 +01:00
Mathias Vorreiter Pedersen
6f37d7c374
Swift: Accept changes in paths.
2023-10-24 15:39:19 +01:00
Mathias Vorreiter Pedersen
56b49a4de3
Swift: Add a closure flow step from the right-hand side of variable declarations to the underlying pattern.
2023-10-24 15:28:28 +01:00
Mathias Vorreiter Pedersen
3d5098aaeb
Swift: Add failing test.
2023-10-24 15:28:25 +01:00
Mathias Vorreiter Pedersen
1c298e6001
Swift: Fix 'parameter' -> 'argument' flow into closures.
2023-10-24 15:28:01 +01:00
Mathias Vorreiter Pedersen
310ebe47b3
Swift: Clean up test file.
2023-10-24 15:27:59 +01:00
Nora Dimitrijević
9dbf7e818d
Swift: align definition of InputSig slightly closer to Java version
...
Though there is a regression in the tests, so more work is needed.
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
9de3cc703a
Swift: add CapturePostUpdateNode
...
However, this doesn't change any of the test results.
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
5418d39a0d
Swift: add and accept a few new simple test cases
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
af49a3aa64
Swift: accept new results in old tests
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
8115774a7a
Swift: Add the capture flow step as part of the normal data flow relation
...
TODO: see if we need to exclude duplicate SSA steps
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
4e1b44a059
Swift: port simpleAstFlowStep/hasAliasedAccess
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
21a369de13
Swift: Add closure content read-write steps
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
c04654d8f9
Swift: getImmediateBasicBlockDominator/2 should use immediatelyDominates/0.
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
95a7d6559c
Swift: initial version of a swift port of most of the java code
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
3253c0425c
Swift: s/getName/getShortName/ in InlineFlowTest.qll
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
050b8e682f
Swift: add failing inline expectation test based on closure AST tests.
2023-10-24 13:56:31 +01:00
Paolo Tranquilli
7cc20587ad
Codegen: add `@qltest.test_with`
...
This allows to group together related AST classes to reuse the same
test source and extraction. For example this is useful for
`EnumDecl/EnumCaseDecl/EnumElementDecl`, where this is applied to.
2023-10-23 14:51:22 +02:00
Paolo Tranquilli
c92519ed6b
Merge pull request #14538 from github/redsun82/add-unspecified-element-children
...
Swift: add children to `UnspecifiedElement`
2023-10-20 12:27:05 +02:00
Dave Bartolomeo
712f7758cf
Merge branch 'main' into post-release-prep/codeql-cli-2.15.1
2023-10-19 12:14:07 -04:00
Paolo Tranquilli
d55289bf68
Swift: add children to `UnspecifiedElement`
...
This will allow better downgrade scripts in the future.
2023-10-18 16:42:04 +02:00
github-actions[bot]
8dcd8b9e5b
Post-release preparation for codeql-cli-2.15.1
2023-10-17 20:24:00 +00:00
Geoffrey White
b93442a2b6
Merge pull request #14523 from geoffw0/appendingformat
...
Swift: Model StringProtocol.appendingformat and String.decodecstring
2023-10-17 18:04:29 +01:00
Robert Marsh
53e80e0f27
Merge pull request #14398 from rdmarsh2/rdmarsh2/swift/autoclosure-cfg
...
Swift: add CFG for normal autoclosures
2023-10-17 11:50:24 -04:00
Mathias Vorreiter Pedersen
68f2501bf0
Merge pull request #14496 from geoffw0/memberinittest
...
Swift: Add data flow tests for member initialization.
2023-10-17 12:35:07 +01:00
Geoffrey White
5ffb773568
Swift: Explore instantiated / not instantiated classes.
2023-10-17 11:30:03 +01:00
Geoffrey White
0a96eb0a40
Swift: Change note.
2023-10-16 21:43:55 +01:00
Geoffrey White
2679d1fdb5
Swift: Add models.
2023-10-16 21:40:38 +01:00
Geoffrey White
451d779f4a
Swift: Test String.decodeCString.
2023-10-16 21:22:03 +01:00
Geoffrey White
459b006244
Swift: Test StringProtocol.appendingFormat.
2023-10-16 21:22:03 +01:00
github-actions[bot]
3b3c036626
Release preparation for version 2.15.1
2023-10-16 17:49:39 +00:00
Geoffrey White
c6ff42986d
Swift: Change note.
2023-10-16 18:43:03 +01:00