Skip to content

Commit 123ce7e

Browse files
committed
Update tidy rules
You will find all boost rules enabled and all modernize-xxx rules listed. All rules that we pass are enabled the disabled ones we do not yet pass. The end goal is most likely not to pass all tidy checks, e.g. use-trailing-return-type. But this is at least a start.
1 parent f7910f5 commit 123ce7e

File tree

1 file changed

+34
-352
lines changed

1 file changed

+34
-352
lines changed

.clang-tidy

+34-352
Original file line numberDiff line numberDiff line change
@@ -1,357 +1,39 @@
11
---
22
Checks: >-
3-
*,
4-
-fuchsia*,
5-
-readability-isolate-declaration,
6-
-cppcoreguidelines-avoid-magic-numbers,
7-
-readability-magic-numbers,
8-
-modernize-use-trailing-return-type,
3+
-*,
4+
boost-*,
5+
modernize-avoid-bind,
6+
-modernize-avoid-c-arrays,
7+
modernize-concat-nested-namespaces,
8+
modernize-deprecated-headers,
9+
modernize-deprecated-ios-base-aliases,
10+
-modernize-loop-convert,
11+
modernize-make-shared,
12+
modernize-make-unique,
13+
modernize-pass-by-value,
14+
modernize-raw-string-literal,
15+
modernize-redundant-void-arg,
16+
modernize-replace-auto-ptr,
17+
modernize-replace-disallow-copy-and-assign-macro,
18+
modernize-replace-random-shuffle,
19+
-modernize-return-braced-init-list,
20+
modernize-shrink-to-fit,
21+
modernize-unary-static-assert,
22+
-modernize-use-auto,
23+
modernize-use-bool-literals,
24+
-modernize-use-default-member-init,
25+
-modernize-use-emplace,
26+
-modernize-use-equals-default,
27+
-modernize-use-equals-delete,
928
-modernize-use-nodiscard,
10-
-llvmlibc-*
11-
WarningsAsErrors: ''
12-
HeaderFilterRegex: ''
29+
-modernize-use-noexcept,
30+
-modernize-use-nullptr,
31+
modernize-use-override,
32+
-modernize-use-trailing-return-type,
33+
-modernize-use-transparent-functors,
34+
-modernize-use-uncaught-exceptions,
35+
-modernize-use-using
36+
WarningsAsErrors: '*'
37+
HeaderFilterRegex: '.*'
1338
AnalyzeTemporaryDtors: false
1439
FormatStyle: none
15-
User: david
16-
CheckOptions:
17-
- key: abseil-string-find-startswith.AbseilStringsMatchHeader
18-
value: 'absl/strings/match.h'
19-
- key: abseil-string-find-startswith.IncludeStyle
20-
value: llvm
21-
- key: abseil-string-find-startswith.StringLikeClasses
22-
value: '::std::basic_string'
23-
- key: bugprone-argument-comment.StrictMode
24-
value: '0'
25-
- key: bugprone-assert-side-effect.AssertMacros
26-
value: assert
27-
- key: bugprone-assert-side-effect.CheckFunctionCalls
28-
value: '0'
29-
- key: bugprone-dangling-handle.HandleClasses
30-
value: 'std::basic_string_view;std::experimental::basic_string_view'
31-
- key: bugprone-exception-escape.FunctionsThatShouldNotThrow
32-
value: ''
33-
- key: bugprone-exception-escape.IgnoredExceptions
34-
value: ''
35-
- key: bugprone-misplaced-widening-cast.CheckImplicitCasts
36-
value: '0'
37-
- key: bugprone-sizeof-expression.WarnOnSizeOfCompareToConstant
38-
value: '1'
39-
- key: bugprone-sizeof-expression.WarnOnSizeOfConstant
40-
value: '1'
41-
- key: bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression
42-
value: '0'
43-
- key: bugprone-sizeof-expression.WarnOnSizeOfThis
44-
value: '1'
45-
- key: bugprone-string-constructor.LargeLengthThreshold
46-
value: '8388608'
47-
- key: bugprone-string-constructor.WarnOnLargeLength
48-
value: '1'
49-
- key: bugprone-suspicious-enum-usage.StrictMode
50-
value: '0'
51-
- key: bugprone-suspicious-missing-comma.MaxConcatenatedTokens
52-
value: '5'
53-
- key: bugprone-suspicious-missing-comma.RatioThreshold
54-
value: '0.200000'
55-
- key: bugprone-suspicious-missing-comma.SizeThreshold
56-
value: '5'
57-
- key: bugprone-suspicious-string-compare.StringCompareLikeFunctions
58-
value: ''
59-
- key: bugprone-suspicious-string-compare.WarnOnImplicitComparison
60-
value: '1'
61-
- key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison
62-
value: '0'
63-
- key: bugprone-unused-return-value.CheckedFunctions
64-
value: '::std::async;::std::launder;::std::remove;::std::remove_if;::std::unique;::std::unique_ptr::release;::std::basic_string::empty;::std::vector::empty'
65-
- key: cert-dcl16-c.IgnoreMacros
66-
value: '1'
67-
- key: cert-dcl16-c.NewSuffixes
68-
value: 'L;LL;LU;LLU'
69-
- key: cert-dcl59-cpp.HeaderFileExtensions
70-
value: ',h,hh,hpp,hxx'
71-
- key: cert-err09-cpp.CheckThrowTemporaries
72-
value: '1'
73-
- key: cert-err61-cpp.CheckThrowTemporaries
74-
value: '1'
75-
- key: cert-msc32-c.DisallowedSeedTypes
76-
value: 'time_t,std::time_t'
77-
- key: cert-msc51-cpp.DisallowedSeedTypes
78-
value: 'time_t,std::time_t'
79-
- key: cert-oop11-cpp.IncludeStyle
80-
value: llvm
81-
- key: cppcoreguidelines-avoid-magic-numbers.IgnoredFloatingPointValues
82-
value: '1.0;100.0;'
83-
- key: cppcoreguidelines-avoid-magic-numbers.IgnoredIntegerValues
84-
value: '1;2;3;4;'
85-
- key: cppcoreguidelines-macro-usage.AllowedRegexp
86-
value: '^DEBUG_*'
87-
- key: cppcoreguidelines-macro-usage.CheckCapsOnly
88-
value: '0'
89-
- key: cppcoreguidelines-macro-usage.IgnoreCommandLineMacros
90-
value: '1'
91-
- key: cppcoreguidelines-no-malloc.Allocations
92-
value: '::malloc;::calloc'
93-
- key: cppcoreguidelines-no-malloc.Deallocations
94-
value: '::free'
95-
- key: cppcoreguidelines-no-malloc.Reallocations
96-
value: '::realloc'
97-
- key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
98-
value: '1'
99-
- key: cppcoreguidelines-owning-memory.LegacyResourceConsumers
100-
value: '::free;::realloc;::freopen;::fclose'
101-
- key: cppcoreguidelines-owning-memory.LegacyResourceProducers
102-
value: '::malloc;::aligned_alloc;::realloc;::calloc;::fopen;::freopen;::tmpfile'
103-
- key: cppcoreguidelines-pro-bounds-constant-array-index.GslHeader
104-
value: ''
105-
- key: cppcoreguidelines-pro-bounds-constant-array-index.IncludeStyle
106-
value: '0'
107-
- key: cppcoreguidelines-pro-type-member-init.IgnoreArrays
108-
value: '0'
109-
- key: cppcoreguidelines-special-member-functions.AllowMissingMoveFunctions
110-
value: '0'
111-
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
112-
value: '0'
113-
- key: fuchsia-header-anon-namespaces.HeaderFileExtensions
114-
value: ',h,hh,hpp,hxx'
115-
- key: fuchsia-restrict-system-includes.Includes
116-
value: '*'
117-
- key: google-build-namespaces.HeaderFileExtensions
118-
value: ',h,hh,hpp,hxx'
119-
- key: google-global-names-in-headers.HeaderFileExtensions
120-
value: ',h,hh,hpp,hxx'
121-
- key: google-readability-braces-around-statements.ShortStatementLines
122-
value: '1'
123-
- key: google-readability-function-size.BranchThreshold
124-
value: '4294967295'
125-
- key: google-readability-function-size.LineThreshold
126-
value: '4294967295'
127-
- key: google-readability-function-size.NestingThreshold
128-
value: '4294967295'
129-
- key: google-readability-function-size.ParameterThreshold
130-
value: '4294967295'
131-
- key: google-readability-function-size.StatementThreshold
132-
value: '800'
133-
- key: google-readability-function-size.VariableThreshold
134-
value: '4294967295'
135-
- key: google-readability-namespace-comments.ShortNamespaceLines
136-
value: '10'
137-
- key: google-readability-namespace-comments.SpacesBeforeComments
138-
value: '2'
139-
- key: google-runtime-int.SignedTypePrefix
140-
value: int
141-
- key: google-runtime-int.TypeSuffix
142-
value: ''
143-
- key: google-runtime-int.UnsignedTypePrefix
144-
value: uint
145-
- key: google-runtime-references.WhiteListTypes
146-
value: ''
147-
- key: hicpp-braces-around-statements.ShortStatementLines
148-
value: '0'
149-
- key: hicpp-function-size.BranchThreshold
150-
value: '4294967295'
151-
- key: hicpp-function-size.LineThreshold
152-
value: '4294967295'
153-
- key: hicpp-function-size.NestingThreshold
154-
value: '4294967295'
155-
- key: hicpp-function-size.ParameterThreshold
156-
value: '4294967295'
157-
- key: hicpp-function-size.StatementThreshold
158-
value: '800'
159-
- key: hicpp-function-size.VariableThreshold
160-
value: '4294967295'
161-
- key: hicpp-member-init.IgnoreArrays
162-
value: '0'
163-
- key: hicpp-move-const-arg.CheckTriviallyCopyableMove
164-
value: '1'
165-
- key: hicpp-multiway-paths-covered.WarnOnMissingElse
166-
value: '0'
167-
- key: hicpp-named-parameter.IgnoreFailedSplit
168-
value: '0'
169-
- key: hicpp-no-malloc.Allocations
170-
value: '::malloc;::calloc'
171-
- key: hicpp-no-malloc.Deallocations
172-
value: '::free'
173-
- key: hicpp-no-malloc.Reallocations
174-
value: '::realloc'
175-
- key: hicpp-special-member-functions.AllowMissingMoveFunctions
176-
value: '0'
177-
- key: hicpp-special-member-functions.AllowSoleDefaultDtor
178-
value: '0'
179-
- key: hicpp-uppercase-literal-suffix.IgnoreMacros
180-
value: '1'
181-
- key: hicpp-uppercase-literal-suffix.NewSuffixes
182-
value: ''
183-
- key: hicpp-use-auto.MinTypeNameLength
184-
value: '5'
185-
- key: hicpp-use-auto.RemoveStars
186-
value: '0'
187-
- key: hicpp-use-emplace.ContainersWithPushBack
188-
value: '::std::vector;::std::list;::std::deque'
189-
- key: hicpp-use-emplace.SmartPointers
190-
value: '::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr'
191-
- key: hicpp-use-emplace.TupleMakeFunctions
192-
value: '::std::make_pair;::std::make_tuple'
193-
- key: hicpp-use-emplace.TupleTypes
194-
value: '::std::pair;::std::tuple'
195-
- key: hicpp-use-equals-default.IgnoreMacros
196-
value: '1'
197-
- key: hicpp-use-equals-delete.IgnoreMacros
198-
value: '1'
199-
- key: hicpp-use-noexcept.ReplacementString
200-
value: ''
201-
- key: hicpp-use-noexcept.UseNoexceptFalse
202-
value: '1'
203-
- key: hicpp-use-nullptr.NullMacros
204-
value: ''
205-
- key: llvm-namespace-comment.ShortNamespaceLines
206-
value: '1'
207-
- key: llvm-namespace-comment.SpacesBeforeComments
208-
value: '1'
209-
- key: misc-definitions-in-headers.HeaderFileExtensions
210-
value: ',h,hh,hpp,hxx'
211-
- key: misc-definitions-in-headers.UseHeaderFileExtension
212-
value: '1'
213-
- key: misc-throw-by-value-catch-by-reference.CheckThrowTemporaries
214-
value: '1'
215-
- key: misc-unused-parameters.StrictMode
216-
value: '0'
217-
- key: modernize-loop-convert.MaxCopySize
218-
value: '16'
219-
- key: modernize-loop-convert.MinConfidence
220-
value: reasonable
221-
- key: modernize-loop-convert.NamingStyle
222-
value: CamelCase
223-
- key: modernize-make-shared.IgnoreMacros
224-
value: '1'
225-
- key: modernize-make-shared.IncludeStyle
226-
value: '0'
227-
- key: modernize-make-shared.MakeSmartPtrFunction
228-
value: 'std::make_shared'
229-
- key: modernize-make-shared.MakeSmartPtrFunctionHeader
230-
value: memory
231-
- key: modernize-make-unique.IgnoreMacros
232-
value: '1'
233-
- key: modernize-make-unique.IncludeStyle
234-
value: '0'
235-
- key: modernize-make-unique.MakeSmartPtrFunction
236-
value: 'std::make_unique'
237-
- key: modernize-make-unique.MakeSmartPtrFunctionHeader
238-
value: memory
239-
- key: modernize-pass-by-value.IncludeStyle
240-
value: llvm
241-
- key: modernize-pass-by-value.ValuesOnly
242-
value: '0'
243-
- key: modernize-raw-string-literal.ReplaceShorterLiterals
244-
value: '0'
245-
- key: modernize-replace-auto-ptr.IncludeStyle
246-
value: llvm
247-
- key: modernize-replace-random-shuffle.IncludeStyle
248-
value: llvm
249-
- key: modernize-use-auto.MinTypeNameLength
250-
value: '5'
251-
- key: modernize-use-auto.RemoveStars
252-
value: '0'
253-
- key: modernize-use-default-member-init.IgnoreMacros
254-
value: '1'
255-
- key: modernize-use-default-member-init.UseAssignment
256-
value: '0'
257-
- key: modernize-use-emplace.ContainersWithPushBack
258-
value: '::std::vector;::std::list;::std::deque'
259-
- key: modernize-use-emplace.SmartPointers
260-
value: '::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr'
261-
- key: modernize-use-emplace.TupleMakeFunctions
262-
value: '::std::make_pair;::std::make_tuple'
263-
- key: modernize-use-emplace.TupleTypes
264-
value: '::std::pair;::std::tuple'
265-
- key: modernize-use-equals-default.IgnoreMacros
266-
value: '1'
267-
- key: modernize-use-equals-delete.IgnoreMacros
268-
value: '1'
269-
- key: modernize-use-nodiscard.ReplacementString
270-
value: '[[nodiscard]]'
271-
- key: modernize-use-noexcept.ReplacementString
272-
value: ''
273-
- key: modernize-use-noexcept.UseNoexceptFalse
274-
value: '1'
275-
- key: modernize-use-nullptr.NullMacros
276-
value: 'NULL'
277-
- key: modernize-use-transparent-functors.SafeMode
278-
value: '0'
279-
- key: modernize-use-using.IgnoreMacros
280-
value: '1'
281-
- key: objc-forbidden-subclassing.ForbiddenSuperClassNames
282-
value: 'ABNewPersonViewController;ABPeoplePickerNavigationController;ABPersonViewController;ABUnknownPersonViewController;NSHashTable;NSMapTable;NSPointerArray;NSPointerFunctions;NSTimer;UIActionSheet;UIAlertView;UIImagePickerController;UITextInputMode;UIWebView'
283-
- key: objc-property-declaration.Acronyms
284-
value: ''
285-
- key: objc-property-declaration.IncludeDefaultAcronyms
286-
value: '1'
287-
- key: performance-faster-string-find.StringLikeClasses
288-
value: 'std::basic_string'
289-
- key: performance-for-range-copy.AllowedTypes
290-
value: ''
291-
- key: performance-for-range-copy.WarnOnAllAutoCopies
292-
value: '0'
293-
- key: performance-inefficient-string-concatenation.StrictMode
294-
value: '0'
295-
- key: performance-inefficient-vector-operation.VectorLikeClasses
296-
value: '::std::vector'
297-
- key: performance-move-const-arg.CheckTriviallyCopyableMove
298-
value: '1'
299-
- key: performance-move-constructor-init.IncludeStyle
300-
value: llvm
301-
- key: performance-type-promotion-in-math-fn.IncludeStyle
302-
value: llvm
303-
- key: performance-unnecessary-copy-initialization.AllowedTypes
304-
value: ''
305-
- key: performance-unnecessary-value-param.AllowedTypes
306-
value: ''
307-
- key: performance-unnecessary-value-param.IncludeStyle
308-
value: llvm
309-
- key: portability-simd-intrinsics.Std
310-
value: ''
311-
- key: portability-simd-intrinsics.Suggest
312-
value: '0'
313-
- key: readability-braces-around-statements.ShortStatementLines
314-
value: '0'
315-
- key: readability-function-size.BranchThreshold
316-
value: '4294967295'
317-
- key: readability-function-size.LineThreshold
318-
value: '4294967295'
319-
- key: readability-function-size.NestingThreshold
320-
value: '4294967295'
321-
- key: readability-function-size.ParameterThreshold
322-
value: '4294967295'
323-
- key: readability-function-size.StatementThreshold
324-
value: '800'
325-
- key: readability-function-size.VariableThreshold
326-
value: '4294967295'
327-
- key: readability-identifier-naming.IgnoreFailedSplit
328-
value: '0'
329-
- key: readability-implicit-bool-conversion.AllowIntegerConditions
330-
value: '0'
331-
- key: readability-implicit-bool-conversion.AllowPointerConditions
332-
value: '0'
333-
- key: readability-inconsistent-declaration-parameter-name.IgnoreMacros
334-
value: '1'
335-
- key: readability-inconsistent-declaration-parameter-name.Strict
336-
value: '0'
337-
- key: readability-magic-numbers.IgnoredFloatingPointValues
338-
value: '1.0;100.0;'
339-
- key: readability-magic-numbers.IgnoredIntegerValues
340-
value: '1;2;3;4;'
341-
- key: readability-redundant-smartptr-get.IgnoreMacros
342-
value: '1'
343-
- key: readability-simplify-boolean-expr.ChainedConditionalAssignment
344-
value: '0'
345-
- key: readability-simplify-boolean-expr.ChainedConditionalReturn
346-
value: '0'
347-
- key: readability-simplify-subscript-expr.Types
348-
value: '::std::basic_string;::std::basic_string_view;::std::vector;::std::array'
349-
- key: readability-static-accessed-through-instance.NameSpecifierNestingThreshold
350-
value: '3'
351-
- key: readability-uppercase-literal-suffix.IgnoreMacros
352-
value: '1'
353-
- key: readability-uppercase-literal-suffix.NewSuffixes
354-
value: ''
355-
- key: zircon-temporary-objects.Names
356-
value: ''
357-
...

0 commit comments

Comments
 (0)