From 5768ccba6eb77167da96712c20a4e042efb31d03 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Sat, 16 Nov 2024 16:05:05 +0100 Subject: ninjabackend: add support for "ninja clippy" Add a target that builds all crates that could be extern to others, and then reruns clippy. Signed-off-by: Paolo Bonzini --- docs/markdown/snippets/clippy.md | 5 +++++ docs/markdown/snippets/num-processes.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 docs/markdown/snippets/clippy.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/clippy.md b/docs/markdown/snippets/clippy.md new file mode 100644 index 0000000..14bcc77 --- /dev/null +++ b/docs/markdown/snippets/clippy.md @@ -0,0 +1,5 @@ +## Meson can run "clippy" on Rust projects + +Meson now defines a `clippy` target if the project uses the Rust programming +language. The target runs clippy on all Rust sources, using the `clippy-driver` +program from the same Rust toolchain as the `rustc` compiler. diff --git a/docs/markdown/snippets/num-processes.md b/docs/markdown/snippets/num-processes.md index c484d93..5336377 100644 --- a/docs/markdown/snippets/num-processes.md +++ b/docs/markdown/snippets/num-processes.md @@ -5,4 +5,4 @@ the amount of parallel jobs to run; this was useful when `meson test` is invoked through `ninja test` for example. With this version, a new variable `MESON_NUM_PROCESSES` is supported with a broader scope: in addition to `meson test`, it is also used by the `external_project` module and by -Ninja targets that invoke `clang-tidy` and `clang-format`. +Ninja targets that invoke `clang-tidy`, `clang-format` and `clippy`. -- cgit v1.1