Clang-Tidy
This is BETA. The behavior of this tool might change.
Supported Version | Language | Website |
---|---|---|
10.0.1 | C/C++ | https://clang.llvm.org/extra/clang-tidy/ |
Clang-Tidy is a Clang-based C++ "linter" tool. It diagnoses typical programming errors, like style violations, interface misuse, or bugs that can be deduced via static analysis.
Getting Started
To start using Clang-Tidy, enable it in your repository settings.
If you want to configure Clang-Tidy, please put the .clang-tidy
file(YAML/JSON) in the root directory. You can disable/enable Clang-Tidy rules (Checks) via the file. See the document more details.
Configuration
You can customize the analysis via sider.yml
:
linter:
clang_tidy:
apt:
- libgdbm-dev
- libfastjson-dev=0.99.8-2
include-path:
- myinclude
- foo/include
- /usr/include/libfastjson
Name | Type | Default |
---|---|---|
root_dir | string | - |
apt | string , string[] | - |
include-path | string , string[] | - |
No analyzer-specific options.