forked from European-XFEL/Karabo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
154 lines (154 loc) · 5.97 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# This file is part of Karabo.
#
# http://www.karabo.eu
#
# Copyright (C) European XFEL GmbH Schenefeld. All rights reserved.
#
# Karabo is free software: you can redistribute it and/or modify it under
# the terms of the MPL-2 Mozilla Public License.
#
# You should have received a copy of the MPL-2 Public License along with
# Karabo. If not, see <https://www.mozilla.org/en-US/MPL/2.0/>.
#
# Karabo is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.
---
Checks: 'clang-diagnostic-*,clang-analyzer-*'
WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: google
CheckOptions:
- key: cert-dcl16-c.NewSuffixes
value: 'L;LL;LU;LLU'
- key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField
value: '0'
- key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors
value: '1'
- key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: '1'
- key: google-readability-braces-around-statements.ShortStatementLines
value: '1'
- key: google-readability-function-size.StatementThreshold
value: '800'
- key: google-readability-namespace-comments.ShortNamespaceLines
value: '10'
- key: google-readability-namespace-comments.SpacesBeforeComments
value: '2'
- key: modernize-loop-convert.MaxCopySize
value: '16'
- key: modernize-loop-convert.MinConfidence
value: reasonable
- key: modernize-loop-convert.NamingStyle
value: CamelCase
- key: modernize-pass-by-value.IncludeStyle
value: llvm
- key: modernize-replace-auto-ptr.IncludeStyle
value: llvm
- key: modernize-use-nullptr.NullMacros
value: 'NULL'
- key: bugprone-assert-side-effect
value: '1'
- key: bugprone-bad-signal-to-kill-thread
value: '1'
- key: bugprone-bool-pointer-implicit-conversion
value: '1'
- key: bugprone-branch-clone
value: '1'
- key: bugprone-copy-constructor-init
value: '1'
- key: bugprone-dangling-handle
value: '1'
- key: bugprone-dynamic-static-initializers
value: '1'
- key: bugprone-exception-escape
value: '1'
- key: bugprone-fold-init-type
value: '1'
- key: bugprone-forward-declaration-namespace
value: '1'
- key: bugprone-forwarding-reference-overload
value: '1'
- key: bugprone-implicit-widening-of-multiplication-result
value: '1'
- key: bugprone-inaccurate-erase
value: '1'
- key: bugprone-incorrect-roundings
value: '1'
- key: bugprone-infinite-loop
value: '1'
- key: bugprone-integer-division
value: '1'
- key: bugprone-lambda-function-name
value: '1'
- key: bugprone-macro-parentheses
value: '1'
- key: bugprone-macro-repeated-side-effects
value: '1'
- key: bugprone-misplaced-widening-cast
value: '1'
- key: bugprone-move-forwarding-reference
value: '1'
- key: bugprone-multiple-statement-macro
value: '1'
- key: bugprone-no-escape
value: '1'
- key: bugprone-parent-virtual-call
value: '1'
- key: bugprone-posix-return
value: '1'
- key: bugprone-redundant-branch-condition
value: '1'
- key: bugprone-reserved-identifier
value: '1'
- key: bugprone-signed-char-misuse
value: '1'
- key: bugprone-sizeof-container
value: '1'
- key: bugprone-sizeof-expression
value: '1'
- key: bugprone-spuriously-wake-up-functions
value: '1'
- key: bugprone-string-constructor
value: '1'
- key: bugprone-string-integer-assignment
value: '1'
- key: bugprone-string-literal-with-embedded-nul
value: '1'
- key: bugprone-stringview-nullptr
value: '1'
- key: bugprone-suspicious-enum-usage
value: '1'
- key: bugprone-suspicious-include
value: '1'
- key: bugprone-suspicious-missing-comma
value: '1'
- key: bugprone-suspicious-semicolon
value: '1'
- key: bugprone-suspicious-string-compare
value: '1'
- key: bugprone-swapped-arguments
value: '1'
- key: bugprone-terminating-continue
value: '1'
- key: bugprone-throw-keyword-missing
value: '1'
- key: bugprone-too-small-loop-variable
value: '1'
- key: bugprone-undefined-memory-manipulation
value: '1'
- key: bugprone-undelegated-constructor
value: '1'
- key: bugprone-unhandled-exception-at-new
value: '1'
- key: bugprone-unhandled-self-assignment
value: '1'
- key: bugprone-unused-raii
value: '1'
- key: bugprone-unused-return-value
value: '1'
- key: bugprone-use-after-move
value: '1'
- key: bugprone-virtual-near-miss
value: '1'