d734ec5aa6
Please see .pre-commit-config.yaml for details
- Add clang-format
- Add cpplint
- Add config for clang-tidy but don't enforce with pre-commit
Change-Id: Ica447c78e6fde94b43bfdc00f5b4efc338363e24
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
[ROCm/rocm_smi_lib commit: 142fbac7ac]
38 rindas
1.1 KiB
YAML
38 rindas
1.1 KiB
YAML
CompileFlags:
|
|
Remove: -W*
|
|
Add: [-Wall, -pedantic, -I/opt/rocm/include, -I/opt/rocm/include/hsa, -I/opt/rocm/include/rocprofiler]
|
|
Compiler: clang++
|
|
|
|
# list here: https://clang.llvm.org/extra/clang-tidy/checks/list.html
|
|
Diagnostics:
|
|
UnusedIncludes: Strict
|
|
# rules below are copied into .clang-tidy using ./.update-clang-tidy.sh
|
|
# please keep the rules sorted alphabetically
|
|
ClangTidy:
|
|
Add: [
|
|
bugprone*,
|
|
clang-analyzer*,
|
|
google*,
|
|
misc*,
|
|
modernize*,
|
|
]
|
|
Remove: [
|
|
abseil*,
|
|
bugprone-easily-swappable-parameters,
|
|
bugprone-reserved-identifier,
|
|
clang-analyzer-security.insecureAPI.strcpy,
|
|
cppcoreguidelines*,
|
|
cppcoreguidelines-pro*,
|
|
misc-non-copyable-objects,
|
|
misc-use-anonymous-namespace,
|
|
modernize-avoid-c-arrays,
|
|
modernize-redundant-void-arg,
|
|
modernize-use-auto,
|
|
modernize-use-nodiscard,
|
|
modernize-use-noexcept,
|
|
modernize-use-trailing-return-type,
|
|
modernize-use-using,
|
|
performance*,
|
|
readability*,
|
|
]
|