Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2198 commits
Select commit Hold shift + click to select a range
865e5df
JS: convert data extensions to JSON
nickrolfe Nov 10, 2026
606aed2
JS: convert test data extensions to JSON
nickrolfe Nov 10, 2026
c6be2b8
Merge pull request #23061 from github/nickrolfe/json-data-extensions-…
nickrolfe Nov 10, 2026
a219774
Merge pull request #23060 from github/nickrolfe/json-data-extensions-…
nickrolfe Nov 10, 2026
2bde17c
Python: convert data extensions to JSON
nickrolfe Nov 10, 2026
497b803
Python: convert test data extensions to JSON
nickrolfe Nov 10, 2026
281f38c
Package original Swift shared libraries instead of solib artifacts
jketema Nov 9, 2026
0d48a53
Merge branch 'main' into dependabot/bazel/rules_pkg-1.3.0
jketema Nov 10, 2026
f2947c2
Go: convert data extensiosn to JSON
nickrolfe Nov 10, 2026
d5ac503
Go: convert test data extensions to JSON
nickrolfe Nov 10, 2026
c497045
C++: Add `compilation` column to `fileannotations`
jketema Oct 23, 2026
dbb7195
C++: Update `File.qll`
jketema Oct 23, 2026
dfb9808
C++: Add upgrade and downgrade scripts
jketema Oct 23, 2026
70cbf30
C++: Update stats file
jketema Oct 26, 2026
25b0d64
Merge branch 'main' into codex/fix-missing-check-scanf
geoffw0 Nov 10, 2026
e6205e0
yeast: Document interpolation context detection
tausbn Nov 10, 2026
5c1a775
Rust: convert data extensions to JSON
nickrolfe Nov 10, 2026
722799f
Rust: convert test data extensions to JSON
nickrolfe Nov 10, 2026
0b3583b
Add reactor.core.publisher.model.json for java
knewbury01 Nov 10, 2026
0eb81a5
Add tests and stubs for java reactor-core
knewbury01 Nov 10, 2026
ccc0349
Merge pull request #23030 from baywet/fix-python-await-side-effects
tausbn Nov 10, 2026
e9d9e68
C#: Update .NET 11 RC3 integration test to .NET 11.
michaelnebel Nov 11, 2026
2bcaf8b
Merge pull request #22866 from hvitved/unified/type-inference-nested-…
hvitved Nov 11, 2026
dcdd612
Merge pull request #23070 from aschackmull/ssa/expr-refactor2
aschackmull Nov 11, 2026
a21384f
unified: Auto format local name binding test
asgerf Oct 30, 2026
8ef15ee
unified: Add test where function and its parameter have the same name
asgerf Oct 30, 2026
962949c
unified: Fix a TODO
asgerf Oct 30, 2026
e824488
unified: Let bindingContext dictate resolution for name bindings
asgerf Oct 30, 2026
3d21281
unified: Exclude name bindings from resolution
asgerf Oct 30, 2026
ca29aaa
unified: Ensure parameter defaults resolve correctly
asgerf Oct 30, 2026
60a4adb
unified: Simplify getChild
asgerf Oct 30, 2026
46ad400
Merge main into unified/swift-some-or-any-type
paldepind Nov 11, 2026
026b68e
unified: Fix resolution of 'super' to 'self'
asgerf Nov 11, 2026
2d23b7f
Merge pull request #23040 from github/sam-robson/js-await-using-call
sam-robson Nov 11, 2026
5c714f2
Merge pull request #23056 from github/unified/actor-decl
paldepind Nov 11, 2026
b37f9db
Merge pull request #23057 from github/unified/swift-some-or-any-type
paldepind Nov 11, 2026
8e895bc
Merge pull request #23053 from github/rust/lint
paldepind Nov 11, 2026
4904b25
Merge main into unified/conditional-compilation
paldepind Nov 11, 2026
8a6c3cc
Disable implicit Python initializer generation
jketema Nov 11, 2026
cedfdeb
Enable Clippy's pedantic lints
paldepind Nov 11, 2026
b3552c5
Fix all results of the Clippy lint `cloned_instead_of_copied`
paldepind Nov 10, 2026
5ae3fa9
Fix all results of the Clippy lint `implicit_clone`
paldepind Nov 10, 2026
e3c310e
Fix all results of the Clippy lint `single_match_else`
paldepind Nov 10, 2026
7941191
Fix all results of the Clippy lint `uninlined_format_args`
paldepind Nov 10, 2026
71ef28c
Fix all results of the Clippy lint `map_unwrap_or`
paldepind Nov 10, 2026
fd386a1
Fix all results of the Clippy lint `manual_string_new`
paldepind Nov 11, 2026
bac4c43
Fix all results of the Clippy lint `needless_continue`
paldepind Nov 11, 2026
c522fd2
Fix all results of the Clippy lint `match_same_arms`
paldepind Nov 11, 2026
e98c562
Fix all results of the Clippy lint `unnecessary_literal_bound`
paldepind Nov 11, 2026
17db5e1
Fix all results of the Clippy lint `elidable_lifetime_names`
paldepind Nov 11, 2026
26b709e
Merge pull request #23079 from github/nickrolfe/json-data-extensions-go
nickrolfe Nov 11, 2026
5313f23
Merge pull request #23074 from github/nickrolfe/json-data-extensions-js
nickrolfe Nov 11, 2026
2e84acc
Merge pull request #22964 from github/tausbn/yeast-isolate-interpolat…
tausbn Nov 11, 2026
b39bcd9
Unified: Populate `external_name_node` for enum case parameters
hvitved Nov 11, 2026
b03995f
Fix all results of the Clippy lint `doc_markdown`
paldepind Nov 11, 2026
6b00a37
Fix all results of the Clippy lint `unnecessary_join`
paldepind Nov 11, 2026
c287799
Fix all results of the Clippy lint `needless_raw_string_hashes`
paldepind Nov 11, 2026
52e9f50
Fix all results of the Clippy lint `non_std_lazy_statics`
paldepind Nov 11, 2026
ae96ca1
Fix all results of the Clippy lint `manual_assert`
paldepind Nov 11, 2026
925a390
Fix all results of the Clippy lint `trivially_copy_pass_by_ref`
paldepind Nov 11, 2026
9e71fdb
Fix all results of the Clippy lint `flat_map_option`
paldepind Nov 11, 2026
5ef41d3
Fix all results of the Clippy lint `ref_option`
paldepind Nov 11, 2026
3154453
Fix all results of the Clippy lint `semicolon_if_nothing_returned`
paldepind Nov 11, 2026
207cc35
Fix all results of the Clippy lint `unnecessary_semicolon`
paldepind Nov 11, 2026
d1f084a
Fix all results of the Clippy lint `return_self_not_must_use`
paldepind Nov 11, 2026
43105fb
Fix all results of the Clippy lint `match_wildcard_for_single_variants`
paldepind Nov 11, 2026
a8a1559
Fix all results of the Clippy lint `assigning_clones`
paldepind Nov 11, 2026
187a969
Fix all results of the Clippy lint `needless_pass_by_value`
paldepind Nov 11, 2026
dfb6712
Fix all results of the Clippy lint `format_push_string`
paldepind Nov 11, 2026
c772de8
Ignore all results of the Clippy lint `too_many_lines`
paldepind Nov 11, 2026
6f3da0d
Fix all results of the Clippy lint `single_char_pattern`
paldepind Nov 11, 2026
7a3af00
Fix all results of the Clippy lint `unused_self`
paldepind Nov 11, 2026
f9fa4d2
Fix all results of the Clippy lint `explicit_into_iter_loop`
paldepind Nov 11, 2026
c5edcc8
Fix all results of the Clippy lint `unnecessary_debug_formatting`
paldepind Nov 11, 2026
733f0a4
Fix all results of the Clippy lint `missing_fields_in_debug`
paldepind Nov 11, 2026
65ef484
Fix all results of the Clippy lint `unreadable_literal`
paldepind Nov 11, 2026
96b6fb0
Fix all results of the Clippy lint `struct_field_names`
paldepind Nov 11, 2026
4957f2c
Fix all results of the Clippy lint `default_trait_access`
paldepind Nov 11, 2026
29cfb3a
modelgenerator: default to generating JSON
nickrolfe Nov 11, 2026
9d4873f
Ignore all results of the Clippy lint `unicode_not_nfc`
paldepind Nov 11, 2026
f10e095
Fix all results of the Clippy lint `items_after_statements`
paldepind Nov 11, 2026
6df1ef1
Allow select Clippy rules
paldepind Nov 11, 2026
28482d5
Remove unused `lazy_static` dependency
paldepind Nov 11, 2026
0f13def
Merge pull request #23087 from github/nickrolfe/json-data-extensions-…
nickrolfe Nov 11, 2026
94ab67b
Merge pull request #23093 from github/jketema/py-init
jketema Nov 11, 2026
d5f0a05
Apply batched suggestions from code review
owen-mc Nov 11, 2026
81fd3a5
Actions: convert data extensions to JSON
nickrolfe Nov 11, 2026
8d5654f
Actions: convert test data extensions to JSON
nickrolfe Nov 11, 2026
74d0183
Merge pull request #23096 from hvitved/unified/enum-case-external-name
hvitved Nov 11, 2026
454adf5
Unified: convert data extensions to JSON
nickrolfe Nov 11, 2026
1a8badc
Unified: convert test data extensions to JSON
nickrolfe Nov 11, 2026
674eaa4
Actions: update name of data extension file in .expected output
nickrolfe Nov 11, 2026
e1a9908
Merge pull request #22926 from github/dependabot/bazel/rules_pkg-1.3.0
jketema Nov 11, 2026
d2380e1
Add more tests
owen-mc Nov 11, 2026
60f3bad
Swift: refresh ReDoS query help references
geoffw0 Nov 11, 2026
b517fa7
Merge pull request #22899 from jketema/jketema/fileannotations
jketema Nov 11, 2026
e2efa07
Merge pull request #23099 from github/nickrolfe/json-data-extensions-…
nickrolfe Nov 11, 2026
5dcc1b0
Swift: refresh cleartext database help reference
geoffw0 Nov 11, 2026
0fbe6e5
Unified: Add borrow expression corpus test
paldepind Nov 11, 2026
7862a67
Unified: Support Swift `borrow`, `consume`, `copy`, and `unsafe` expr…
paldepind Nov 11, 2026
f0464e8
Type inference: Consistency check for escaping type parameters
hvitved Oct 30, 2026
2035f20
Rust: Accept inconsistencies
hvitved Nov 2, 2026
2b1d163
Swift: Update cleartext transmission help reference.
geoffw0 Nov 11, 2026
183acd4
Fix reference title for ReDoS attack
geoffw0 Nov 11, 2026
fbf9fca
Merge pull request #23101 from github/nickrolfe/json-data-extensions-…
nickrolfe Nov 11, 2026
f666675
Swift: Qhelp consistency - dashes.
geoffw0 Nov 11, 2026
eaaf828
Various: Qhelp consistency - paper title.
geoffw0 Nov 11, 2026
99c418b
Various: Fix other copies of the same links.
geoffw0 Nov 11, 2026
487ea1e
yeast: Accept ranges in location overrides
tausbn Nov 11, 2026
2606c67
C++: cover scanf review edge cases and simplify output check
SkyCipherr Nov 12, 2026
8b6b25b
JS: Apply review suggestions for shell argument modeling
vishalshetagar Nov 12, 2026
f55d649
Merge pull request #22992 from github/unified/conditional-compilation
paldepind Nov 12, 2026
9ef6569
unified: Add test
asgerf Nov 12, 2026
18a2c9b
Merge pull request #23071 from aschackmull/ssa/makessa-reads
aschackmull Nov 12, 2026
a08e2bb
Merge pull request #22703 from Alex-Hofer/python-mcp-models
owen-mc Nov 12, 2026
721743f
Merge pull request #23091 from michaelnebel/csharp/dotnet11
michaelnebel Nov 12, 2026
a7925dc
Merge pull request #22960 from asgerf/unified/func-param-clash
asgerf Nov 12, 2026
71b1850
unified: Restrict taint reach metric to local and remote sources
asgerf Nov 7, 2026
55cbe32
unified: Add inferBaseType and inferVariableType
asgerf Oct 30, 2026
00cfc7f
unified: Initial support for properties in MaD
asgerf Nov 6, 2026
293652e
unified: Remove TODO comment from CommandInjection
asgerf Nov 6, 2026
e460c3b
unified: Add test without stub declarations
asgerf Nov 6, 2026
74a288d
Merge pull request #23103 from github/tausbn/yeast-range-locations
tausbn Nov 12, 2026
62e936a
unified: Restrict injection queries to local/remote sources
asgerf Nov 3, 2026
67426cd
unified: Track types from models in static name binding
asgerf Nov 4, 2026
dbf8de7
unified: Track references to model types in type inference
asgerf Nov 4, 2026
b810abe
unified: Include references to class declaration
asgerf Nov 6, 2026
27230e9
unified: Update test output after rebasing
asgerf Nov 6, 2026
26f0dc4
unified: Use TypeSelector for constructor matching
asgerf Nov 6, 2026
0eda8ed
unified: Match property base using type selectors
asgerf Nov 6, 2026
8655d25
unified: Make ExprPositions aware of types from models
asgerf Nov 6, 2026
c2d9498
unified: Seed type inference with constructor calls from model
asgerf Nov 6, 2026
e835afc
unified: Ensure unique type representative
asgerf Nov 6, 2026
323c3e9
unified: Update path injection results
asgerf Nov 6, 2026
ede7888
unified: Add regression test for extension targeting model type
asgerf Nov 7, 2026
2aafb65
unified: Do not return extensions in getDeclaration()
asgerf Nov 7, 2026
e8082e7
unified: Add regression tests for implicit 'self' access
asgerf Nov 7, 2026
a41f207
unified: Avoid setting type context if expr resolves to a value
asgerf Nov 9, 2026
b6ad333
Model type-switch implicit variable declarations as IR writes
owen-mc Nov 12, 2026
8011cb1
Instantiate shared MakeSsa in Go SsaImpl
owen-mc Nov 12, 2026
5ce1eb9
Migrate Go to shared SSA classes
owen-mc Nov 12, 2026
c092447
Add test for Go SSA explicit and implicit reads
owen-mc Nov 12, 2026
8ba1450
Add change note for Go shared SSA migration
owen-mc Nov 12, 2026
7cff658
Merge pull request #22804 from SkyCipherr/codex/fix-missing-check-scanf
geoffw0 Nov 12, 2026
e7825e3
Rust: More type inference tests
hvitved Nov 11, 2026
010928e
Docs: simplify the access path limit section
yuan2li Nov 12, 2026
7b9ee04
Merge pull request #22985 from geoffw0/unifiedformat
geoffw0 Nov 12, 2026
b447a9e
C++: Add test with duplicated 'asExpr' results.
MathiasVP Nov 12, 2026
aed02aa
C++: Make sure 'asExpr' only has a result for the 'PostUpdateNode' wh…
MathiasVP Nov 12, 2026
3afb1b5
Kotlin: update test compiler and document 2.4.2x support
andersfugmann Nov 11, 2026
98ce0a2
Add expected file reactor-core/test.expected
knewbury01 Nov 12, 2026
e321360
Address review comments
owen-mc Nov 12, 2026
7be762e
C++: Small cleanup on FlowSummaryImpl.qll
MathiasVP Nov 12, 2026
68991eb
fix(python): match argument positions and parameter names in py/tarsl…
sam-robson Nov 12, 2026
b30d7b4
Add changenote
knewbury01 Nov 12, 2026
7315816
yeast: Require context for template lowering
tausbn Nov 12, 2026
bbe8ad1
yeast: Add schema-bound tree entry points
tausbn Nov 12, 2026
e520a2e
yeast: Add tree schema namespaces
tausbn Nov 12, 2026
342e0a9
yeast: Use schema-bound builders in tests
tausbn Nov 12, 2026
eff504a
unified: Use schema-bound YEAST builders
tausbn Nov 12, 2026
dd10111
yeast: Document schema-bound builders
tausbn Nov 12, 2026
65b401a
yeast: Remove schema-less tree builders
tausbn Nov 12, 2026
a9329b0
yeast: Add explicit-context tree builders
tausbn Nov 12, 2026
d1caf2a
Merge pull request #23088 from knewbury01/knewbury01/add-mono-api-mad…
owen-mc Nov 12, 2026
18becf8
Add changed framework coverage reports
github-actions[bot] Nov 13, 2026
63a4609
Merge pull request #22978 from vishalshetagar/fix/js-shell-command-ar…
asgerf Nov 13, 2026
c044422
Docs: Define commit message conventions
paldepind Nov 13, 2026
e42b6ac
Fix all results of the Rust lint `redundant_imports`
paldepind Nov 13, 2026
09cab3a
Fix all results of the Clippy lint `if_then_some_else_none`
paldepind Nov 13, 2026
add3693
Fix all results of the Clippy lint `unneeded_field_pattern`
paldepind Nov 13, 2026
b35c952
Merge pull request #23119 from github/sam-robson/py-tarslip-sink-args
sam-robson Nov 13, 2026
749813a
Merge pull request #23092 from github/andersfugmann/kotlin-2-4-21-sup…
andersfugmann Nov 13, 2026
162de33
fix(js): stop treating parseInt and parseFloat as whole-string number…
sam-robson Nov 12, 2026
188940a
Fix all results of the Clippy lint `redundant_type_annotations`
paldepind Nov 13, 2026
2e7188f
Fix all results of the Clippy lint `clone_on_ref_ptr`
paldepind Nov 13, 2026
59bdf0b
Fix all results of the Clippy lint `undocumented_unsafe_blocks`
paldepind Nov 13, 2026
0ec9b74
Fix all results of the Clippy lint `too_long_first_doc_paragraph`
paldepind Nov 13, 2026
de17919
Fix all results of the Clippy lint `renamed_function_params`
paldepind Nov 13, 2026
f8c436e
Fix all results of the Clippy lint `empty_structs_with_brackets`
paldepind Nov 13, 2026
23ee316
Ignore all results of the Clippy lint `empty_enum_variants_with_brack…
paldepind Nov 13, 2026
97355e0
Enable additional lints
paldepind Nov 13, 2026
c11c0e7
Merge pull request #23118 from MathiasVP/flow-summary-source-node-cle…
MathiasVP Nov 13, 2026
515e1df
Fix all results of the Clippy lint `redundant_clone`
paldepind Nov 13, 2026
89781cf
Fix all results of the Clippy lint `or_fun_call`
paldepind Nov 13, 2026
7eda049
Merge pull request #23122 from github/workflow/coverage/update
owen-mc Nov 13, 2026
f648e70
Fix all results of the Clippy lint `collection_is_never_read`
paldepind Nov 13, 2026
b6347a6
Fix all results of the Clippy lint `needless_pass_by_ref_mut`
paldepind Nov 13, 2026
7e8b00f
Fix all results of the Clippy lint `unnecessary_struct_initialization`
paldepind Nov 13, 2026
e7a5efb
Fix all results of the Clippy lint `derive_partial_eq_without_eq`
paldepind Nov 13, 2026
1317435
fix(js): preserve parseInt and parseFloat guard for prototype pollution
sam-robson Nov 13, 2026
4a8c7cc
Unified: Add tests for `borrow`, `consume`, `copy`, and `unsafe`
paldepind Nov 13, 2026
1c4fea9
Type inference: Reduce code duplication
hvitved Nov 11, 2026
8a3d388
Type inference: Fix bad join following refactoring
hvitved Nov 11, 2026
d23bbc4
Merge pull request #23121 from github/sam-robson/js-isnumberguard-par…
sam-robson Nov 13, 2026
94cb719
Merge pull request #23072 from hvitved/type-inference-share
hvitved Nov 13, 2026
a96db3d
Merge pull request #23125 from github/docs/commit-message-conventions
paldepind Nov 13, 2026
deefa80
Rust: More data flow tests
hvitved Nov 13, 2026
7792dd0
Rust: Prevent MaD suppression for heuristic call-back summary
hvitved Nov 13, 2026
a6af179
Merge pull request #23116 from MathiasVP/fix-gl-value-as-expr-step-1
MathiasVP Nov 13, 2026
6f9cdeb
Unified: Add data flow throug `borrow`, `consume`, `copy`, and `unsafe`
paldepind Nov 13, 2026
a25b55c
Merge pull request #22857 from owen-mc/go/make-ssa
owen-mc Nov 13, 2026
d16b864
Revert "Fix all results of the Clippy lint `match_same_arms`"
paldepind Nov 13, 2026
eb4cc77
Disable `match_same_arms` lint
paldepind Nov 13, 2026
1938c82
Revert "Fix all results of the Clippy lint `struct_field_names`"
paldepind Nov 13, 2026
aaee2b3
Disable `struct_field_names` lint
paldepind Nov 13, 2026
379a161
Address comments from review
paldepind Nov 13, 2026
2fa146b
Ruby: Extract helper function for coding word
paldepind Nov 13, 2026
20ed648
Merge pull request #23047 from yuan2li/docs-java-access-path-limit
owen-mc Nov 13, 2026
ef00148
Merge branch 'main' into unifiedjseval
geoffw0 Nov 13, 2026
6d106ad
Unified: Re-add the models from the old .yml in the new .json.
geoffw0 Nov 13, 2026
2e2b727
Merge pull request #23095 from github/rust/more-lint
paldepind Nov 15, 2026
56c8ce0
Unified: Test type inference through modified expressions
paldepind Nov 15, 2026
be457d4
Go: Update to 1.27.4
github-actions[bot] Nov 16, 2026
276428f
Unified: Infer types through modified expressions
paldepind Nov 16, 2026
412c6e6
Unified: Move Swift type inference steps into the plugin
paldepind Nov 16, 2026
16f6306
Merge main into unified/modified-expr
paldepind Nov 16, 2026
3db2468
Merge pull request #23135 from github/workflow/go-version-update
jketema Nov 16, 2026
cfb40fb
Merge pull request #23126 from hvitved/rust/call-back-summary-no-supp…
hvitved Nov 16, 2026
3555b9b
Merge pull request #22998 from geoffw0/unifiedjseval
geoffw0 Nov 16, 2026
339e991
Merge pull request #23048 from asgerf/unified/property-models-rebased
asgerf Nov 16, 2026
a6359e4
Update the Rust development toolchain to 1.100.0
paldepind Nov 16, 2026
ee799c6
Bazel: Update the Rust nightly toolchain to 2026-11-16
paldepind Nov 16, 2026
bb75004
Merge pull request #23105 from geoffw0/qhelp
geoffw0 Nov 16, 2026
cc48290
Python: update model processing scripts to use JSON
nickrolfe Nov 12, 2026
c04c331
Apply Clippy and formatting fixes to Rust code
paldepind Nov 16, 2026
dd031f5
Merge pull request #23104 from github/unified/modified-expr
paldepind Nov 16, 2026
a5aee44
C#: Update the BMN BlazorTest to target .NET 11.
michaelnebel Nov 16, 2026
092239b
C#: Update BlazorTest expected output.
michaelnebel Nov 16, 2026
12a1fdd
Rust: Add data flow test for early `Err` return
hvitved Nov 16, 2026
00da887
Merge branch 'main' into tausbn/yeast-tree-schema
tausbn Nov 16, 2026
4f26ba6
yeast: Borrow interpolation bodies
tausbn Nov 16, 2026
162fd74
Cargo: Remove unused Rust dependencies
paldepind Nov 16, 2026
8804361
Merge pull request #23138 from michaelnebel/csharp/blazornet11test
michaelnebel Nov 16, 2026
7ee431f
Rust: Model early `Err` returns in `?` expressions
hvitved Nov 16, 2026
7c9518b
Merge pull request #23136 from github/rust/update-toolchains-1.100
paldepind Nov 16, 2026
1e066e5
Merge pull request #23120 from github/tausbn/yeast-tree-schema
tausbn Nov 16, 2026
57bace8
Merge pull request #22972 from hvitved/type-inference/type-param-esca…
hvitved Nov 16, 2026
2cbda8f
Specify CODEOWNERS for README and CODE_OF_CONDUCT
jonjanego Nov 16, 2026
763cee1
Bump golang.org/x/mod
dependabot[bot] Nov 17, 2026
dc6da75
Merge pull request #23148 from github/dependabot/go_modules/go/extrac…
jketema Nov 17, 2026
9aade85
Merge pull request #23141 from hvitved/rust/try-expr-err-early-return
hvitved Nov 17, 2026
fa0ee2c
Merge pull request #23097 from github/nickrolfe/model-generator-defau…
nickrolfe Nov 17, 2026
6f3b754
Merge pull request #23076 from github/nickrolfe/json-data-extensions-…
nickrolfe Nov 17, 2026
9ffea95
Merge pull request #23144 from github/update-markdown-reviewers
jonjanego Nov 17, 2026
d60380c
Python: add shared SSA adapter
yoff Nov 17, 2026
4ec0020
Python: activate shared CFG and SSA dataflow
yoff Nov 17, 2026
bea6f20
Python: preserve shared CFG guard semantics
yoff Nov 17, 2026
71a2104
Python: update shared dataflow regression output
yoff Nov 17, 2026
fee876d
Python: update truncated division result
yoff Nov 17, 2026
f6e989a
Python: adapt shared SSA reads to current API
yoff Nov 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 5 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ common --lockfile_mode=off
# Build release binaries by default, can be overwritten to in local.bazelrc and set to `fastbuild` or `dbg`
build --compilation_mode opt

# Preserve CodeQL's placeholder during rules_pkg variable substitution.
build --define=CODEQL_PLATFORM={CODEQL_PLATFORM}

# when building from this repository in isolation, the internal repository will not be found at ..
# where `MODULE.bazel` looks for it. The following will get us past the module loading phase, so
# that we can build things that do not rely on that
Expand Down Expand Up @@ -46,5 +49,7 @@ build --tool_java_language_version=17
build --tool_java_runtime_version=remotejdk_17
build --java_runtime_version=remotejdk_17
build --@rules_python//python/config_settings:python_version=3.12
# Disable legacy Python initializer generation, including in external build tools.
build --incompatible_default_to_explicit_init_py

try-import %workspace%/local.bazelrc
3 changes: 3 additions & 0 deletions .bazelrc.internal
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# this file should contain bazel settings required to build things from `semmle-code`

# Preserve CodeQL's placeholder during rules_pkg variable substitution.
build --define=CODEQL_PLATFORM={CODEQL_PLATFORM}

common --registry=file:///%workspace%/ql/misc/bazel/registry
common --registry=https://bcr.bazel.build

Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.0.0
9.3.1
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
/ruby/extractor/cargo-bazel-lock.json linguist-generated=true
/ruby/extractor/cargo-bazel-lock.json -merge

# GitHub Agentic Workflows compiled output
.github/workflows/*.lock.yml linguist-generated=true

# auto-generated files for the C# build
/csharp/paket.lock linguist-generated=true
# needs eol=crlf, as `paket` touches this file and saves it as crlf
Expand Down
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@ updates:
directory: "ruby"
schedule:
interval: "daily"
cooldown:
default-days: 7

- package-ecosystem: "cargo"
directory: "ql"
schedule:
interval: "daily"
cooldown:
default-days: 7

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
cooldown:
default-days: 7
ignore:
- dependency-name: '*'
update-types: ['version-update:semver-patch', 'version-update:semver-minor']
Expand All @@ -22,6 +28,8 @@ updates:
directory: "go/extractor"
schedule:
interval: "daily"
cooldown:
default-days: 7
allow:
- dependency-name: "golang.org/x/mod"
- dependency-name: "golang.org/x/tools"
Expand All @@ -36,6 +44,8 @@ updates:
directory: "go/ql/test"
schedule:
interval: "monthly"
cooldown:
default-days: 7
ignore:
- dependency-name: "*"
reviewers:
Expand All @@ -45,5 +55,7 @@ updates:
directory: "/"
schedule:
interval: weekly
cooldown:
default-days: 7
exclude-paths:
- "misc/bazel/registry/**"
2 changes: 1 addition & 1 deletion .github/instructions/expected-files.instructions.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
applyTo: "**/*.expected"
---
Ignore these files. These are generated to be correct by running the tests, and should not be edited manually.
Do not edit these files directly. They are generated by running the tests. If a `.expected` file has a non-empty `testFailures `section it should not be committed - you may want to update the inline expectation comments in the corresponding test source file (e.g. marking expected results as `MISSING` / `SPURIOUS`) then re-run the test.
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ Swift:
- swift/**/*
- change-notes/**/*swift*

Unified:
- unified/**/*
- change-notes/**/*unified*

Actions:
- actions/**/*
- change-notes/**/*actions*
Expand Down
174 changes: 174 additions & 0 deletions .github/skills/bazel/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
---
name: bazel
description: Conventions for editing Bazel files in the github/codeql repository: the shared `misc/bazel` helpers, `codeql_platform_select` and the `{CODEQL_PLATFORM}` packaging placeholder, adding `MODULE.bazel` dependencies, and the `semmle_code` stub that keeps the standalone build working. Use when editing any `BUILD.bazel`, `*.bzl`, `MODULE.bazel` or `.bazelrc` here, and before validating such an edit.
---

# Bazel in the codeql repository

A bzlmod module named `ql`, repo name `@codeql` ([`MODULE.bazel`](../../../MODULE.bazel)). It builds standalone, and is
also consumed by an internal module; standalone builds replace that module with a stub.

## Traps

Things that will waste your time or produce a wrong edit here. Read this section even if you skip the rest.

* **`//...` does not work.** `bazel build //...`, and even `bazel query //...`, fail at the repo root: the patched
modules under [`misc/bazel/registry`](../../../misc/bazel/registry) are real packages referencing repos that are not
visible from the main repo, and [`.bazelrc`](../../../.bazelrc) notes separately that transitions break `...` builds.
The error names a registry directory unrelated to your edit, so it is easy to misdiagnose. **Validate the specific
target or package you changed**, not a recursive pattern.
* **There is no `MODULE.bazel.lock`, deliberately.** [`.bazelrc`](../../../.bazelrc) sets `--lockfile_mode=off` because
the workspace-relative module override makes a lockfile unstable. Do not add one, and do not "fix" its absence.
* **`linux_arm64` vs `linux-arm64`.** The keyword argument and config setting use an underscore; the platform *string*
substituted into paths and zip names uses a hyphen. They are not interchangeable.
* **Do not stub your way out of a missing internal dependency.** See [Building standalone](#building-standalone) for the
one narrow case where extending the stub is correct.

## Conventions

* **Copy a neighboring target rather than inventing a shape.** Packaging is not uniform: some packages use the
`codeql_*` wrappers, others still use `pkg_files` directly. Copy the closest *working* neighbor, and prefer the
wrapper for new code.
* **Pin anything fetched over the network** with `sha256` or `integrity`. Bazel only *warns* on an unpinned download, so
nothing fails loudly, but the build stops being reproducible and a retagged upstream release silently changes what you
build. `lfs_archive` is the exception: content is pinned by git object.
* **Format with `bazel run //misc/bazel/buildifier`.** It rewrites in place, so do not hand-tune formatting. Also wired
as a `pre-commit` hook ([`.pre-commit-config.yaml`](../../../.pre-commit-config.yaml)).

## Where new code goes

Bazel's own macro / rule / repository-rule distinction applies as usual. What is repo-specific:

| Adding | Goes in |
| --- | --- |
| a new packaging shape | extend [`misc/bazel/pkg.bzl`](../../../misc/bazel/pkg.bzl), do not fork `pkg_files` |
| a new OS or arch split | [`misc/bazel/os.bzl`](../../../misc/bazel/os.bzl), do not hand-roll a `select()` over `@platforms//` |
| a fetch of something external | a repository rule ([`lfs.bzl`](../../../misc/bazel/lfs.bzl), [`ripunzip.bzl`](../../../misc/ripunzip/ripunzip.bzl)), not a `genrule` |
| a wrapper used by one language | next to that language ([`swift/rules.bzl`](../../../swift/rules.bzl)) |
| a wrapper used across languages | `misc/bazel/` |

Prefer inline rules in `BUILD.bazel`. A `.bzl` file earns its `load()` only when the shape repeats across packages or a
value must be computed: [`rust.bzl`](../../../misc/bazel/rust.bzl) is worth it because every Rust binary that ships in a
pack must get the same universal-binary wrapper and symbols test, and forgetting either is a release bug. A local
debugging aid opts out and declares a plain `rust_binary`; see `swift-syntax-parse` in
[`unified/swift-syntax-rs/BUILD.bazel`](../../../unified/swift-syntax-rs/BUILD.bazel). The `_gen_binaries` list in
[`go/BUILD.bazel`](../../../go/BUILD.bazel) does not earn a `.bzl`, because it is shared within a single file, where a
local variable does the job.

Macros here are typically a thin public wrapper around a private rule (`codeql_csharp_binary`, `swift_cc_binary`). Keep
the rule narrow and the ergonomics in the macro. Each macro decorates the caller's `name` to mint its helper targets,
for example `internal/<name>` or `single_arch/<name>`. Their visibility is that macro's choice (private, package
default, or the caller's own), so read the macro instead of assuming. When an error names a target you cannot find in
any source file, a macro minted it: grep the suffix under `misc/bazel/`.

## Shared helpers

Frequently-used pieces, so you load the existing one instead of rewriting it. Read the file for its actual exports.

| `load()` path | Covers |
| --- | --- |
| `//misc/bazel:pkg.bzl` | CodeQL packs and packaging |
| `//misc/bazel:os.bzl` | platform and architecture selection |
| `//misc/bazel:lfs.bzl` | on-demand git-LFS repositories |
| `//misc/bazel:rust.bzl` | Rust binary wrapper |
| `//misc/bazel:csharp.bzl` | C# binary/library/test wrappers |
| `//misc/bazel:utils.bzl` | `select_os`; prefer `os.bzl`'s `os_select` in new code |

[`defs.bzl`](../../../defs.bzl) at the root exports `codeql_platform` for *dependent* modules. It is not the way to get
the platform string here; use `os.bzl`.

## Platform selection

[`codeql_platform_select`](../../../misc/bazel/os.bzl) takes one keyword argument per CodeQL platform: `linux64`,
`linux_arm64`, `osx64` and `win64`. `otherwise` supplies the value for whichever of those you leave unset; it is **not**
a `//conditions:default`. If you only care about the OS, use `os_select`, which gives Linux the same value on both
architectures and has a `posix` shorthand for the shared Linux/macOS value.

In a macro (no `ctx`) it returns a `select()`:

```python
load("//misc/bazel:os.bzl", "codeql_platform_select")
load("//misc/bazel:pkg.bzl", "codeql_pkg_files")

codeql_pkg_files(
name = "extractor-arch",
exes = codeql_platform_select(
otherwise = ["//unified/extractor"],
win64 = ["//unified/extractor-unsupported-os:extractor"],
),
prefix = "tools/{CODEQL_PLATFORM}",
)
```

If implementation code needs to *branch* on the value rather than pass it through, pass `ctx` and add
`OS_DETECTION_ATTRS` to the rule's attributes. The value is then resolved eagerly instead of being an opaque `select()`:

```python
load("//misc/bazel:os.bzl", "OS_DETECTION_ATTRS", "os_select")

def _impl(ctx):
ext = os_select(ctx, windows = ".exe", posix = "")
...

my_rule = rule(
implementation = _impl,
attrs = {"src": attr.label()} | OS_DETECTION_ATTRS,
)
```

## Packs

`codeql_pack` assembles the files that become an extractor pack. See [`unified/BUILD.bazel`](../../../unified/BUILD.bazel)
for a minimal complete example and [`pkg.bzl`](../../../misc/bazel/pkg.bzl) for the arguments. The non-obvious parts:

* **`{CODEQL_PLATFORM}` in a destination path is the routing mechanism**, not just a substitution. A path containing it
is *arch-specific* and lands in the per-architecture zip; every other path is *common*. So `prefix =
"tools/{CODEQL_PLATFORM}"` both places the file and marks it arch-specific. `arch_overrides` forces named
destinations into the arch-specific part without a placeholder.
* **`codeql_pkg_files` splits `srcs` (plain) from `exes` (mode 755)** and **rejects `attributes =`** with an explicit
error. Use `exes` rather than hand-rolling `pkg_attributes(mode = "755")`.
* **`pkg_dirs` and `pkg_symlinks` are unsupported** and fail at analysis time.
* `codeql_pack` also generates an installer and an `install` alias, hence `bazel run //unified:install`. Pass
`installer_alias = None` if one package defines several packs.
* `codeql_pack_group` exists for bundling packs into distribution zips, but nothing in this repo instantiates it.

## Adding a dependency

In order of preference:

1. **A [Bazel Central Registry](https://registry.bazel.build/) module.** Add a `bazel_dep` in
[`MODULE.bazel`](../../../MODULE.bazel).
2. **A patched upstream module.** Add it under [`misc/bazel/registry`](../../../misc/bazel/registry), which `.bazelrc`
puts ahead of the BCR. Put patches in `modules/<repo>/<version>/patches`, rename the version with a `-codeql.N`
suffix, and run [`fix.py`](../../../misc/bazel/registry/fix.py) to realign the metadata.
3. **A raw archive.** Use `http_archive` via `use_repo_rule`, or a repository rule. Copy an adjacent declaration and
keep its checksum field populated.

Vendored Rust crates under [`misc/bazel/3rdparty`](../../../misc/bazel/3rdparty) are generated. Regenerate with
[`update_all_rust_deps.sh`](../../../misc/bazel/3rdparty/update_all_rust_deps.sh) rather than editing, and keep the
`use_repo` lists in sync, which `bazel mod tidy` does for module extensions.

## Building standalone

[`MODULE.bazel`](../../../MODULE.bazel) declares `semmle_code` with a `local_path_override` pointing at `..`, which
resolves when this repo is checked out inside the internal module. [`.bazelrc`](../../../.bazelrc), which Bazel reads
when invoked in *this* workspace, overrides that with a stub. This line is the whole reason a standalone build resolves:

```
common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub
```

Do not change either the override path or the `local_path_override`; they work as a pair.

[`misc/bazel/semmle_code_stub`](../../../misc/bazel/semmle_code_stub) is an otherwise empty module supplying no-op
versions of the internal helpers that shared `.bzl` files load *unconditionally*. That is its only job, and it is small
enough to read.

**Extend the stub only when a `.bzl` file every standalone target loads gains a new internal `load()`**, which breaks
package loading outright, for everyone. Prefer not needing one. **Never add a stub so that an internal-only target
appears to build**: some targets depend on internal libraries (`grep -rl @semmle_code --include=*.bazel` finds them) and
are correctly unbuildable here. Unlike a `load()`, such a dependency only fails when that target is actually requested.

[`.bazelrc.internal`](../../../.bazelrc.internal) is **not** read here; it carries settings for the internal build. A
setting needed by both has to be written in both files, with paths differing because this repo sits at a different depth
there.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.100
dotnet-version: 10.0.201

- name: Checkout repository
uses: actions/checkout@v5
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/cpp-bmn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: C/C++ build mode none extractor

on:
pull_request:
paths: &bmn_paths
- "cpp/extractor/bmn/**"
- "Cargo.toml"
- "Cargo.lock"
- "rust-toolchain.toml"
- "misc/bazel/3rdparty/rust_workspace_deps/**"
- "misc/bazel/3rdparty/rust_workspace_deps_extension.bzl"
- "misc/bazel/3rdparty/update_rust_workspace_deps.sh"
- "misc/bazel/3rdparty/BUILD.bazel"
- "misc/bazel/rust.bzl"
- "MODULE.bazel"
- ".github/workflows/cpp-bmn.yml"
push:
branches:
- main
- "rc/*"
paths: *bmn_paths

permissions:
contents: read

jobs:
cargo:
runs-on: ubuntu-latest
defaults:
run:
working-directory: cpp/extractor/bmn
steps:
- uses: actions/checkout@v5
- name: Check formatting
run: cargo fmt --check
- name: Check
run: cargo check
- name: Clippy
run: cargo clippy --all-targets --no-deps -- -D warnings
- name: Test
run: cargo test

bazel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Build
run: bazel build //cpp/extractor/bmn:bmn
- name: Test
run: bazel test //cpp/extractor/bmn:tests
18 changes: 13 additions & 5 deletions .github/workflows/csharp-qltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
paths:
- "csharp/**"
- "shared/**"
- "!shared/tree-sitter-extractor/**"
- "!shared/yeast/**"
- "!shared/yeast-macros/**"
- "!shared/yeast-schema/**"
- "misc/bazel/**"
- .github/actions/fetch-codeql/action.yml
- codeql-workspace.yml
Expand All @@ -16,6 +20,10 @@ on:
paths:
- "csharp/**"
- "shared/**"
- "!shared/tree-sitter-extractor/**"
- "!shared/yeast/**"
- "!shared/yeast-macros/**"
- "!shared/yeast-schema/**"
- "misc/bazel/**"
- .github/workflows/csharp-qltest.yml
- .github/actions/fetch-codeql/action.yml
Expand Down Expand Up @@ -43,14 +51,14 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.100
dotnet-version: 10.0.201
- name: Extractor unit tests
run: |
dotnet tool restore
dotnet test -p:RuntimeFrameworkVersion=10.0.0 extractor/Semmle.Util.Tests
dotnet test -p:RuntimeFrameworkVersion=10.0.0 extractor/Semmle.Extraction.Tests
dotnet test -p:RuntimeFrameworkVersion=10.0.0 autobuilder/Semmle.Autobuild.CSharp.Tests
dotnet test -p:RuntimeFrameworkVersion=10.0.0 autobuilder/Semmle.Autobuild.Cpp.Tests
dotnet test -p:RuntimeFrameworkVersion=10.0.5 extractor/Semmle.Util.Tests
dotnet test -p:RuntimeFrameworkVersion=10.0.5 extractor/Semmle.Extraction.Tests
dotnet test -p:RuntimeFrameworkVersion=10.0.5 autobuilder/Semmle.Autobuild.CSharp.Tests
dotnet test -p:RuntimeFrameworkVersion=10.0.5 autobuilder/Semmle.Autobuild.Cpp.Tests
shell: bash
stubgentest:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/csv-coverage-pr-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
git checkout HEAD^1
git log -1 --format='%H'
working-directory: base
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.12"
- name: Download CodeQL CLI
uses: ./merge/.github/actions/fetch-codeql
- name: Generate CSV files on merge commit of the PR
Expand Down
Loading
Loading