-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.clang-tidy
More file actions
118 lines (99 loc) · 3.68 KB
/
.clang-tidy
File metadata and controls
118 lines (99 loc) · 3.68 KB
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
---
# Clang-tidy configuration for LuminousMiner
# Based on CODING_STYLE.md
Checks: >
-*,
readability-identifier-naming,
readability-braces-around-statements,
readability-implicit-bool-conversion,
readability-const-return-type,
readability-qualified-auto,
modernize-use-default-member-init,
modernize-use-nullptr,
modernize-use-override,
cppcoreguidelines-init-variables,
misc-const-correctness,
bugprone-use-after-move,
bugprone-macro-parentheses,
performance-unnecessary-copy-initialization,
performance-move-const-arg
WarningsAsErrors: ''
HeaderFilterRegex: 'sources/.*'
FormatStyle: file
CheckOptions:
############################################################
# Naming conventions (CODING_STYLE.md)
# - camelCase : variables, functions, parameters, members
# - UpperCase : class, struct, enum, type alias
# - UPPER_CASE : constexpr, enum constants
# - lower_case : namespaces
############################################################
# Namespaces: lowercase
- key: readability-identifier-naming.NamespaceCase
value: lower_case
# Classes and structs: UpperCamelCase (PascalCase)
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.StructCase
value: CamelCase
# Enums: UpperCamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
# Enum constants: UPPER_CASE
- key: readability-identifier-naming.EnumConstantCase
value: UPPER_CASE
# Type aliases and typedefs: UpperCamelCase
- key: readability-identifier-naming.TypeAliasCase
value: CamelCase
- key: readability-identifier-naming.TypedefCase
value: CamelCase
# Functions and methods: camelCase
- key: readability-identifier-naming.FunctionCase
value: camelBack
- key: readability-identifier-naming.MethodCase
value: camelBack
# Variables: camelCase
- key: readability-identifier-naming.VariableCase
value: camelBack
- key: readability-identifier-naming.LocalVariableCase
value: camelBack
- key: readability-identifier-naming.MemberCase
value: camelBack
- key: readability-identifier-naming.PrivateMemberCase
value: camelBack
- key: readability-identifier-naming.ProtectedMemberCase
value: camelBack
- key: readability-identifier-naming.PublicMemberCase
value: camelBack
- key: readability-identifier-naming.StaticVariableCase
value: camelBack
# Parameters: camelCase
- key: readability-identifier-naming.ParameterCase
value: camelBack
# Constexpr variables: UPPER_CASE
- key: readability-identifier-naming.ConstexprVariableCase
value: UPPER_CASE
# Template parameters
- key: readability-identifier-naming.TemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.ValueTemplateParameterCase
value: UPPER_CASE
############################################################
# auto: only for iterators and long types
############################################################
- key: readability-qualified-auto.AddConstToQualified
value: 'true'
############################################################
# Member initialization in declaration
############################################################
- key: modernize-use-default-member-init.UseAssignment
value: 'false'
############################################################
# const-correctness
############################################################
- key: misc-const-correctness.TransformValues
value: 'true'
- key: misc-const-correctness.TransformReferences
value: 'true'
- key: misc-const-correctness.TransformPointersAsValues
value: 'false'