diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-16 16:05:05 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2024-12-19 09:25:20 -0800 |
commit | 5768ccba6eb77167da96712c20a4e042efb31d03 (patch) | |
tree | 274bba153b1cdf9f5826d559681bd6be918b86b3 /docs/markdown/snippets | |
parent | 27c567de5d1807ac72708ea48018a21f0c6b8dd2 (diff) | |
download | meson-5768ccba6eb77167da96712c20a4e042efb31d03.zip meson-5768ccba6eb77167da96712c20a4e042efb31d03.tar.gz meson-5768ccba6eb77167da96712c20a4e042efb31d03.tar.bz2 |
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 <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/clippy.md | 5 | ||||
-rw-r--r-- | docs/markdown/snippets/num-processes.md | 2 |
2 files changed, 6 insertions, 1 deletions
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`. |