forked from openxla/xla
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.clang-tidy
161 lines (161 loc) · 5.77 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
ExtraArgs: [
"-Wno-everything",
"-Wno-error",
"-Wdeprecated-declarations",
"-D_LIBCPP_DISABLE_DEPRECATION_WARNINGS",
"-Wdeprecated-register",
"-Wexpansion-to-defined",
"-Wignored-attributes",
"-Wnon-pod-varargs",
"-Wshadow-field",
"-Wshift-sign-overflow",
"-Wtautological-undefined-compare",
"-Wthread-safety-analysis",
"-Wthread-safety-beta",
"-Wthread-safety-reference",
"-Wundefined-bool-conversion",
"-Wunreachable-code",
"-Wunused-const-variable",
"-Wunused-function",
"-Wunused-lambda-capture",
"-Wunused-local-typedef",
"-Wunused-private-field",
"-Wuser-defined-warnings",
]
Checks: "-*,
abseil-duration-addition,
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-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,
darwin-avoid-spinlock,
google-build-explicit-make-pair,
google-build-namespaces,
google-build-using-namespace,
google-default-arguments,
google-explicit-constructor,
google-global-names-in-headers,
google-objc-avoid-nsobject-new,
google-objc-function-naming,
google-objc-global-variable-declaration,
google-readability-function-size,
google-readability-namespace-comments,
google-runtime-int,
google-runtime-memset,
google-runtime-operator,
misc-definitions-in-headers,
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,
objc-avoid-nserror-init,
objc-dealloc-in-category,
objc-forbidden-subclassing,
objc-nsinvocation-argument-lifetime,
objc-property-declaration,
objc-super-self,
performance-faster-string-find,
performance-for-range-copy,
performance-implicit-conversion-in-loop,
performance-inefficient-algorithm,
performance-inefficient-vector-operation,
performance-move-constructor-init,
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,"
CheckOptions:
- key: 'bugprone-assert-side-effect.AssertMacros'
value: assert,DCHECK
- key: 'bugprone-string-constructor.WarnOnLargeLength'
value: 0
- key: 'bugprone-dangling-handle.HandleClasses'
value: '::std::string_view;::std::experimental::string_view;::absl::string_view;::absl::Span;::absl::FunctionRef;::llvm::StringRef;::llvm::ArrayRef;::absl::BitGenRef;::mlir::BlockRange;::mlir::OperandRange;::mlir::RegionRange;::mlir::ResultRange;::mlir::SuccessorRange;::mlir::TypeRange;::mlir::ValueRange'
- key: 'google-readability-function-size.ParameterThreshold'
value: 100
- key: 'modernize-make-unique.IncludeStyle'
value: 'google'
- key: 'performance-inefficient-vector-operation.VectorLikeClasses'
value: '::std::vector;::absl::InlinedVector'
- 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