CmdID

CmdID / Commands

clang-tidy

An LLVM-based C/C++ linter to find style violations, bugs, and security flaws through static analysis. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Run default checks on a source file

clang-tidy path/to/file.cppIdentify

Don't run any checks other than the cppcoreguidelines checks on a file

clang-tidy path/to/file.cpp -checks=-*,cppcoreguidelines-*Identify

List all available checks

clang-tidy -checks=* -list-checksIdentify

Specify defines and includes as compilation options (after --)

clang-tidy path/to/file.cpp -- -Imy_project/include -DdefinitionsIdentify