Chuyue Luo | 88c0719 | 2023-09-25 16:11:36 +0100 | [diff] [blame] | 1 | # |
| 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 | # |
| 12 | Checks: '-*, |
| 13 | bugprone-*, |
| 14 | -bugprone-reserved-identifier, |
| 15 | -bugprone-easily-swappable-parameters, |
| 16 | -bugprone-branch-clone, |
Chuyue Luo | c77ab7c | 2023-11-03 09:36:12 +0000 | [diff] [blame^] | 17 | 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 Luo | 88c0719 | 2023-09-25 16:11:36 +0100 | [diff] [blame] | 31 | |
| 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 Luo | c77ab7c | 2023-11-03 09:36:12 +0000 | [diff] [blame^] | 36 | WarningsAsErrors: '*' |
Chuyue Luo | 88c0719 | 2023-09-25 16:11:36 +0100 | [diff] [blame] | 37 | |
| 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 | # |
| 43 | HeaderFilterRegex: 'drivers/|plat/|runtime/|lib/' |