clang-tidy vs Clippy
clang-tidy
clang.llvm.orgClippy
doc.rust-lang.orgSide by side
| Figure | clang-tidy | Clippy |
|---|---|---|
| Price from | Free | — |
| Free plan | Yes | — |
| Free trial | — | — |
| Open source | — | — |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 0 |
| Spec score · Linters | 8.5 (#4) | 7.6 (#23) |
| Automatic fixes | The -fix option applies suggested fixes when supported by the corresponding checks. | `cargo clippy --fix` can automatically apply some lint suggestions and implies `--all-targets`. |
| Configuration | Checks can be selected with comma-separated positive and negative globs, and configuration can be read from a .clang-tidy file. | Lint levels can be changed on the command line or in source code, and Clippy supports configuration through `clippy.toml`. |
| License | The LLVM project states that its code is licensed under the Apache 2.0 License with LLVM exceptions. | The Clippy repository is licensed under either Apache License 2.0 or MIT, at the licensee's option. |
| Purpose | clang-tidy is a Clang-based C++ linter for diagnosing and fixing typical programming errors, including style violations, interface misuse, and bugs detectable by static analysis. | Clippy is a collection of lints that catches common mistakes and improves Rust code. |
Plans
In their own words
clang-tidy
clang-tidy has no write-up on Specifiction yet; its figures are above.