-
Notifications
You must be signed in to change notification settings - Fork 7
/
.clang-tidy
112 lines (109 loc) · 4.01 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
# vim: set filetype=yaml:
---
HeaderFilterRegex: ""
UseColor: true
FormatStyle: file
Checks: " \
-* \
, bugprone-assert-side-effect \
, bugprone-bool-pointer-implicit-conversion \
, bugprone-branch-clone \
, bugprone-copy-constructor-init \
, bugprone-dangling-handle \
, bugprone-dynamic-static-initializers \
, bugprone-exception-escape \
, bugprone-forward-declaration-namespace \
, bugprone-implicit-widening-of-multiplication-result \
, bugprone-incorrect-roundings \
, bugprone-infinite-loop \
, bugprone-integer-division \
, bugprone-lambda-function-name \
, bugprone-macro-parentheses \
, bugprone-macro-repeated-side-effects \
, bugprone-misplaced-operator-in-strlen-in-alloc \
, bugprone-misplaced-pointer-arithmetic-in-alloc \
, bugprone-misplaced-widening-cast \
, bugprone-move-forwarding-reference \
, bugprone-multiple-statement-macro \
, bugprone-not-null-terminated-result \
, bugprone-parent-virtual-call \
, bugprone-redundant-branch-condition \
, bugprone-signed-char-misuse \
, bugprone-sizeof-container \
, bugprone-sizeof-expression \
, bugprone-string-constructor \
, bugprone-string-integer-assignment \
, bugprone-string-literal-with-embedded-nul \
, bugprone-suspicious-enum-usage \
, bugprone-suspicious-include \
, bugprone-suspicious-memset-usage \
, bugprone-suspicious-missing-comma \
, bugprone-suspicious-semicolon \
, bugprone-suspicious-string-compare \
, bugprone-swapped-arguments \
, bugprone-terminating-continue \
, bugprone-too-small-loop-variable \
, bugprone-undefined-memory-manipulation \
, bugprone-undelegated-constructor \
, bugprone-unused-raii \
, bugprone-unused-return-value \
, bugprone-use-after-move \
, bugprone-virtual-near-miss \
, cppcoreguidelines-avoid-goto \
, cppcoreguidelines-init-variables \
, cppcoreguidelines-interfaces-global-init \
, cppcoreguidelines-macro-usage \
, cppcoreguidelines-narrowing-conversions \
, cppcoreguidelines-no-malloc \
, cppcoreguidelines-prefer-member-initializer \
, cppcoreguidelines-pro-bounds-constant-array-index \
, cppcoreguidelines-pro-type-const-cast \
, cppcoreguidelines-pro-type-cstyle-cast \
, cppcoreguidelines-pro-type-member-init \
, cppcoreguidelines-pro-type-reinterpret-cast \
, cppcoreguidelines-pro-type-static-cast-downcast \
, cppcoreguidelines-pro-type-union-access \
, cppcoreguidelines-slicing \
, cppcoreguidelines-special-member-functions \
, google-readability-avoid-underscore-in-googletest-name \
, google-readability-casting \
, google-readability-todo \
, google-upgrade-googletest-case \
, hicpp-multiway-paths-covered \
, misc-definitions-in-headers \
, misc-misplaced-const \
, misc-non-copyable-objects \
, misc-non-private-member-variables-in-classes \
, misc-redundant-expression \
, misc-static-assert \
, misc-unconventional-assign-operator \
, misc-unused-alias-decls \
, misc-unused-using-decls \
, modernize-* \
, readability-* \
, -readability-convert-member-functions-to-static \
"
CheckOptions:
- key: bugprone-misplaced-widening-cast.CheckImplicitCasts
value: true
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
value: true
- key: readability-magic-numbers.IgnorePowersOf2IntegerValues
value: true
- key: readability-function-cognitive-complexity.IgnoreMacros
value: true
- key: readability-magic-numbers.IgnoredIntegerValues
value: "1;2;3;4;10;100;1000;60;80;3600;9600;57600;115200;128;255;1000000"
- key: readability-magic-numbers.IgnoredFloatingPointValues
value: "1;2;3;4;10;100;1000;"
- key: readability-identifier-length.IgnoredVariableNames
value: "^(fs|c|ms|fh|t|bd|s|hz|id|[abcijkxyz])$"
- key: readability-identifier-length.IgnoredParameterNames
value: "^(fs|c|ms|fh|t|bd|s|hz|id|[abcijkxyz])$"
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: true
- key: modernize-use-override.IgnoreDestructors
value: true
WarningsAsErrors: " \
modernize-*
"