forked from 4C-multiphysics/4C
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-tidy
69 lines (69 loc) · 2.33 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
Checks: >-
-*,
readability-identifier-naming,
readability-braces-around-statements,
readability-non-const-parameter,
readability-const-return-type,
readability-qualified-auto,
readability-redundant-control-flow,
readability-redundant-declaration,
readability-simplify-boolean-expr,
readability-string-compare,
readability-use-anyofallof,
readability-named-parameter,
readability-function-size,
readability-inconsistent-declaration-parameter-name,
cppcoreguidelines-virtual-class-destructor,
modernize-*,
performance-*,
bugprone-*,
boost-*,
-bugprone-reserved-identifier,
-modernize-use-trailing-return-type,
-readability-magic-numbers,
-modernize-use-default-member-init,
-bugprone-use-after-move,
-bugprone-unused-return-value,
-bugprone-suspicious-string-compare,
-bugprone-suspicious-include,
-bugprone-infinite-loop,
-bugprone-assert-side-effect,
-bugprone-multiple-statement-macro
CheckOptions:
- key: readability-identifier-naming.StructCase
value: CamelCase
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.FunctionCase
value: lower_case
- key: readability-identifier-naming.PrivateMemberCase
value: lower_case
- key: readability-identifier-naming.PrivateMemberSuffix
value: _
- key: readability-identifier-naming.TemplateParameterCase
value: lower_case
- key: readability-identifier-naming.TemplateTemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.TypeTemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.ValueTemplateParameterCase
value: lower_case
- key: misc-assert-side-effect.CheckFunctionCalls
value: 1
- key: misc-assert-side-effect.AssertMacros
value: 'assert'
- key: performance-unnecessary-value-param.AllowedTypes
value: '.*RCP'
- key: readability-braces-around-statements.ShortStatementLines
value: 3
# Enforced clang-tidy checks must also be added to ./utilities/code_climate/clang-tidy-config to be
# enforced by the CI!
WarningsAsErrors: >-
modernize-use-nullptr,
modernize-use-override,
readability-const-return-type,
readability-identifier-naming,
readability-inconsistent-declaration-parameter-name,
cppcoreguidelines-virtual-class-destructor