forked from alephzero/alephzero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
66 lines (63 loc) · 2.38 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Checks: 'bugprone-*,
clang-diagnostic-*,
clang-analyzer-*,
google-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-bugprone-branch-clone,
-clang-analyzer-core.UndefinedBinaryOperatorResult,
-clang-analyzer-cplusplus.NewDeleteLeaks,
-clang-analyzer-security.*,
-modernize-use-trailing-return-type,
-modernize-avoid-c-arrays,
-google-readability-braces-around-statements,
-google-readability-casting,
-google-readability-namespace-comments,
-performance-unnecessary-value-param,
-readability-braces-around-statements,
-readability-else-after-return,
-readability-implicit-bool-conversion,
-readability-magic-numbers,
-readability-misleading-indentation,
-readability-named-parameter'
WarningsAsErrors: '*'
# Checks to consider adding:
#
# * cppcoreguidelines-*
# * hicpp-*
# Explain all negative checks here:
#
# * bugprone-branch-clone:
# TODO(lshamis): fix this.
# * clang-analyzer-core.UndefinedBinaryOperatorResult:
# See https://stackoverflow.com/questions/61603899/correct-clang-tidy-undefinedbinaryoperatorresult
# * clang-analyzer-cplusplus.NewDeleteLeaks:
# TODO(lshamis): fix this.
# * clang-analyzer-security.*:
# TODO(lshamis): fix this.
# * modernize-use-trailing-return-type:
# Not convinced it's more readable. Think about it.
# * modernize-avoid-c-arrays:
# TODO(lshamis): fix this.
# * google-readability-braces-around-statements:
# See https://llvm.discourse.group/t/clang-tidy-readability-braces-around-statements/1024
# * google-readability-casting:
# TODO(lshamis): fix this.
# * google-readability-namespace-comments:
# clang-tidy-6 doesn't recognize nested namespace.
# * performance-unnecessary-value-param:
# TODO(lshamis): fix this.
# * readability-braces-around-statements:
# See https://llvm.discourse.group/t/clang-tidy-readability-braces-around-statements/1024
# * readability-else-after-return:
# TODO(lshamis): fix this.
# * readability-implicit-bool-conversion:
# TODO(lshamis): fix this.
# * readability-magic-numbers:
# TODO(lshamis): fix this.
# * readability-misleading-indentation:
# TODO(lshamis): fix this.
# * readability-named-parameter:
# Not convinced it's more readable to add /*unused*/. Think about it.