Skip to content

Commit f40fcf1

Browse files
authored
Merge branch 'main' into cpp-overflowcalculated-wchar-t-buffer-overrun
2 parents 34cc7f2 + d83cbde commit f40fcf1

File tree

394 files changed

+66499
-13551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

394 files changed

+66499
-13551
lines changed
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: Codegen
1+
name: Python tooling
22

33
on:
44
pull_request:
55
paths:
66
- "misc/bazel/**"
77
- "misc/codegen/**"
8+
- "misc/scripts/models-as-data/bulk_generate_mad.py"
89
- "*.bazel*"
910
- .github/workflows/codegen.yml
1011
- .pre-commit-config.yaml
@@ -17,17 +18,14 @@ permissions:
1718
contents: read
1819

1920
jobs:
20-
codegen:
21+
check-python-tooling:
2122
runs-on: ubuntu-latest
2223
steps:
2324
- uses: actions/checkout@v4
24-
- uses: actions/setup-python@v4
25-
with:
26-
python-version-file: 'misc/codegen/.python-version'
2725
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
2826
name: Check that python code is properly formatted
2927
with:
30-
extra_args: autopep8 --all-files
28+
extra_args: black --all-files
3129
- name: Run codegen tests
3230
shell: bash
3331
run: |

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ repos:
1414
hooks:
1515
- id: clang-format
1616

17-
- repo: https://github.com/pre-commit/mirrors-autopep8
18-
rev: v2.0.4
17+
- repo: https://github.com/psf/black
18+
rev: 25.1.0
1919
hooks:
20-
- id: autopep8
21-
files: ^misc/codegen/.*\.py
20+
- id: black
21+
files: ^(misc/codegen/.*|misc/scripts/models-as-data/bulk_generate_mad)\.py$
2222

2323
- repo: local
2424
hooks:

cpp/bulk_generation_targets.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: cpp
2+
strategy: dca
3+
destination: cpp/ql/lib/ext/generated
4+
targets:
5+
- name: zlib
6+
with-sinks: false
7+
with-sources: false
8+
- name: brotli
9+
with-sinks: false
10+
with-sources: false
11+
- name: libidn2
12+
with-sinks: false
13+
with-sources: false
14+
- name: libssh2
15+
with-sinks: false
16+
with-sources: false
17+
- name: sqlite
18+
with-sinks: false
19+
with-sources: false
20+
- name: openssl
21+
with-sinks: false
22+
with-sources: false
23+
- name: nghttp2
24+
with-sinks: false
25+
with-sources: false
26+
- name: libuv
27+
with-sinks: false
28+
with-sources: false
29+
- name: curl
30+
with-sinks: false
31+
with-sources: false
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class LambdaExpr extends @lambdaexpr {
2+
string toString() { none() }
3+
}
4+
5+
from LambdaExpr lambda, string default_capture, boolean has_explicit_return_type
6+
where lambdas(lambda, default_capture, has_explicit_return_type, _)
7+
select lambda, default_capture, has_explicit_return_type

0 commit comments

Comments
 (0)