-
Notifications
You must be signed in to change notification settings - Fork 276
/
.clang-tidy
121 lines (118 loc) · 3.88 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Enable some categories of checks and then disable individual ones.
# The disabled checks that appear as part of the initial alphabetical section
# enabling categories (e.g. cert-err58-cpp) are ones that do not make sense for
# this codebase and we do not intend to fix. The disabled checks appearing
# thereafter in a separate alphabetical list have yet to be triaged. We may
# fix their errors or recategorise them as checks we don't care about.
Checks: >
bugprone-*,
cata-*,
cert-*,
-cert-dcl21-cpp,
-cert-env33-c,
-cert-err58-cpp,
clang-diagnostic-*,
cppcoreguidelines-slicing,
llvm-namespace-comment,
misc-*,
modernize-*,
-modernize-use-auto,
-modernize-use-trailing-return-type,
performance-*,
readability-*,
-bugprone-branch-clone,
-bugprone-infinite-loop,
-bugprone-misplaced-widening-cast,
-bugprone-narrowing-conversions,
-bugprone-redundant-branch-condition,
-bugprone-reserved-identifier,
-bugprone-signed-char-misuse,
-bugprone-sizeof-expression,
-bugprone-unhandled-self-assignment,
-cata-combine-locals-into-point,
-cert-dcl37-c,
-cert-dcl51-cpp,
-cert-oop54-cpp,
-cert-str34-c,
-clang-analyzer-core.CallAndMessage,
-clang-analyzer-deadcode.DeadStores,
-misc-misplaced-const,
-misc-no-recursion,
-cert-err34-c,
-cert-flp30-c,
-cert-msc30-c,
-cert-msc32-c,
-cert-msc50-cpp,
-cert-msc51-cpp,
-misc-non-private-member-variables-in-classes,
-misc-redundant-expression,
-modernize-avoid-bind,
-modernize-avoid-c-arrays,
-modernize-pass-by-value,
-modernize-return-braced-init-list,
-modernize-use-default-member-init,
-modernize-use-emplace,
-modernize-use-transparent-functors,
-modernize-use-override,
-modernize-use-nodiscard,
-modernize-concat-nested-namespaces,
-modernize-loop-convert,
-modernize-unary-static-assert,
-modernize-use-nullptr,
-performance-no-automatic-move,
-performance-trivially-destructible,
-performance-for-range-copy,
-performance-inefficient-vector-operation,
-performance-noexcept-move-constructor,
-performance-implicit-conversion-in-loop,
-performance-inefficient-algorithm,
-performance-inefficient-string-concatenation,
-performance-type-promotion-in-math-fn,
-performance-unnecessary-value-param,
-readability-avoid-const-params-in-decls,
-readability-convert-member-functions-to-static,
-readability-braces-around-statements,
-readability-else-after-return,
-readability-function-cognitive-complexity,
-readability-function-size,
-readability-implicit-bool-conversion,
-readability-isolate-declaration,
-readability-magic-numbers,
-readability-make-member-function-const,
-readability-named-parameter,
-readability-redundant-control-flow,
-readability-redundant-declaration,
-readability-identifier-length,
-readability-qualified-auto,
-readability-redundant-access-specifiers,
-readability-use-anyofallof,
-bugprone-throw-keyword-missing,
-readability-identifier-naming,
-readability-avoid-nested-conditional-operator,
-bugprone-unchecked-optional-access,
-bugprone-chained-comparison,
-bugprone-easily-swappable-parameters,
-bugprone-switch-missing-default-case,
-misc-const-correctness,
-misc-include-cleaner,
-misc-use-anonymous-namespace,
-clang-diagnostic-unused-macros,
-clang-analyzer-optin.*,
-performance-enum-size,
-cert-dcl58-cpp,
# https://github.com/llvm/llvm-project/issues/59572
# https://github.com/llvm/llvm-project/issues/111003
# performance-enum-size: no automatic fix available
# cert-dcl58-cpp: too many issues with LUNA
# Turn back on when all the fixes are applied
# WarningsAsErrors: '*'
HeaderFilterRegex: "(src|(test(?!.*catch.*catch.h))|tools).*"
FormatStyle: none
CheckOptions:
- key: readability-uppercase-literal-suffix.NewSuffixes
value: "L;UL;LL;ULL"
- key: cata-text-style.EscapeUnicode
value: 0
- key: readability-simplify-boolean-expr.SimplifyDeMorgan
value: false
# vim:tw=0