-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
64 lines (62 loc) · 2.21 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
# TODO: some of the blocklisted bugprone checks can/should be re-enabled
# one at a time (with careful code fixes made as necessary).
---
Checks: >
-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-integer-division,
-bugprone-narrowing-conversions,
-bugprone-reserved-identifier,
-bugprone-signed-char-misuse,
clang-diagnostic-shadow-field,
misc-*,
-misc-no-recursion,
-misc-non-private-member-variables-in-classes,
-misc-unconventional-assign-operator,
-misc-unused-parameters,
modernize-deprecated-headers,
modernize-loop-convert,
modernize-make-shared,
modernize-make-unique,
modernize-redundant-void-arg,
modernize-use-bool-literals,
# Disabled: there is not consensus on whether the Clang-14 behavior
# of this checker is always desirable or not, and there isn't currently
# a way to revert to the Clang-13 behavior. We may revisit this
# check the next time we examine clang-tidy options.
# modernize-use-default-member-init,
modernize-use-emplace,
modernize-use-equals-default,
modernize-use-equals-delete,
modernize-use-nullptr,
modernize-use-override,
performance-*,
-performance-inefficient-string-concatenation,
-performance-inefficient-vector-operation,
-performance-no-int-to-ptr,
readability-avoid-const-params-in-decls,
readability-braces-around-statements,
readability-const-return-type,
readability-container-size-empty,
readability-misplaced-array-index,
readability-qualified-auto,
readability-redundant-access-specifiers,
readability-redundant-control-flow,
readability-redundant-function-ptr-dereference,
readability-redundant-preprocessor,
readability-redundant-smartptr-get,
readability-redundant-string-cstr,
readability-simplify-subscript-expr,
readability-static-accessed-through-instance,
readability-static-definition-in-anonymous-namespace,
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
FormatStyle: 'file'
#CheckOptions:
# - key: modernize-use-default-member-init.UseAssignment
# value: 1
...