-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-tidy
80 lines (77 loc) · 3.6 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
# Clang-Tidy checks: https://clang.llvm.org/extra/clang-tidy/checks/list.html
Checks: 'bugprone-*,
clang-analyzer-*,
cppcoreguideline-*,
google-*,
misc-*,
modernize-*,
-modernize-avoid-c-arrays,
-modernize-concat-nested-namespaces,
-modernize-use-trailing-return-type,
performance-*,
readability-*,
-readability-magic-numbers'
WarningsAsErrors: 'bugprone-*,
-bugprone-branch-clone,
-bugprone-incorrect-roundings,
-bugprone-integer-division,
-bugprone-macro-parentheses,
-bugprone-narrowing-conversions,
clang-analyzer-*,
-clang-analyzer-cplusplus.NewDeleteLeaks,
-clang-analyzer-deadcode.DeadStores,
-clang-analyzer-security.FloatLoopCounter,
cppcoreguideline-*,
google-*,
-google-default-arguments,
-google-readability-braces-around-statements,
-google-readability-casting,
misc-*,
-misc-non-private-member-variables-in-classes,
-misc-unused-parameters,
modernize-*,
-modernize-avoid-bind,
-modernize-avoid-c-arrays,
-modernize-concat-nested-namespaces,
-modernize-deprecated-headers,
-modernize-loop-convert,
-modernize-make-unique,
-modernize-pass-by-value,
-modernize-raw-string-literal,
-modernize-use-auto,
-modernize-use-bool-literals,
-modernize-use-equals-default,
-modernize-use-nodiscard,
-modernize-use-nullptr,
-modernize-use-override,
-modernize-use-trailing-return-type,
-modernize-use-transparent-functors,
performance-*,
-performance-inefficient-string-concatenation,
-performance-move-const-arg,
-performance-type-promotion-in-math-fn,
-performance-unnecessary-value-param,
readability-*,
-readability-avoid-const-params-in-decls,
-readability-braces-around-statements,
-readability-container-size-empty,
-readability-convert-member-functions-to-static,
-readability-else-after-return,
-readability-implicit-bool-conversion,
-readability-inconsistent-declaration-parameter-name,
-readability-isolate-declaration,
-readability-magic-numbers,
-readability-make-member-function-const,
-readability-named-parameter,
-readability-qualified-auto,
-readability-redundant-control-flow,
-readability-redundant-member-init,
-readability-redundant-string-init,
-readability-simplify-boolean-expr,
-readability-string-compare,
-readability-uppercase-literal-suffix'
CheckOptions:
- key: modernize-use-auto.MinTypeNameLength
value: '15'
- key: performance-move-const-arg.CheckTriviallyCopyableMove
value: '0'