forked from tpm2-software/tpm2-tss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
38 lines (37 loc) · 1.28 KB
/
.clang-tidy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -bugprone-assignment-in-if-condition
# [TODO] opinionated, we might want to enable that at some point
# -bugprone-branch-clone
# In some cases it is more readable to have identical branch blocks
# -bugprone-easily-swappable-parameters:
# We have a lot integer-liky types (e.g. TPMI_RH_NV_INDEX) which we do not
# want to turn into opaque or strong types. They are part of the API.
# -bugprone-implicit-widening-of-multiplication-result
# [TODO]
# -bugprone-reserved-identifier
# [TODO]
#
# -clang-analyzer-optin.performance.Padding
# We prefer logical/semantic order over (potentially insignificant)
# optimization.
# -clang-analyzer-security.insecureAPI
# There is no real alternative to strcat etc. in C99.
# -clang-analyzer-valist.Uninitialized
# Bugged: https://bugs.llvm.org/show_bug.cgi?id=41311
---
Checks: "\
bugprone*, \
-bugprone-assignment-in-if-condition, \
-bugprone-branch-clone, \
-bugprone-easily-swappable-parameters, \
-bugprone-implicit-widening-of-multiplication-result, \
-bugprone-reserved-identifier, \
\
clang-analyzer, \
-clang-analyzer-optin.performance.Padding, \
-clang-analyzer-security.insecureAPI.*, \
-clang-analyzer-valist.Uninitialized, \
\
clang-diagnostic*, \
"
WarningsAsErrors: "*"
HeaderFilterRegex: "(src|include)/.*"