-
Notifications
You must be signed in to change notification settings - Fork 5
/
.clang-tidy
87 lines (87 loc) · 3.52 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
{
Checks: '*,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-hicpp-no-array-decay,
-fuchsia-default-arguments,
-fuchsia-overloaded-operator,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-hicpp-avoid-c-arrays,-google-readability-casting,
-cppcoreguidelines-pro-bounds-constant-array-index,
-modernize-avoid-c-arrays,
-cppcoreguidelines-avoid-c-arrays,
-modernize-use-equals-default,
-hicpp-use-equals-default,
-google-runtime-references,
-google-explicit-constructor,
-hicpp-explicit-conversions,
-misc-non-private-member-variables-in-classes,
-cppcoreguidelines-special-member-functions,
-modernize-use-nodiscard,
-hicpp-special-member-functions,
-llvm-header-guard,
-google-runtime-int,
-readability-isolate-declaration,
-fuchsia-default-arguments-calls,
-modernize-use-trailing-return-type,
-bugprone-branch-clone,
-fuchsia-default-arguments-declarations,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-pro-type-cstyle-cast,
-cppcoreguidelines-pro-type-vararg,
-android-cloexec-pipe,
-hicpp-signed-bitwise,
-cert-err58-cpp,
-hicpp-vararg,-abseil-string-find-startswith,
-misc-definitions-in-headers,
-clang-analyzer-valist.Uninitialized,
-android-cloexec-open,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-non-private-member-variables-in-classes,
-fuchsia-statically-constructed-objects,
-modernize-return-braced-init-list,
-clang-analyzer-unix.Vfork,
-clang-analyzer-security.insecureAPI.vfork,
-cppcoreguidelines-init-variables,
readability-identifier-naming,
-google-readability-todo,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-pro-type-reinterpret-cast,
-llvmlibc-*,
-readability-function-cognitive-complexity,
-altera-struct-pack-align,
-bugprone-easily-swappable-parameters,
-altera-unroll-loops,
-altera-id-dependent-backward-branch,
-clang-diagnostic-unused-command-line-argument,
-clang-diagnostic-unneeded-internal-declaration,
-readability-convert-member-functions-to-static,
-misc-unused-parameters,
-misc-include-cleaner,
-performance-avoid-endl,
-misc-use-anonymous-namespace,
-performance-enum-size,
-cppcoreguidelines-avoid-const-or-ref-data-members,
-cppcoreguidelines-noexcept-move-operations,
-clang-analyzer-core.UndefinedBinaryOperatorResult,
-misc-header-include-cycle,
-misc-const-correctness,
-hicpp-noexcept-move,
-cppcoreguidelines-avoid-do-while,
-readability-static-accessed-through-instance,
-performance-noexcept-move-constructor,
-hicpp-use-emplace,
-readability-avoid-nested-conditional-operator,
-modernize-use-emplace,
-readability-identifier-length',
WarningsAsErrors: '*',
CheckOptions: [
{ key: readability-identifier-naming.ClassCase, value: CamelCase },
{ key: readability-identifier-naming.VariableCase, value: lower_case },
{ key: readability-identifier-naming.FunctionCase, value: lower_case },
{ key: readability-identifier-naming.ParameterCase, value: lower_case },
{ key: readability-identifier-naming.StaticConstantCase, value: lower_case },
{ key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE },
{ key: readability-identifier-naming.GlobalConstantPointerCase, value: UPPER_CASE },
{ key: readability-identifier-naming.ConstexprVariableCase, value: UPPER_CASE },
]
}