-
Notifications
You must be signed in to change notification settings - Fork 23
/
.clang-tidy
66 lines (65 loc) · 1.98 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
---
# Enable relevant check categories first.
# Disable single checks not desired.
# Temporarily at the end (after the single comma):
# Disable those checks that have not been discussed/fixed yet.
Checks: >-
bugprone-*,
cert-*,
clang-analyzer-*,
-clang-analyzer-osx.*,
concurrency-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-modernize-use-trailing-return-type,
-modernize-use-using,
-modernize-pass-by-value,
,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-misplaced-widening-cast,
-bugprone-narrowing-conversions,
-cert-dcl50-cpp,
-cert-err33-c,
-cert-err58-cpp,
-cert-msc30-c,
-cert-msc50-cpp,
-cert-oop54-cpp,
-clang-analyzer-core.CallAndMessage,
-clang-analyzer-core.DivideZero,
-clang-analyzer-core.UndefinedBinaryOperatorResult,
-clang-analyzer-cplusplus.NewDeleteLeaks,
-clang-analyzer-deadcode.DeadStores,
-clang-analyzer-optin.cplusplus.VirtualCall,
-concurrency-mt-unsafe,
-misc-no-recursion,
-misc-non-private-member-variables-in-classes,
-misc-redundant-expression,
-modernize-avoid-c-arrays,
-modernize-loop-convert,
-modernize-use-default-member-init,
modernize-use-equals-default,
modernize-use-equals-delete,
-modernize-use-nullptr,
-modernize-use-override,
-performance-unnecessary-copy-initialization,
-performance-unnecessary-value-param,
-readability-braces-around-statements,
-readability-convert-member-functions-to-static,
-readability-else-after-return,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-inconsistent-declaration-parameter-name,
-readability-magic-numbers,
-readability-named-parameter,
-readability-redundant-member-init,
-readability-redundant-string-init,
# All enabled checks shall be reported as error.
WarningsAsErrors: "*"
# Check all headers of the project.
HeaderFilterRegex: '.*'