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-*, |
Chuyue Luo | 6092176 | 2023-12-14 15:48:55 +0000 | [diff] [blame] | 21 | -cert-dcl03-c, |
Chuyue Luo | c77ab7c | 2023-11-03 09:36:12 +0000 | [diff] [blame] | 22 | -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 Mathew | 939d6a0 | 2024-09-05 10:26:35 +0100 | [diff] [blame] | 29 | -misc-include-cleaner, |
Chuyue Luo | c77ab7c | 2023-11-03 09:36:12 +0000 | [diff] [blame] | 30 | -misc-no-recursion, |
Chuyue Luo | 6092176 | 2023-12-14 15:48:55 +0000 | [diff] [blame] | 31 | -misc-static-assert, |
Chuyue Luo | c77ab7c | 2023-11-03 09:36:12 +0000 | [diff] [blame] | 32 | performance-*, |
| 33 | -performance-no-int-to-ptr' |
Chuyue Luo | 88c0719 | 2023-09-25 16:11:36 +0100 | [diff] [blame] | 34 | |
| 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 Luo | c77ab7c | 2023-11-03 09:36:12 +0000 | [diff] [blame] | 39 | WarningsAsErrors: '*' |
Chuyue Luo | 88c0719 | 2023-09-25 16:11:36 +0100 | [diff] [blame] | 40 | |
| 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 | # |
| 46 | HeaderFilterRegex: 'drivers/|plat/|runtime/|lib/' |