-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
.clang-tidy
91 lines (85 loc) · 2.81 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
---
UseColor: true
WarningsAsErrors: true,*
HeaderFilterRegex: "src/"
Checks: -*
boost-*
bugprone-*
-bugprone-branch-clone
-bugprone-easily-swappable-parameters
-bugprone-exception-escape
-bugprone-unchecked-optional-access
cert-*
-cert-err58-cpp
-cert-env33-c
clang-analyzer-*
concurrency-*
-concurrency-mt-unsafe
cppcoreguidelines-*
-cppcoreguidelines-pro-bounds-array-to-pointer-decay
google-*
-google-readability-todo
misc-*
-misc-include-cleaner
-misc-no-recursion
-misc-use-anonymous-namespace
modernize-*
-modernize-use-nodiscard
-modernize-use-trailing-return-type
performance-*
portability-*
readability-*
-readability-else-after-return
-readability-implicit-bool-conversion
CheckOptions:
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: true
- key: readability-function-cognitive-complexity.IgnoreMacros
value: true
# https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-length.html
- key: readability-identifier-length.IgnoredVariableNames
value: ^(c|op|i)$
- key: readability-identifier-length.IgnoredParameterNames
value: ^(c|op|os)$
- key: readability-identifier-length.IgnoredLoopCounterNames
value: ^[cij]$
# https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-naming.html
# CamelCase represents types and enum constants.
- key: readability-identifier-naming.AbstractClassCase
value: CamelCase
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.StructCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.TypeAliasCase
value: CamelCase
- key: readability-identifier-naming.ConceptCase
value: CamelCase
- key: readability-identifier-naming.TemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.EnumConstantCase
value: CamelCase
# camelBack represents data.
- key: readability-identifier-naming.FunctionCase
value: camelBack
- key: readability-identifier-naming.MethodCase
value: camelBack
- key: readability-identifier-naming.VariableCase
value: camelBack
- key: readability-identifier-naming.LocalConstantCase
value: camelBack
- key: readability-identifier-naming.LocalVariableCase
value: camelBack
- key: readability-identifier-naming.MemberCase
value: camelBack
- key: readability-identifier-naming.NamespaceCase
value: camelBack
# UPPER_CASE represents something shared across the entire program.
- key: readability-identifier-naming.MacroDefinitionCase
value: UPPER_CASE
- key: readability-identifier-naming.GlobalConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.GlobalVariableCase
value: UPPER_CASE