-
Notifications
You must be signed in to change notification settings - Fork 178
/
.clang-tidy
134 lines (133 loc) · 4.75 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
122
123
124
125
126
127
128
129
130
131
132
133
134
# clang-tidy configuration. Explicitly listing all relevant rules without
# wildcards to be robust against clang-tidy version changes.
###
Checks: >
-*,
abseil-duration-addition,
abseil-duration-comparison,
abseil-duration-conversion-cast,
abseil-duration-division,
abseil-duration-factory-float,
abseil-duration-factory-scale,
abseil-duration-subtraction,
abseil-duration-unnecessary-conversion,
abseil-faster-strsplit-delimiter,
abseil-no-internal-dependencies,
abseil-redundant-strcat-calls,
abseil-str-cat-append,
abseil-string-find-startswith,
abseil-string-find-str-contains,
abseil-time-comparison,
abseil-time-subtraction,
bugprone-argument-comment,
bugprone-assert-side-effect,
bugprone-bool-pointer-implicit-conversion,
bugprone-dangling-handle,
bugprone-fold-init-type,
bugprone-forward-declaration-namespace,
bugprone-inaccurate-erase,
bugprone-macro-repeated-side-effects,
bugprone-move-forwarding-reference,
bugprone-multiple-statement-macro,
bugprone-string-constructor,
bugprone-stringview-nullptr,
bugprone-suspicious-memset-usage,
bugprone-undefined-memory-manipulation,
bugprone-undelegated-constructor,
bugprone-unused-raii,
bugprone-use-after-move,
clang-diagnostic-dangling-assignment-gsl,
clang-diagnostic-deprecated-declarations,
clang-diagnostic-deprecated-register,
clang-diagnostic-expansion-to-defined,
clang-diagnostic-ignored-attributes,
clang-diagnostic-non-pod-varargs,
clang-diagnostic-shadow-field,
clang-diagnostic-shift-sign-overflow,
clang-diagnostic-tautological-undefined-compare,
clang-diagnostic-thread-safety*,
clang-diagnostic-undefined-bool-conversion,
clang-diagnostic-unreachable-code,
clang-diagnostic-unreachable-code-loop-increment,
clang-diagnostic-unused-const-variable,
clang-diagnostic-unused-function,
clang-diagnostic-unused-lambda-capture,
clang-diagnostic-unused-local-typedef,
clang-diagnostic-unused-private-field,
clang-diagnostic-user-defined-warnings,
google-build-explicit-make-pair,
google-build-namespaces,
google-build-using-namespace,
google-default-arguments,
google-explicit-constructor,
google-global-names-in-headers,
google-readability-function-size,
google-readability-namespace-comments,
google-runtime-int,
google-runtime-memset,
google-runtime-operator,
misc-coroutine-hostile-raii,
misc-definitions-in-headers,
misc-include-cleaner,
misc-static-assert,
misc-unconventional-assign-operator,
misc-uniqueptr-reset-release,
misc-unused-alias-decls,
misc-unused-using-decls,
modernize-make-unique,
modernize-redundant-void-arg,
modernize-replace-auto-ptr,
modernize-shrink-to-fit,
modernize-use-bool-literals,
modernize-use-equals-default,
modernize-use-nullptr,
modernize-use-override,
performance-faster-string-find,
performance-for-range-copy,
performance-implicit-conversion-in-loop,
performance-inefficient-algorithm,
performance-inefficient-vector-operation,
performance-move-constructor-init,
performance-unnecessary-copy-initialization,
portability-std-allocator-const,
readability-avoid-const-params-in-decls,
readability-const-return-type,
readability-container-size-empty,
readability-deleted-default,
readability-inconsistent-declaration-parameter-name,
readability-misleading-indentation,
readability-redundant-control-flow,
readability-redundant-smartptr-get,
readability-string-compare,
readability-braces-around-statements,
CheckOptions:
- key: 'bugprone-assert-side-effect.AssertMacros'
value: 'assert,DCHECK'
- key: 'bugprone-string-constructor.WarnOnLargeLength'
value: '0'
- key: 'google-readability-function-size.ParameterThreshold'
value: '100'
- key: 'modernize-make-unique.IncludeStyle'
value: 'google'
- key: 'performance-inefficient-vector-operation.EnableProto'
value: '1'
- key: 'abseil-string-find-startswith.IncludeStyle'
value: 'google'
- key: 'abseil-string-find-startswith.AbseilStringsMatchHeader'
value: 'absl/strings/match.h'
- key: 'abseil-string-find-startswith.StringLikeClasses'
value: '::std::string_view;::absl::string_view;::basic_string;::std::basic_string;'
- key: 'abseil-string-find-str-contains.IncludeStyle'
value: 'google'
- key: 'abseil-string-find-str-contains.AbseilStringsMatchHeader'
value: 'absl/strings/match.h'
- key: 'abseil-string-find-str-contains.StringLikeClasses'
value: '::std::basic_string_view;::absl::string_view;::basic_string;::std::basic_string;'
- key: 'readability-function-cognitive-complexity.Threshold'
value: '15'
- key: 'readability-function-cognitive-complexity.DescribeBasicIncrements'
value: 'false'
- key: 'readability-function-cognitive-complexity.IgnoreMacros'
value: 'true'
- key: 'google-runtime-int.TypeSuffix'
value: '_t'