-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.clang-tidy
72 lines (67 loc) · 2.24 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
#
# Copyright 2021 The Modelbox Project Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# clang-tidy checks
# https://clang.llvm.org/extra/clang-tidy/checks/list.html
Checks: >
-*,
modernize-*,
bugprone-*,
concurrency-*,
misc-*,
readability-*,
performance-*,
portability-*,
google-*,
-modernize-use-trailing-return-type,
-modernize-avoid-c-arrays,
-modernize-make-unique,
-modernize-use-using,
-modernize-use-equals-delete,
-modernize-use-nodiscard,
-modernize-use-transparent-functors,
-modernize-deprecated-headers,
-bugprone-lambda-function-name,
-bugprone-narrowing-conversions,
-bugprone-branch-clone,
-bugprone-reserved-identifier,
-concurrency-mt-unsafe,
-misc-non-private-member-variables-in-classes,
-misc-unused-parameters,
-misc-lambda-function-name,
-misc-misplaced-widening-cast,
-misc-no-recursion,
-readability-simplify-boolean-expr,
-readability-container-size-empty,
-readability-convert-member-functions-to-static,
-readability-implicit-bool-conversion,
-readability-make-member-function-const,
-readability-magic-numbers,
-readability-use-anyofallof,
-readability-function-cognitive-complexity,
-google-readability-avoid-underscore-in-googletest-name,
-google-default-arguments,
-google-runtime-int,
-google-runtime-references,
-google-readability-casting,
-google-readability-todo,
-google-explicit-constructor,
# enable this when required
# clang-analyzer-*,
# clang-analyzer-deadcode.DeadStores,
# clang-analyzer-optin.performance.Padding,
# clang-analyzer-optin.cplusplus.VirtualCall,
# Turn all the warnings from the checks above into errors.
HeaderFilterRegex: '((?!build/)src|test/unit|test/drivers|test/function|test/mock)/*'
FormatStyle: file