Forrest logo
back to context overview

clang-tidy

List of commands for clang-tidy:

  • clang-tidy:tldr:2e155 clang-tidy: List all available checks.
    $ clang-tidy -checks=${*} -list-checks
    try on your machine
    explain this command
  • clang-tidy:tldr:7ed8c clang-tidy: Run default checks on a source file.
    $ clang-tidy ${filename-cpp}
    try on your machine
    explain this command
  • clang-tidy:tldr:f760a clang-tidy: Don't run any checks other than the `cppcoreguidelines` checks on a file.
    $ clang-tidy ${filename-cpp} -checks=${-*,cppcoreguidelines-*}
    try on your machine
    explain this command
back to context overview