Paolo Tranquilli
e4766b60c3
Rust: make QL test crates workspaces
2024-09-11 11:29:04 +02:00
Paolo Tranquilli
8bf3c42213
Merge branch 'main' into rust-experiment
2024-09-11 11:06:24 +02:00
Paolo Tranquilli
d8db0e43da
Ruby: update new cargo target directory in make and actions
2024-09-11 11:01:10 +02:00
Paolo Tranquilli
aa6726a401
Bazel: bump up rules_rust version
2024-09-11 10:43:49 +02:00
Geoffrey White
d374935008
Merge pull request #17384 from microsoft/brodes/overflow-buffer-fixes-upstream
...
Brodes/overflow buffer fixes upstream
2024-09-11 09:12:22 +01:00
Paolo Tranquilli
f624a1b7a7
Ruby: fix extractor pack script after workspace root change
2024-09-11 09:40:44 +02:00
Paolo Tranquilli
2a7533c441
Rust: add to `labeler.yml
2024-09-11 09:33:43 +02:00
Paolo Tranquilli
304e68df30
Merge pull request #17426 from geoffw0/readme
...
Rust: Add a README.md
2024-09-11 09:26:27 +02:00
Paolo Tranquilli
f464759eb3
Merge pull request #17434 from github/redsun82/rust-experiment
...
Bazel: remove non-working fake `tree-sitter-extractor` workaround
2024-09-11 09:14:59 +02:00
Paolo Tranquilli
f8c9d96882
Bazel: remove non-working fake tree-sitter-extractor workaround
...
The `.cargo/config.toml` override based workaround wasn't really
working, as while `cargo build|check` was reading that, `cargo metadata`
wasn't, ending up in a completely broken IDE experience.
For the moment, we just use a unified workspace `Cargo.toml` for all
extractors using the shared tree-sitter code, which has the downside of
making bazel pull in dependencies for all of them, and not being able to
do sparse checkouts for them. We should investigate and rivist this in
the future.
2024-09-11 08:17:11 +02:00
Ben Rodes
58779e1b90
Merge branch 'main' into brodes/overflow-buffer-fixes-upstream
2024-09-10 13:46:24 -04:00
Jeroen Ketema
4c8aec0db5
Merge pull request #17421 from jketema/fix-except-inconsistency
...
C++: Fix IR inconsistency due to throwing `__except` block
2024-09-10 18:37:10 +02:00
Geoffrey White
7c95bb243e
Rust: Update example path.
2024-09-10 17:09:51 +01:00
Geoffrey White
6b0d7bcda8
Rust: Remove repo warning because we're merging into main real soon now...
2024-09-10 17:08:11 +01:00
Paolo Tranquilli
4f90f5fb4c
Rust: accept test changes
2024-09-10 17:36:18 +02:00
Paolo Tranquilli
d04f0200e2
Rust: skip change note check for now
2024-09-10 17:35:53 +02:00
Arthur Baars
00bc40765c
Merge pull request #17427 from github/aibaars/rust-experiment
...
Fix definition of trap compression option
2024-09-10 17:15:04 +02:00
Arthur Baars
d6d52a97a2
Fix definition of trap compression option
...
unless the -Oextract_dependencies=true flag is supplied
2024-09-10 17:13:49 +02:00
Paolo Tranquilli
9c8f6145ab
Merge pull request #17408 from github/aibaars/rust-experiment
...
Rust: add partial extractor for Expr, Statement, Pattern
2024-09-10 17:09:47 +02:00
Geoffrey White
d9a37119f8
Update rust/README.md
...
Co-authored-by: Paolo Tranquilli <redsun82@github.com >
2024-09-10 16:04:22 +01:00
Geoffrey White
ac9afea75e
Rust: Add experimental warning and Bazelisk link.
2024-09-10 16:02:53 +01:00
Arthur Baars
bffdf2b179
Replace println with log statements
2024-09-10 16:59:32 +02:00
Arthur Baars
f37b4aebc2
Only extract function bodies for local crates,
...
unless the -Oextract_dependencies=true flag is supplied
2024-09-10 16:49:13 +02:00
Arthur Baars
43e54fb0ae
Use custom target folder
2024-09-10 16:49:12 +02:00
Geoffrey White
8213bbb14a
Rust: Add a README.md
2024-09-10 15:47:40 +01:00
Arthur Baars
1e830dad1a
Add ra_ap_paths dependency
2024-09-10 15:14:36 +02:00
Chuan-kai Lin
ba5218dfc0
Merge pull request #17420 from github/cklin/upgrade-properties-fix
...
C#: Fix trivial upgrade.properties errors
2024-09-10 06:11:23 -07:00
Paolo Tranquilli
26b9de3d63
Merge branch 'main' into rust-experiment
2024-09-10 15:00:20 +02:00
Jeroen Ketema
5f4fee0780
C++: Address review comments
2024-09-10 14:23:10 +02:00
Arthur Baars
a5d1d9e167
Make implementation more complete
...
Use Unimplemented to mark AstNodes that need implementing
2024-09-10 14:13:05 +02:00
Jeroen Ketema
500a2a0738
C++: Fix IR inconsistency due to throwing __except block
...
The fix consists of three parts:
* Ensure that an `Unwind` instruction is generated for functions that contain
a Microsoft `__try` statement, or a function that must throw.
* Do not manually introduce `Unwind` instructions for `__except` blocks, but
depend on the `Unwind` that we now insert in the function.
* Add missing `getExceptionSuccessorInstruction` predicate to
`TranslatedMicrosoftTryExceptHandler`
2024-09-10 12:41:43 +02:00
Arthur Baars
2ae725784c
Don't use _ to ignore things so rustc will show warnings for all the gaps in the implementation
2024-09-10 12:26:56 +02:00
Arthur Baars
b2451c6667
Improve schema
2024-09-10 12:26:54 +02:00
Arthur Baars
46bfefc99a
Address comments
2024-09-10 12:26:53 +02:00
Paolo Tranquilli
ef06b555c1
Rust: accept test changes
2024-09-10 11:29:54 +02:00
Jeroen Ketema
90f7b30997
Merge pull request #17418 from jketema/throw-inconsistent
...
C++: Add IR inconsistency test
2024-09-10 11:07:16 +02:00
Paolo Tranquilli
437b671035
Merge branch 'rust-experiment' into aibaars/rust-experiment
...
Also fixed conflicts and applied linting (can be done via
`rust/lint.py` or `pre-commit` configuration).
2024-09-10 10:24:49 +02:00
Paolo Tranquilli
38c25f96e5
Rust: add linting pre-commit hook
2024-09-10 10:22:45 +02:00
Paolo Tranquilli
37afad2f70
Merge pull request #17410 from github/redsun82/rust-ci
...
Rust: set up `codeql` CI
2024-09-10 10:04:24 +02:00
Chuan-kai Lin
fae180f612
C#: Fix trivial upgrade.properties errors
2024-09-09 13:33:04 -07:00
Jeroen Ketema
dfa16423c0
C++: Add IR inconsistency test
2024-09-09 21:50:42 +02:00
Jeroen Ketema
6e0b5bcb63
Merge pull request #17414 from MathiasVP/add-more-try-except-testcases
...
C++: Add more IR inconsistency tests
2024-09-09 18:10:42 +02:00
Mathias Vorreiter Pedersen
353cd8cc74
C++: Add more IR inconsistency tests.
2024-09-09 16:37:55 +01:00
Arthur Baars
42b1112be6
Rust: add default Element::toString
2024-09-09 15:05:04 +02:00
Arthur Baars
20ca8801e6
Revert "Rust: PrintAstNode: tolerate elements without toString"
...
This reverts commit 85e51bf0ec .
2024-09-09 15:01:32 +02:00
Arthur Baars
61592a3256
Rust: fix locations
...
In QL locations are 1-based inclusive ranges. The locations is rust are 0-based
and the end position is exclusive.
To patch things up, subtract 1 from the end offset and add 1 to all line and column numbers.
2024-09-09 14:56:37 +02:00
Jeroen Ketema
1250e72ebb
Merge pull request #17399 from jketema/simplify
...
C++: Re-introduce the original version of the `many_defs_per_use` IR test
2024-09-09 14:18:19 +02:00
Paolo Tranquilli
6f36ea9188
Merge branch 'main' into rust-experiment
...
Conflicts:
shared/tree-sitter-extractor/src/trap.rs
2024-09-09 14:15:34 +02:00
Paolo Tranquilli
f1cd9211e7
Merge pull request #17407 from github/redsun82/rust-extractor-generalize-location-cache
...
Tree-sitter: allow multiple sources per trap file
2024-09-09 14:12:33 +02:00
Arthur Baars
86215b4f02
Rename IfLet to IfStmt
2024-09-09 13:33:17 +02:00