Clang-Tidy for VSCode
This extension integrates clang-tidy into VS Code.
Clang-Tidy documentation can be found here.
Runs clang-tidy and displays its diagnostics in VS Code.
Note: Diagnostics take longer to appear than in the example gif.
Clang-Tidy must be installed. The extension will look for the clang-tidy executable in your
PATH by default.
Clang-Tidy is part of LLVM, which can be downloaded here. Alternatively, use your system's package manager.
This extension contributes the following settings:
clang-tidy.executable: The path to the clang-tidy executable
clang-tidy.checks: List of checks to enable or disable
clang-tidy.compilerArgs: List of arguments to append to the compiler command line
clang-tidy.compilerArgsBefore: List of arguments to prepend to the compiler command line
clang-tidy.lintOnSave: Whether or not to lint files when they are saved
clang-tidy.buildPath: Path to the build folder. Equivalent to clang-tidy -p /path
clang-tidy.fixOnSave: Whether or not to fix files when they are saved
clang-tidy.blacklist: A list of regular expressions matching files you don't want to lint
This extension contributes the following commands:
Clang-Tidy: Lint File: Lints the active file
See the Github issues
CS 128 Usage
Forked from notskm/vscode-clang-tidy due to repository being archived and extension being taken off VS Code Marketplace.