blob: 85cf127b82c6e65d06d9c47d9e576da1b0365596 [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-*,
21 -cert-dcl37-c,
22 -cert-dcl51-cpp,
23 -cert-msc30-c,
24 -cert-msc50-cpp,
25 -cert-msc32-c,
26 -cert-msc51-cpp,
27 misc-*,
28 -misc-no-recursion,
29 performance-*,
30 -performance-no-int-to-ptr'
Chuyue Luo88c07192023-09-25 16:11:36 +010031
32#
33# The WarningsAsErrors field specifies which checks will have their warnings
34# promoted to errors. These checks are specified in the same way as above.
35#
Chuyue Luoc77ab7c2023-11-03 09:36:12 +000036WarningsAsErrors: '*'
Chuyue Luo88c07192023-09-25 16:11:36 +010037
38#
39# The HeaderFilterRegex field specifies which header files clang-tidy will
40# output warnings from. Note that this does NOT affect which *.c files are
41# checked.
42#
43HeaderFilterRegex: 'drivers/|plat/|runtime/|lib/'