blob: e0d8eae314dba958c5cc48b912396b4f70784a54 [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,
17 misc-redundant-expression,
18 misc-unused-parameters,
19 google-readability-casting'
20
21#
22# The WarningsAsErrors field specifies which checks will have their warnings
23# promoted to errors. These checks are specified in the same way as above.
24#
25WarningsAsErrors: '-*,
26 bugprone-narrowing-conversions,
27 bugprone-implicit-widening-of-multiplication-result,
28 bugprone-infinite-loop,
29 bugprone-too-small-loop-variable'
30
31#
32# The HeaderFilterRegex field specifies which header files clang-tidy will
33# output warnings from. Note that this does NOT affect which *.c files are
34# checked.
35#
36HeaderFilterRegex: 'drivers/|plat/|runtime/|lib/'