Skip to content

Commit 142184d

Browse files
paldepindCopilot
andcommitted
Merge origin/main into unified/conditional-compilation
Preserve conditional compilation handling while adopting main's explicit empty content for unsupported Swift syntax. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a9225dea-8342-448b-88ec-ba9587d93816
2 parents e4818cb + 090f0d8 commit 142184d

811 files changed

Lines changed: 58015 additions & 5969 deletions

File tree

Some content is hidden

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

‎.github/dependabot.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,22 @@ updates:
44
directory: "ruby"
55
schedule:
66
interval: "daily"
7+
cooldown:
8+
default-days: 7
79

810
- package-ecosystem: "cargo"
911
directory: "ql"
1012
schedule:
1113
interval: "daily"
14+
cooldown:
15+
default-days: 7
1216

1317
- package-ecosystem: "github-actions"
1418
directory: "/"
1519
schedule:
1620
interval: "daily"
21+
cooldown:
22+
default-days: 7
1723
ignore:
1824
- dependency-name: '*'
1925
update-types: ['version-update:semver-patch', 'version-update:semver-minor']
@@ -22,6 +28,8 @@ updates:
2228
directory: "go/extractor"
2329
schedule:
2430
interval: "daily"
31+
cooldown:
32+
default-days: 7
2533
allow:
2634
- dependency-name: "golang.org/x/mod"
2735
- dependency-name: "golang.org/x/tools"
@@ -36,6 +44,8 @@ updates:
3644
directory: "go/ql/test"
3745
schedule:
3846
interval: "monthly"
47+
cooldown:
48+
default-days: 7
3949
ignore:
4050
- dependency-name: "*"
4151
reviewers:
@@ -45,5 +55,7 @@ updates:
4555
directory: "/"
4656
schedule:
4757
interval: weekly
58+
cooldown:
59+
default-days: 7
4860
exclude-paths:
4961
- "misc/bazel/registry/**"

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup dotnet
3535
uses: actions/setup-dotnet@v4
3636
with:
37-
dotnet-version: 10.0.100
37+
dotnet-version: 10.0.201
3838

3939
- name: Checkout repository
4040
uses: actions/checkout@v5

‎.github/workflows/cpp-bmn.yml‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: C/C++ build mode none extractor
2+
3+
on:
4+
pull_request:
5+
paths: &bmn_paths
6+
- "cpp/extractor/bmn/**"
7+
- "misc/bazel/3rdparty/cpp_bmn_deps/**"
8+
- "misc/bazel/3rdparty/cpp_bmn_deps_extension.bzl"
9+
- "misc/bazel/3rdparty/update_cpp_bmn_deps.sh"
10+
- "misc/bazel/3rdparty/BUILD.bazel"
11+
- "misc/bazel/rust.bzl"
12+
- "MODULE.bazel"
13+
- ".github/workflows/cpp-bmn.yml"
14+
push:
15+
branches:
16+
- main
17+
- "rc/*"
18+
paths: *bmn_paths
19+
20+
permissions:
21+
contents: read
22+
23+
jobs:
24+
cargo:
25+
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: cpp/extractor/bmn
29+
steps:
30+
- uses: actions/checkout@v5
31+
- name: Check formatting
32+
run: cargo fmt --check
33+
- name: Check
34+
run: cargo check
35+
- name: Clippy
36+
run: cargo clippy -- -D warnings
37+
- name: Test
38+
run: cargo test
39+
40+
bazel:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v5
44+
- name: Build
45+
run: bazel build //cpp/extractor/bmn:bmn
46+
- name: Test
47+
run: bazel test //cpp/extractor/bmn:tests

‎.github/workflows/csharp-qltest.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ jobs:
5151
- name: Setup dotnet
5252
uses: actions/setup-dotnet@v4
5353
with:
54-
dotnet-version: 10.0.100
54+
dotnet-version: 10.0.201
5555
- name: Extractor unit tests
5656
run: |
5757
dotnet tool restore
58-
dotnet test -p:RuntimeFrameworkVersion=10.0.0 extractor/Semmle.Util.Tests
59-
dotnet test -p:RuntimeFrameworkVersion=10.0.0 extractor/Semmle.Extraction.Tests
60-
dotnet test -p:RuntimeFrameworkVersion=10.0.0 autobuilder/Semmle.Autobuild.CSharp.Tests
61-
dotnet test -p:RuntimeFrameworkVersion=10.0.0 autobuilder/Semmle.Autobuild.Cpp.Tests
58+
dotnet test -p:RuntimeFrameworkVersion=10.0.5 extractor/Semmle.Util.Tests
59+
dotnet test -p:RuntimeFrameworkVersion=10.0.5 extractor/Semmle.Extraction.Tests
60+
dotnet test -p:RuntimeFrameworkVersion=10.0.5 autobuilder/Semmle.Autobuild.CSharp.Tests
61+
dotnet test -p:RuntimeFrameworkVersion=10.0.5 autobuilder/Semmle.Autobuild.Cpp.Tests
6262
shell: bash
6363
stubgentest:
6464
runs-on: ubuntu-latest

‎.pre-commit-config.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,10 @@ repos:
8585
language: system
8686
entry: python3 rust/lint.py
8787
pass_filenames: false
88+
89+
- id: cpp-bmn-lint
90+
name: Run fmt and clippy on C/C++ BMN Rust code
91+
files: ^cpp/extractor/bmn/(.*rs|Cargo.toml)$
92+
language: system
93+
entry: cpp/extractor/bmn/lint --check
94+
pass_filenames: false

‎Cargo.lock‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎MODULE.bazel‎

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ local_path_override(
1717
bazel_dep(name = "platforms", version = "1.1.0")
1818
bazel_dep(name = "rules_cc", version = "0.2.27")
1919
bazel_dep(name = "rules_go", version = "0.65.0")
20-
bazel_dep(name = "rules_java", version = "9.6.1")
20+
bazel_dep(name = "rules_java", version = "9.9.0")
2121
bazel_dep(name = "rules_pkg", version = "1.2.0")
2222
bazel_dep(name = "rules_nodejs", version = "6.7.7")
2323
bazel_dep(name = "rules_python", version = "2.4.6")
2424
bazel_dep(name = "rules_shell", version = "0.8.0")
2525
bazel_dep(name = "bazel_skylib", version = "1.9.2")
2626
bazel_dep(name = "abseil-cpp", version = "20260817.0", repo_name = "absl")
2727
bazel_dep(name = "nlohmann_json", version = "3.12.0.bcr.2", repo_name = "json")
28-
bazel_dep(name = "fmt", version = "12.1.0-codeql.1")
28+
bazel_dep(name = "fmt", version = "12.2.0.bcr.1-codeql.1")
2929
bazel_dep(name = "rules_kotlin", version = "2.4.21-codeql.1")
3030
bazel_dep(name = "gazelle", version = "0.54.0")
31-
bazel_dep(name = "rules_dotnet", version = "0.21.5-codeql.1")
31+
bazel_dep(name = "rules_dotnet", version = "0.22.2-codeql.1")
3232
bazel_dep(name = "googletest", version = "1.18.0.bcr.1")
33-
bazel_dep(name = "rules_rust", version = "0.74.0")
33+
bazel_dep(name = "rules_rust", version = "0.75.0")
3434
bazel_dep(name = "rules_swift", version = "4.0.0-rc5-codeql.3")
3535
bazel_dep(name = "swift-syntax", version = "604.0.0")
3636
bazel_dep(name = "zstd", version = "1.5.7.bcr.3")
@@ -120,6 +120,30 @@ use_repo(
120120
"vendor_py__tree-sitter-graph-0.12.0",
121121
)
122122

123+
# deps for C/C++ build mode none extractor
124+
# keep in sync by running `misc/bazel/3rdparty/update_cpp_bmn_deps.sh`
125+
cpp_bmn_deps = use_extension("//misc/bazel/3rdparty:cpp_bmn_deps_extension.bzl", "b")
126+
use_repo(
127+
cpp_bmn_deps,
128+
"vendor_cpp_bmn",
129+
"vendor_cpp_bmn__all_asserts-2.3.3",
130+
"vendor_cpp_bmn__anyhow-1.0.98",
131+
"vendor_cpp_bmn__cached-0.54.0",
132+
"vendor_cpp_bmn__chrono-0.4.41",
133+
"vendor_cpp_bmn__itertools-0.14.0",
134+
"vendor_cpp_bmn__num_cpus-1.17.0",
135+
"vendor_cpp_bmn__os_str_bytes-7.1.1",
136+
"vendor_cpp_bmn__rayon-1.11.0",
137+
"vendor_cpp_bmn__regex-1.11.1",
138+
"vendor_cpp_bmn__serde-1.0.219",
139+
"vendor_cpp_bmn__serde_json-1.0.140",
140+
"vendor_cpp_bmn__serde_with-1.14.0",
141+
"vendor_cpp_bmn__tempfile-3.20.0",
142+
"vendor_cpp_bmn__walkdir-2.5.0",
143+
"vendor_cpp_bmn__which-8.0.0",
144+
"vendor_cpp_bmn__zip-6.0.0",
145+
)
146+
123147
# deps for ruby+rust
124148
# keep in sync by running `misc/bazel/3rdparty/update_cargo_deps.sh`
125149
tree_sitter_extractors_deps = use_extension("//misc/bazel/3rdparty:tree_sitter_extractors_extension.bzl", "r")
@@ -206,7 +230,7 @@ http_archive(
206230
)
207231

208232
dotnet = use_extension("@rules_dotnet//dotnet:extensions.bzl", "dotnet")
209-
dotnet.toolchain(dotnet_version = "10.0.100")
233+
dotnet.toolchain(dotnet_version = "10.0.201")
210234
use_repo(dotnet, "dotnet_toolchains")
211235

212236
register_toolchains("@dotnet_toolchains//:all")

‎cpp/extractor/bmn/.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+

‎cpp/extractor/bmn/BUILD.bazel‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
load("@rules_rust//rust:defs.bzl", "rust_test")
2+
load("//misc/bazel:rust.bzl", "codeql_rust_binary")
3+
load("//misc/bazel/3rdparty/cpp_bmn_deps:defs.bzl", "all_crate_deps")
4+
5+
exports_files([
6+
"Cargo.lock",
7+
"Cargo.toml",
8+
])
9+
10+
codeql_rust_binary(
11+
name = "bmn",
12+
srcs = glob(["src/**/*.rs"]),
13+
proc_macro_deps = all_crate_deps(proc_macro = True),
14+
visibility = ["//visibility:public"],
15+
deps = all_crate_deps(normal = True),
16+
)
17+
18+
rust_test(
19+
name = "unit_tests",
20+
crate = ":single_arch/bmn",
21+
data = glob([
22+
"tests/resources/**",
23+
"Cargo.toml",
24+
]),
25+
env = {
26+
"BMN_TEST_MANIFEST": "$(rlocationpath :Cargo.toml)",
27+
},
28+
)
29+
30+
test_suite(
31+
name = "tests",
32+
tests = [":unit_tests"],
33+
)

0 commit comments

Comments
 (0)