-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-tidy
40 lines (38 loc) · 2.13 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
# List of checks disabled / enabled
# -* : disable all checks by default
# cppcoreguidelines-* : all cpp core guidlines
# ,readability-*
# -readability-uppercase-literal-suffix
# ,performance-*
Checks: '
-*
,readability-identifier-naming
#,bugprone-*
#,-bugprone-macro-parentheses
#,-bugprone-use-after-move
,cppcoreguidelines-avoid-const-or-ref-data-members
,cppcoreguidelines-avoid-reference-coroutine-parameters
,cppcoreguidelines-virtual-class-destructor
'
HeaderFilterRegex: '.*'
#
# naming convention identifiers
#
# using clang-tidy for naming convention:
# https://sarcasm.github.io/notes/dev/clang-tidy.html#:~:text=The%20readability%2Didentifier%2Dnaming%20check,compile%20options%20for%20the%20file.
# https://releases.llvm.org/10.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/readability-identifier-naming.html
CheckOptions:
- { key: readability-identifier-naming.NamespaceCase, value: lower_case } # namespace should be lower_case, preferrable one word
- { key: readability-identifier-naming.ClassCase, value: CamelCase } # class names should be Capitalized
- { key: readability-identifier-naming.PrivateMemberPrefix, value: _ }
- { key: readability-identifier-naming.ProtectedMemberPrefix, value: _ }
- { key: readability-identifier-naming.PrivateMemberCase, value: camelBack } # private class members
- { key: readability-identifier-naming.ProtectedMemberCase, value: camelBack } # private class members
- { key: readability-identifier-naming.PublicMemberCase, value: lower_case } # only for structs
- { key: readability-identifier-naming.StructCase, value: CamelCase } # class names should be Capitalized
- { key: readability-identifier-naming.Method, value: CamelCase }
#- { key: readability-identifier-naming.FunctionCase, value: CamelCase }
#- { key: readability-identifier-naming.VariableCase, value: camelBack }
- { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.ConstexprVariableCase, value: UPPER_CASE }
#HeaderFilterRegex: '.hpp'