-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
44 lines (44 loc) · 1.78 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
FormatStyle: file
Checks: >
-*,
bugprone-*,
cert-*,
clang-analyzer-*,
clang-diagnostic-*,
concurrency-*,
cppcoreguidelines-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-bugprone-easily-swappable-parameters,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-pro-type-union-access,
-readability-braces-around-statements,
CheckOptions:
cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor: true
readability-implicit-bool-conversion.AllowPointerConditions: true
################################
# Identifier naming convention #
################################
readability-identifier-naming.NamespaceCase: CamelCase
readability-identifier-naming.TypeAliasCase: CamelCase
readability-identifier-naming.TypedefCase: CamelCase
readability-identifier-naming.ClassCase: CamelCase
readability-identifier-naming.StructCase: CamelCase
readability-identifier-naming.UnionCase: CamelCase
readability-identifier-naming.EnumCase: CamelCase
readability-identifier-naming.EnumConstantCase: CamelCase
readability-identifier-naming.MemberCase: CamelCase
readability-identifier-naming.PrivateMemberCase: CamelCase
readability-identifier-naming.PrivateMemberPrefix: m_
readability-identifier-naming.ParameterCase: camelBack
readability-identifier-naming.VariableCase: CamelCase
readability-identifier-naming.LocalVariableCase: camelBack
readability-identifier-naming.FunctionCase: CamelCase
readability-identifier-naming.TemplateParameterCase: CamelCase
readability-identifier-naming.TemplateParameterPrefix: T
readability-identifier-naming.MacroDefinitionCase: UPPER_CASE
# NOTE: workaround (https://github.com/llvm/llvm-project/issues/46097)
readability-identifier-naming.TypeTemplateParameterIgnoredRegexp: expr-type