Skip to content

Commit 7ad49cf

Browse files
author
Dilan
committed
Merge tag 'codeql-cli/latest'
Compatible with the latest released version of the CodeQL CLI
2 parents 2f835e5 + 3990d0e commit 7ad49cf

File tree

746 files changed

+35945
-9756
lines changed

Some content is hidden

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

746 files changed

+35945
-9756
lines changed

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ common --registry=https://bcr.bazel.build
2525

2626
common --@rules_dotnet//dotnet/settings:strict_deps=false
2727
common --experimental_isolated_extension_usages
28+
common --incompatible_use_plus_in_repo_names
2829

2930
try-import %workspace%/local.bazelrc

Cargo.lock

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ members = [
77
"ruby/extractor",
88
"rust/extractor",
99
"rust/extractor/macros",
10-
"rust/generate-schema",
10+
"rust/ast-generator",
1111
]
1212

1313
[patch.crates-io]

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ bazel_dep(name = "bazel_skylib", version = "1.6.1")
2323
bazel_dep(name = "abseil-cpp", version = "20240116.0", repo_name = "absl")
2424
bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "json")
2525
bazel_dep(name = "fmt", version = "10.0.0")
26-
bazel_dep(name = "rules_kotlin", version = "1.9.4-codeql.1")
26+
bazel_dep(name = "rules_kotlin", version = "2.0.0-codeql.1")
2727
bazel_dep(name = "gazelle", version = "0.38.0")
2828
bazel_dep(name = "rules_dotnet", version = "0.15.1")
2929
bazel_dep(name = "googletest", version = "1.14.0.bcr.1")
30-
bazel_dep(name = "rules_rust", version = "0.50.0")
30+
bazel_dep(name = "rules_rust", version = "0.52.2")
3131

3232
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)
3333

@@ -61,7 +61,7 @@ r.from_cargo(
6161
"//ruby/extractor:Cargo.toml",
6262
"//rust/extractor:Cargo.toml",
6363
"//rust/extractor/macros:Cargo.toml",
64-
"//rust/generate-schema:Cargo.toml",
64+
"//rust/ast-generator:Cargo.toml",
6565
"//shared/tree-sitter-extractor:Cargo.toml",
6666
],
6767
)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class Expr extends @expr {
2+
string toString() { none() }
3+
}
4+
5+
class Location extends @location_expr {
6+
string toString() { none() }
7+
}
8+
9+
predicate isExprRequires(Expr expr) { exists(int kind | exprs(expr, kind, _) | kind = 390) }
10+
11+
from Expr expr, int kind, int kind_new, Location location
12+
where
13+
exprs(expr, kind, location) and
14+
if isExprRequires(expr) then kind_new = 1 else kind_new = kind
15+
select expr, kind_new, location

0 commit comments

Comments
 (0)