blob: dc3195266dd8a713d1465936e1e55b127311914a [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-*,
29 -misc-no-recursion,
Chuyue Luo60921762023-12-14 15:48:55 +000030 -misc-static-assert,
Chuyue Luoc77ab7c2023-11-03 09:36:12 +000031 performance-*,
32 -performance-no-int-to-ptr'
Chuyue Luo88c07192023-09-25 16:11:36 +010033
34#
35# The WarningsAsErrors field specifies which checks will have their warnings
36# promoted to errors. These checks are specified in the same way as above.
37#
Chuyue Luoc77ab7c2023-11-03 09:36:12 +000038WarningsAsErrors: '*'
Chuyue Luo88c07192023-09-25 16:11:36 +010039
40#
41# The HeaderFilterRegex field specifies which header files clang-tidy will
42# output warnings from. Note that this does NOT affect which *.c files are
43# checked.
44#
45HeaderFilterRegex: 'drivers/|plat/|runtime/|lib/'