Rust: some basic extraction of function names (with locations!)

This commit is contained in:
Paolo Tranquilli
2024-08-29 17:03:19 +02:00
parent f40901f391
commit 590a146b49
54 changed files with 1867 additions and 1007 deletions

15
rust/codegen/BUILD.bazel Normal file
View File

@@ -0,0 +1,15 @@
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
native_binary(
name = "codegen",
src = "//misc/codegen",
out = "codegen",
args = [
"--configuration-file=$(location //rust:codegen.conf)",
],
data = [
"//rust:codegen.conf",
"//rust:schema.py",
],
visibility = ["//rust:__subpackages__"],
)

6
rust/codegen/README.md Normal file
View File

@@ -0,0 +1,6 @@
This package aliases [`misc/codegen`](../misc/codegen) providing the Rust-specific options
in [`rust/codegen.conf`](../codegen.conf).
Running `bazel run //rust/codegen` will generate all checked in
files ([dbscheme](../ql/lib/swift.dbscheme), [QL generated code](../ql/lib/codeql/swift/generated),
[generated QL stubs](../ql/lib/codeql/swift/elements), [generated QL tests](../ql/test/extractor-tests/generated)).