-
Notifications
You must be signed in to change notification settings - Fork 20
/
.clang-tidy
130 lines (128 loc) · 4.4 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
Checks: >
modernize-use-override,
bugprone-infinite-loop,
google-readability-casting,
cppcoreguidelines-narrowing-conversions,
readability-implicit-bool-conversion,
bugprone-macro-parentheses,
readability-misleading-indentation,
misc-redundant-expression,
readability-redundant-declaration,
readability-make-member-function-const,
readability-non-const-parameter,
readability-qualified-auto,
misc-misplaced-const,
misc-unused-parameters,
readability-simplify-boolean-expr,
clang-analyzer-core.NullDereference,
bugprone-bool-pointer-implicit-conversion,
bugprone-copy-constructor-init,
bugprone-exception-escape,
bugprone-fold-init-type,
bugprone-forwarding-reference-overload,
bugprone-inaccurate-erase,
bugprone-incorrect-roundings,
bugprone-misplaced-operator-in-strlen-in-alloc,
bugprone-misplaced-pointer-arithmetic-in-alloc,
bugprone-misplaced-widening-cast,
bugprone-move-forwarding-reference,
bugprone-multiple-statement-macro,
bugprone-not-null-terminated-result,
bugprone-parent-virtual-call,
bugprone-reserved-identifier,
bugprone-signed-char-misuse,
bugprone-sizeof-container,
bugprone-sizeof-expression,
bugprone-string-constructor,
bugprone-string-integer-assignment,
bugprone-string-literal-with-embedded-nul,
bugprone-suspicious-enum-usage,
bugprone-suspicious-memset-usage,
bugprone-suspicious-missing-comma,
bugprone-suspicious-semicolon,
bugprone-suspicious-string-compare,
bugprone-terminating-continue,
bugprone-throw-keyword-missing,
bugprone-too-small-loop-variable,
bugprone-undefined-memory-manipulation,
bugprone-undelegated-constructor,
bugprone-unhandled-self-assignment,
bugprone-unused-raii,
bugprone-unused-return-value,
bugprone-use-after-move,
cert-dcl21-cpp,
cert-dcl50-cpp,
cert-dcl58-cpp,
cert-env33-c,
cert-err52-cpp,
cert-err58-cpp,
cert-err60-cpp,
cert-flp30-c,
cert-mem57-cpp,
cppcoreguidelines-avoid-goto,
cppcoreguidelines-interfaces-global-init,
cppcoreguidelines-no-malloc,
cppcoreguidelines-pro-type-const-cast,
cppcoreguidelines-pro-type-member-init,
cppcoreguidelines-slicing,
google-runtime-operator,
google-upgrade-googletest-case,
hicpp-exception-baseclass,
misc-definitions-in-headers,
misc-misplaced-const,
misc-throw-by-value-catch-by-reference,
misc-unconventional-assign-operator,
misc-uniqueptr-reset-release,
misc-unused-parameters,
performance-for-range-copy,
performance-implicit-conversion-in-loop,
performance-move-const-arg,
performance-no-automatic-move,
performance-noexcept-move-constructor,
performance-trivially-destructible,
performance-type-promotion-in-math-fn,
performance-unnecessary-copy-initialization,
performance-unnecessary-value-param,
readability-const-return-type,
readability-container-size-empty,
readability-delete-null-pointer,
readability-implicit-bool-conversion,
readability-redundant-control-flow,
clang-analyzer-core.StackAddressEscape,
clang-analyzer-core.uninitialized.ArraySubscript,
clang-analyzer-core.UndefinedBinaryOperatorResult,
clang-analyzer-core.uninitialized.Assign,
clang-analyzer-core.uninitialized.Branch,
clang-analyzer-core.uninitialized.UndefReturn,
clang-analyzer-cplusplus.Move,
clang-analyzer-cplusplus.NewDeleteLeaks,
clang-analyzer-optin.cplusplus.UninitializedObject,
clang-analyzer-optin.cplusplus.VirtualCall,
cppcoreguidelines-avoid-non-const-global-variables,
readability-function-size,
-clang-analyzer-osx*,
-clang-analyzer-optin.mpi*,
-clang-analyzer-optin.osx*,
-clang-analyzer-apiModeling*,
-clang-analyzer-unix*,
-clang-analyzer-valist*,
-clang-analyzer-security.insecureAPI*,
-clang-analyzer-optin.performance.GCDAntipattern,
-clang-analyzer-optin.performance.Padding,
-clang-analyzer-optin.portability.UnixAPI,
-clang-analyzer-nullability*,
-clang-analyzer-deadcode.DeadStores*,
-clang-analyzer-core.uninitialized.CapturedBlockVariable,
-clang-analyzer-core.CallAndMessage,
-clang-analyzer-core.DynamicTypePropagation,
-clang-diagnostic-microsoft-template,
-readability-identifier-naming,
-readability-braces-around-statements,
-readability-inconsistent-declaration-parameter-name,
-clang-analyzer-cplusplus.NewDelete
HeaderFilterRegex: ".*include/lxgui/.*"
CheckOptions:
- key: readability-braces-around-statements.ShortStatementLines
value: '1'
- key: readability-implicit-bool-conversion.AllowPointerConditions
value: true