-
Notifications
You must be signed in to change notification settings - Fork 5
/
.clang-tidy
70 lines (70 loc) · 2 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
# Copyright (C) The DDC development team, see COPYRIGHT.md file
#
# SPDX-License-Identifier: MIT
---
Checks:
'-*,
bugprone-*,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape,
-bugprone-integer-division,
-bugprone-narrowing-conversions,
-bugprone-unchecked-optional-access,
cert-*,
-cert-dcl21-cpp,
-cert-err58-cpp,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-init-variables,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-misleading-capture-default-by-value,
-cppcoreguidelines-missing-std-forward,
-cppcoreguidelines-narrowing-conversions,
-cppcoreguidelines-noexcept-move-operations,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-member-init,
-cppcoreguidelines-pro-type-reinterpret-cast,
google-*,
-google-readability-casting,
-google-readability-todo,
-google-runtime-int,
hicpp-*,
-hicpp-explicit-conversions,
-hicpp-member-init,
-hicpp-named-parameter,
-hicpp-noexcept-move,
-hicpp-special-member-functions,
-hicpp-static-assert,
-hicpp-use-auto,
misc-*,
-misc-header-include-cycle,
-misc-include-cleaner,
-misc-non-private-member-variables-in-classes,
-misc-redundant-expression,
-misc-static-assert,
-misc-unused-parameters,
-misc-use-anonymous-namespace,
modernize-*,
-modernize-pass-by-value,
-modernize-use-auto,
-modernize-use-nodiscard,
-modernize-use-trailing-return-type,
performance-*,
-performance-enum-size,
-performance-noexcept-move-constructor,
-performance-unnecessary-value-param,
portability-*,
readability-*,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-magic-numbers,
-readability-named-parameter,
-readability-redundant-access-specifiers'
WarningsAsErrors: '*'
CheckOptions:
cppcoreguidelines-rvalue-reference-param-not-moved.AllowPartialMove: 'true'