-
Notifications
You must be signed in to change notification settings - Fork 221
/
Copy path.clang-tidy
151 lines (149 loc) · 5.57 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
---
Checks:
- "-*"
- "misc-include-cleaner"
- "bugprone-argument-comment"
- "bugprone-assert-side-effect"
- "bugprone-assignment-in-if-condition"
- "bugprone-bad-signal-to-kill-thread"
- "bugprone-bool-pointer-implicit-conversion"
- "bugprone-branch-clone"
- "bugprone-casting-through-void"
- "bugprone-chained-comparison"
- "bugprone-compare-pointer-to-member-virtual-function"
- "bugprone-copy-constructor-init"
- "bugprone-crtp-constructor-accessibility"
- "bugprone-dangling-handle"
- "bugprone-dynamic-static-initializers"
- "-bugprone-easily-swappable-parameters"
- "bugprone-empty-catch"
# See https://github.com/CesiumGS/cesium-native/issues/348
#- "bugprone-exception-escape"
- "bugprone-fold-init-type"
- "bugprone-forward-declaration-namespace"
- "bugprone-forwarding-reference-overload"
- "bugprone-implicit-widening-of-multiplication-result"
- "bugprone-inaccurate-erase"
- "bugprone-inc-dec-in-conditions"
- "bugprone-incorrect-enable-if"
- "bugprone-incorrect-roundings"
- "bugprone-infinite-loop"
- "bugprone-unhandled-self-assignment"
- "bugprone-unchecked-optional-access"
- "bugprone-integer-division"
- "bugprone-lambda-function-name"
- "bugprone-macro-parentheses"
- "bugprone-macro-repeated-side-effects"
- "bugprone-misplaced-operator-in-strlen-in-alloc"
- "bugprone-misplaced-pointer-arithmetic-in-alloc"
# Produces a lot of results that are just extra-verbose - skipping for now
#- "bugprone-misplaced-widening-cast"
- "bugprone-move-forwarding-reference"
- "bugprone-multi-level-implicit-pointer-conversion"
- "bugprone-multiple-new-in-one-expression"
- "bugprone-multiple-statement-macro"
- "bugprone-no-escape"
- "bugprone-non-zero-enum-to-bool-conversion"
- "bugprone-not-null-terminated-result"
- "bugprone-optional-value-conversion"
- "bugprone-parent-virtual-call"
- "bugprone-pointer-arithmetic-on-polymorphic-object"
- "bugprone-posix-return"
- "bugprone-redundant-branch-condition"
- "bugprone-reserved-identifier"
- "bugprone-return-const-ref-from-parameter"
- "bugprone-shared-ptr-array-mismatch"
- "bugprone-signal-handler"
- "bugprone-sizeof-container"
- "bugprone-sizeof-expression"
- "bugprone-spuriously-wake-up-functions"
- "bugprone-standalone-empty"
- "bugprone-string-constructor"
- "bugprone-string-integer-assignment"
- "bugprone-string-literal-with-embedded-nul"
- "bugprone-stringview-nullptr"
- "bugprone-suspicious-enum-usage"
- "bugprone-suspicious-include"
- "bugprone-suspicious-memory-comparison"
- "bugprone-suspicious-memset-usage"
- "bugprone-suspicious-missing-comma"
- "bugprone-suspicious-realloc-usage"
- "bugprone-suspicious-semicolon"
- "bugprone-suspicious-string-compare"
- "bugprone-suspicious-stringview-data-usage"
- "bugprone-swapped-arguments"
- "bugprone-terminating-continue"
- "bugprone-throw-keyword-missing"
- "bugprone-too-small-loop-variable"
- "bugprone-undefined-memory-manipulation"
- "bugprone-undelegated-constructor"
#- "bugprone-unhandled-exception-at-new"
- "bugprone-unique-ptr-array-mismatch"
- "bugprone-unsafe-functions"
- "bugprone-unused-local-non-trivial-variable"
- "bugprone-unused-raii"
- "bugprone-unused-return-value"
- "bugprone-use-after-move"
- "bugprone-virtual-near-miss"
- "cppcoreguidelines-avoid-capturing-lambda-coroutines"
- "cppcoreguidelines-avoid-goto"
- "cppcoreguidelines-avoid-reference-coroutine-parameters"
- "cppcoreguidelines-interfaces-global-init"
- "cppcoreguidelines-misleading-capture-default-by-value"
- "cppcoreguidelines-no-suspend-with-lock"
- "cppcoreguidelines-prefer-member-initializer"
- "cppcoreguidelines-pro-type-cstyle-cast"
- "cppcoreguidelines-pro-type-static-cast-downcast"
- "cppcoreguidelines-pro-type-union-access"
- "cppcoreguidelines-slicing"
- "google-runtime-int"
# We should enable this one at some point, but it produces a huge number of changes
# - "misc-const-correctness"
- "misc-misleading-bidrectional"
- "misc-misleading-identifier"
- "misc-misplaced-const"
- "misc-non-copyable-objects"
- "misc-redundant-expression"
- "misc-unused-parameters"
- "misc-unused-using-decls"
- "misc-use-anonymous-namespace"
- "misc-use-internal-linkage"
- "modernize-deprecated-headers"
#- "modernize-loop-convert"
- "modernize-make-shared"
- "modernize-make-unique"
- "modernize-min-max-use-initializer-list"
- "modernize-raw-string-literal"
- "modernize-redundant-void-arg"
- "modernize-replace-auto-ptr"
#- "modernize-type-traits"
#- "modernize-use-constraints"
- "modernize-use-emplace"
- "modernize-use-equals-default"
- "modernize-use-equals-delete"
- "modernize-use-nullptr"
- "modernize-use-starts-ends-with"
# The <numbers> header is unfortunately not available in Android NDK r25b,
# which is an important target for cesium-native via Unreal Engine.
#- "modernize-use-std-numbers"
#- "modernize-use-using"
- "performance-*"
- "-performance-enum-size"
- "-readability-redundant-member-init"
WarningsAsErrors: "*"
FormatStyle: none
CheckOptions:
- key: readability-implicit-bool-conversion.AllowPointerConditions
value: "true"
- key: cppcoreguidelines-rvalue-reference-param-not-moved.AllowPartialMove
value: "true"
- key: modernize-use-auto.RemoveStars
value: "true"
- key: misc-include-cleaner.IgnoreHeaders
value: ".*cesium-async\\+\\+\\.h;.*bits\/.*.h"
- key: performance-move-const-arg.CheckTriviallyCopyableMove
value: "false"
HeaderFilterRegex: ".*"
HeaderFileExtensions: ["h"]
ExcludeHeaderFilterRegex: ".*\\.ezvcpkg\/.*"
ImplementationFileExtensions: ["cpp"]