Mathias Vorreiter Pedersen
7658df9ebd
Merge pull request #11355 from MathiasVP/fewer-read-steps
...
C++: Reduce `readStep` fan-in
2022-11-21 20:35:34 +00:00
Mathias Vorreiter Pedersen
d1274e2769
C++: Accept more test changes.
2022-11-21 18:33:14 +00:00
Mathias Vorreiter Pedersen
231e2a8df3
C++: Reduce fan-in for 'readStep'.
2022-11-21 17:07:29 +00:00
Mathias Vorreiter Pedersen
24542ec84a
Merge branch 'main' into replace-ast-with-ir-use-usedataflow
2022-11-21 15:02:28 +00:00
Erik Krogh Kristensen
b4661f4a59
Merge pull request #11245 from erik-krogh/rb-redosMod
...
Ruby: use the shared regex pack
2022-11-21 15:34:20 +01:00
Tony Torralba
01dcf6a9ac
Merge pull request #11340 from atorralba/atorralba/disabled-poms
...
Java: Handle disabled Maven repositories
2022-11-21 15:31:53 +01:00
Taus
8f4eb7107a
Merge pull request #10861 from tausbn/python-clean-up-import-resolution
...
Python: Clean up import resolution
2022-11-21 15:18:08 +01:00
Tom Hvitved
d189ba52c0
Merge pull request #11341 from hvitved/cfg/multi-edge-workaround
...
CFG: Workaround in test output for origin/target pairs with multiple edges
2022-11-21 14:34:17 +01:00
Jeroen Ketema
78ad9ba60f
Merge pull request #11262 from rdmarsh2/rdmarsh2/cpp/deprecate-ast-gvn
...
C++: deprecate AST-based GVN
2022-11-21 13:38:54 +01:00
Tom Hvitved
f7fc61e39d
Merge pull request #11336 from hvitved/ruby/ci-check-undefined-labels
...
Ruby: Add `--check-undefined-labels` to QL test job
2022-11-21 13:36:52 +01:00
AlexDenisov
6f52fe81d1
Merge pull request #11331 from github/redsun82/swift-codegen-skip-unchanged
...
Swift: skip QL code generation on untouched files
2022-11-21 13:34:41 +01:00
Tom Hvitved
0d89f57680
Swift: Update expected test output
2022-11-21 12:55:40 +01:00
Tom Hvitved
2fac505221
Ruby: Update expected test output
2022-11-21 12:52:27 +01:00
Tom Hvitved
e7ed056b6f
Sync files
2022-11-21 12:00:36 +01:00
Tom Hvitved
8c9431d278
CFG: Workaround in test output for source/sink pairs with multiple edges
2022-11-21 11:58:59 +01:00
Jeroen Ketema
752bc2e980
C++: Accept test changes after AST-based GVN deprecation
2022-11-21 11:45:09 +01:00
Tony Torralba
aa2c7426ad
Add change note
2022-11-21 11:42:40 +01:00
Erik Krogh Kristensen
b6dd388bdb
Merge pull request #11328 from erik-krogh/removeQlCompCheck
...
QL/RB: delete language specific codeql query compile checks
2022-11-21 10:51:52 +01:00
Jeroen Ketema
ffbe1e065a
Merge pull request #11314 from MathiasVP/fix-flow-out-of-const-member-functions
...
C++: Fix flow out of const member functions
2022-11-21 10:36:59 +01:00
Tony Torralba
2809c3a77c
Handle disabled Maven repositories
2022-11-21 10:11:57 +01:00
Mathias Vorreiter Pedersen
7251f2fd3d
Merge pull request #11330 from MathiasVP/fix-performance-of-upcast-array-pointer-arith
2022-11-21 09:09:00 +00:00
Tom Hvitved
1dbcf8eb10
Ruby: Add --check-undefined-labels to QL test job
2022-11-20 10:16:35 +01:00
erik-krogh
41e8170d59
delete the rest of the qlcompile job in Ruby
2022-11-19 11:16:24 +01:00
Erik Krogh Kristensen
a69524f7b4
Merge pull request #11318 from erik-krogh/deleteMoreDeps
...
delete old deprecations
2022-11-19 11:15:12 +01:00
Henry Mercer
a964325724
Merge pull request #11332 from sigfaulterror/patch-1
...
Update analyzing-databases-with-the-codeql-cli.rst
2022-11-18 18:47:14 +00:00
sigfaulterror
a97570be63
Update analyzing-databases-with-the-codeql-cli.rst
...
just small doc error
2022-11-18 18:54:03 +01:00
Paolo Tranquilli
aaa96b20ed
Swift: fix python compatibility with CI
2022-11-18 17:51:20 +01:00
Paolo Tranquilli
6dcdf8c71f
Swift: fix bazel setup
2022-11-18 17:22:44 +01:00
Paolo Tranquilli
aeb7b0d050
Swift: remove ModifiedStubMarkedAsGeneratedError
2022-11-18 17:13:12 +01:00
Paolo Tranquilli
2cd58817d7
Swift: skip QL code generation on untouched files
...
This is a developer QoL improvement, where running codegen will skip
writing (and especially formatting) any files that were not changed.
**Why?** While code generation in itself was pretty much instant, QL
formatting of generated code was starting to take a long time. This made
unconditionally running codegen quite annoying, for example before each
test run as part of an IDE workflow or as part of the pre-commit hook.
**How?** This was not completely straightforward as we could not work
with the contents of the file prior to code generation as that was
already post-processed by the QL formatting, so we had no chance of
comparing the output of template rendering with that. We therefore store
the hashes of the files _prior_ to QL formatting in a checked-in file
(`swift/ql/.generated.list`). We can therefore load those hashes at
the beginning of code generation, use them to compare the template
rendering output and update them in this special registry file.
**What else?** We also extend this mechanism to detect accidental
modification of generated files in a more robust way. Before this patch,
we were doing it with a rough regexp based heuristic. Now, we just store
the hashes of the files _after_ QL formatting in the same checked file,
so we can check that and stop generation if a generated file was
modified, or a stub was modified without removing the `// generated`
header.
2022-11-18 16:56:01 +01:00
Mathias Vorreiter Pedersen
bfba95f9f7
C++: Fix performance of 'cpp/upcast-array-pointer-arithmetic'.
2022-11-18 14:50:18 +00:00
Taus
07969260c8
Merge pull request #11132 from erik-krogh/parentQl
...
QL: fix non-attached annotations for newtype branches
2022-11-18 15:45:02 +01:00
Taus
d79eed533b
Python: Remove unwanted recursion
...
Depending on `localFlowStep` meant that this predicate ended up being
recursive with itself (by way of flow summaries which depend on API
graphs, which in turn depend on import resolution).
Changing this to use the simple local flow step predicate that we use
for type tracking should fix this issue.
2022-11-18 13:50:50 +00:00
Mathias Vorreiter Pedersen
3c49447165
Merge pull request #11325 from MathiasVP/fix-join-in-cast-array-pointer-query
...
C++: Fix join order in `cpp/upcast-array-pointer-arithmetic`
2022-11-18 13:41:57 +00:00
erik-krogh
3cdfed9483
CI: delete language specific codeql query compile checks
2022-11-18 14:41:29 +01:00
Erik Krogh Kristensen
e777934290
Merge pull request #11316 from erik-krogh/examplesComp
...
CI: Also compile the `examples` folder
2022-11-18 12:29:03 +01:00
Mathias Vorreiter Pedersen
1e14af6e64
C++: Fix join in 'cpp/upcast-array-pointer-arithmetic'.
2022-11-18 10:19:55 +00:00
erik-krogh
7c091fa6cd
also compile the examples folders as part of the compilation check
2022-11-18 10:31:42 +01:00
erik-krogh
23dc977d48
add a severity to incompleteswitchoverenum.ql to fix a compiler warning
2022-11-18 10:29:42 +01:00
Taus
e76ab8c78c
Merge branch 'main' into python-clean-up-import-resolution
2022-11-17 22:47:50 +00:00
erik-krogh
468a879c1f
Python: delete dead code. thanks QL-for-QL
2022-11-17 22:12:51 +01:00
erik-krogh
ba2734909f
JS: don't use deprecated files in tests
2022-11-17 22:12:50 +01:00
erik-krogh
3635db8244
JS: delete the deprecated [queryName].qll files
2022-11-17 22:12:50 +01:00
erik-krogh
635b8772d7
JS: delete old deprecations
2022-11-17 22:12:50 +01:00
erik-krogh
e491b61e09
Python: move the contents of PEP249Impl to PEP249, which is possible now that the deprecations have been deleted
2022-11-17 22:12:50 +01:00
erik-krogh
a7ba693ccb
Python: delete old deprecations
2022-11-17 22:12:50 +01:00
erik-krogh
a4e5d752e1
Java: delete old deprecations
2022-11-17 22:12:50 +01:00
erik-krogh
d5ec781d4c
C#: delete old deprecations
2022-11-17 22:12:50 +01:00
erik-krogh
a5a244fc53
CPP: delete old deprecations
2022-11-17 22:12:50 +01:00
Chris Smowton
e83cc59cba
Merge pull request #11296 from smowton/smowton/fix/kotlin-string-literal-formatting
...
Kotlin: format string literals like the Java annotaton extractor
2022-11-17 20:04:09 +00:00