-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy path.clang-tidy
More file actions
80 lines (79 loc) · 2.67 KB
/
.clang-tidy
File metadata and controls
80 lines (79 loc) · 2.67 KB
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
# SPDX-FileCopyrightText: 2005 - 2021 Settlers Freaks <sf-team at siedler25.org>
#
# SPDX-License-Identifier: CC0-1.0
---
Checks: >-
boost-*,
bugprone-*,
clang-analyzer-*,
clang-diagnostic-*,
misc-*,
modernize-*,
performance-*,
readability-*,
-bugprone-assignment-in-if-condition,
-bugprone-casting-through-void,
-bugprone-easily-swappable-parameters,
-bugprone-empty-catch,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-narrowing-conversions,
-bugprone-optional-value-conversion,
-bugprone-reserved-identifier,
-bugprone-switch-missing-default-case,
-bugprone-too-small-loop-variable,
-bugprone-unchecked-optional-access,
-bugprone-unhandled-exception-at-new,
-clang-analyzer-core.NonNullParamChecker,
-clang-analyzer-cplusplus.NewDeleteLeaks,
-clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-osx.*,
-misc-confusable-identifiers,
-misc-const-correctness,
-misc-include-cleaner,
-misc-non-private-member-variables-in-classes,
-misc-no-recursion,
-misc-unused-parameters,
-misc-use-anonymous-namespace,
-modernize-avoid-c-arrays,
-modernize-macro-to-enum,
-modernize-raw-string-literal,
-modernize-return-braced-init-list,
-modernize-use-default-member-init,
-modernize-use-emplace,
-modernize-use-nodiscard,
-modernize-use-override,
-modernize-use-trailing-return-type,
-performance-avoid-endl,
-performance-enum-size,
-performance-move-const-arg,
-performance-no-int-to-ptr,
-readability-avoid-nested-conditional-operator,
-readability-avoid-return-with-void-value,
-readability-braces-around-statements,
-readability-convert-member-functions-to-static,
-readability-else-after-return,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-isolate-declaration,
-readability-magic-numbers,
-readability-named-parameter,
-readability-redundant-casting,
-readability-static-accessed-through-instance,
-readability-suspicious-call-argument,
-readability-uppercase-literal-suffix,
-readability-use-anyofallof,
-readability-identifier-naming,
-clang-diagnostic-inconsistent-missing-override
CheckOptions:
- key: performance-for-range-copy.AllowedTypes
value: 'Point<.*?>;MapPoint;Position;Extent;DrawPoint'
- key: performance-unnecessary-copy-initialization.AllowedTypes
value: 'Point<.*?>;MapPoint;Position;Extent;DrawPoint'
- key: performance-unnecessary-value-param.AllowedTypes
value: 'Point<.*?>;MapPoint;Position;Extent;DrawPoint'
- key: readability-function-cognitive-complexity.IgnoreMacros
value: true
- key: readability-simplify-boolean-expr.IgnoreMacros
value: true
...