-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-tidy
More file actions
95 lines (83 loc) · 2.99 KB
/
Copy path.clang-tidy
File metadata and controls
95 lines (83 loc) · 2.99 KB
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
Checks: >
clang-diagnostic-*,
clang-analyzer-*,
performance-*,
concurrency-*,
portability-*,
cert-*,
bugprone-*,
-bugprone-easily-swappable-parameters,
misc-*,
-misc-non-private-member-variables-in-classes,
-misc-use-anonymous-namespace,
readability-*,
-readability-identifier-length,
-readability-magic-numbers,
# cppcoreguidelines-*,
# -cppcoreguidelines-pro-bounds-pointer-arithmetic,
# -cppcoreguidelines-avoid-magic-numbers,
cppcoreguidelines-narrowing-conversions,
cppcoreguidelines-slicing,
cppcoreguidelines-special-member-functions,
cppcoreguidelines-explicit-virtual-functions,
cppcoreguidelines-performance-unnecessary-value-param,
cppcoreguidelines-performance-for-range-copy,
cppcoreguidelines-performance-move-const-arg,
cppcoreguidelines-rvalue-reference-param-not-moved,
cppcoreguidelines-interfaces-global-init,
cppcoreguidelines-prefer-member-initializer,
cppcoreguidelines-init-variable,
cppcoreguidelines-pro-type-*,
modernize-*,
-modernize-use-auto,
-modernize-use-trailing-return-type,
WarningsAsErrors: ""
HeaderFilterRegex: ".*"
FormatStyle: file
CheckOptions:
- key: performance-move-const-arg.CheckTriviallyCopyableMove
value: false
- key: performance-unnecessary-value-param.AllowedTypes
value: "std::string_view;std::span"
- key: cppcoreguidelines-rvalue-reference-param-not-moved.AllowPartialMove
value: true
- key: cppcoreguidelines-rvalue-reference-param-not-moved.IgnoreUnnamedParams
value: true
- key: modernize-use-auto.MinTypeNameLength
value: 5
- key: modernize-use-nullptr.NullMacros
value: "NULL"
- key: modernize-loop-convert.MinConfidence
value: reasonable
- key: modernize-pass-by-value.IncludeStyle
value: llvm
- key: modernize-use-emplace.ContainersWithPushBack
value: "::std::vector;::std::list;::std::deque"
- key: modernize-use-emplace.SmartPointers
value: "::std::shared_ptr;::std::unique_ptr"
- key: performance-for-range-copy.WarnOnAllAutoCopies
value: true
- key: performance-inefficient-string-concatenation.StrictMode
value: true
- key: performance-unnecessary-copy-initialization.AllowedTypes
value: "std::string_view;std::span"
- key: bugprone-use-after-move.CheckMove
value: true
- key: bugprone-dangling-handle.HandleClasses
value: "std::string_view;std::span;std::experimental::string_view"
- key: readability-function-cognitive-complexity.Threshold
value: 60
- key: readability-function-size.LineThreshold
value: 150
- key: readability-simplify-boolean-expr.ChainedConditionalReturn
value: true
- key: readability-simplify-boolean-expr.ChainedConditionalAssignment
value: true
- key: readability-qualified-auto.AddConstToQualified
value: true
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: true
- key: misc-const-correctness.WarnPointersAsValues
value: true
- key: misc-const-correctness.TransformPointersAsValues
value: true