blob: abf84708179df9cd4dadc52dfd5e12923ca90ceb [file] [log] [blame]
Chuyue Luo88c07192023-09-25 16:11:36 +01001#
2# SPDX-License-Identifier: BSD-3-Clause
3# SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
4#
5
6#
7# Configuration file for clang-tidy.
8#
9# Checks are specified as a comma-separated list. A '-' before the name of the
10# check will disable that check.
11#
12Checks: '-*,
13 bugprone-*,
14 -bugprone-reserved-identifier,
15 -bugprone-easily-swappable-parameters,
16 -bugprone-branch-clone,
Chuyue Luoc77ab7c2023-11-03 09:36:12 +000017 google-readability-casting,
18 clang-analyzer-*,
19 -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
20 cert-*,
Chuyue Luo60921762023-12-14 15:48:55 +000021 -cert-dcl03-c,
Chuyue Luoc77ab7c2023-11-03 09:36:12 +000022 -cert-dcl37-c,
23 -cert-dcl51-cpp,
24 -cert-msc30-c,
25 -cert-msc50-cpp,
26 -cert-msc32-c,
27 -cert-msc51-cpp,
28 misc-*,
Soby Mathew939d6a02024-09-05 10:26:35 +010029 -misc-include-cleaner,
Chuyue Luoc77ab7c2023-11-03 09:36:12 +000030 -misc-no-recursion,
Chuyue Luo60921762023-12-14 15:48:55 +000031 -misc-static-assert,
Chuyue Luoc77ab7c2023-11-03 09:36:12 +000032 performance-*,
33 -performance-no-int-to-ptr'
Chuyue Luo88c07192023-09-25 16:11:36 +010034
35#
36# The WarningsAsErrors field specifies which checks will have their warnings
37# promoted to errors. These checks are specified in the same way as above.
38#
Chuyue Luoc77ab7c2023-11-03 09:36:12 +000039WarningsAsErrors: '*'
Chuyue Luo88c07192023-09-25 16:11:36 +010040
41#
42# The HeaderFilterRegex field specifies which header files clang-tidy will
43# output warnings from. Note that this does NOT affect which *.c files are
44# checked.
45#
46HeaderFilterRegex: 'drivers/|plat/|runtime/|lib/'