A collection of lints to catch common mistakes and improve your C++ code.
More to come, please file an issue if you have ideas!
Table of contents:
Below are instructions on how to use Cpp Clippy as a terminal command.
$ git clone https://github.com/cpp-clippy/cpp-clippy.git
$ cd cpp-clippy
$ mkdir build
$ cd build
$ cmake ..
$ cmake --build .
Each check has a name and the checks to run can be chosen using the -checks= option, which specifies a comma-separated list of positive and negative (prefixed with -) globs. Positive globs add subsets of checks, and negative globs remove them. For example,
$ cpp-clippy test.cpp -checks=-*,critical-*
If you want to contribute to Clippy, you can find more information in CONTRIBUTING.md.
Copyright 2022 The Cpp Clippy Project Developers
Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>. Files in the project may not be copied, modified, or distributed except according to those terms.