-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-tidy
56 lines (54 loc) · 2.58 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
---
Language: Cpp
# What checks should we enable and disable
Checks: >
-*,
misc-*,
google-readability-casting,
bugprone-*,
-bugprone-misplaced-widening-cast,
-bugprone-narrowing-conversions,
-bugprone-too-small-loop-variable,
modernize-*,
-modernize-use-noexcept,
-modernize-use-trailing-return-type,
-modernize-use-transparent-functors,
-modernize-use-nodiscard,
-modernize-return-braced-init-list,
-modernize-avoid-bind,
performance-*,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-magic-numbers,
readability-*,
-readability-magic-numbers,
-readability-convert-member-functions-to-static,
-readability-function-size,
-readability-implicit-bool-conversion,
-readability-inconsistent-declaration-parameter-name,
-readability-named-parameter,
-readability-redundant-declaration,
-readability-uppercase-literal-suffix,
-readability-braces-around-statements,
# Turn all the warnings from the checks above into errors.
WarningsAsErrors: "*"
# Customise some modules
CheckOptions:
- { key: modernize-use-default-member-init.UseAssignment, value: '1' }
- { key: modernize-use-equals-default.IgnoreMacros, value: '0' }
- { key: modernize-use-auto.MinTypeNameLength, value: '16' }
- { key: readability-identifier-naming.NamespaceCase, value: CamelCase }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase }
- { key: readability-identifier-naming.FunctionCase, value: camelBack }
- { key: readability-identifier-naming.VariableCase, value: camelBack }
- { key: readability-identifier-naming.ClassMemberCase, value: camelBack }
- { key: readability-identifier-naming.ClassMemberPrefix, value: m }
- { key: readability-identifier-naming.PrivateMemberPrefix, value: m }
- { key: readability-identifier-naming.ProtectedMemberPrefix, value: m }
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
- { key: readability-identifier-naming.EnumConstantCase, value: CamelCase }
- { key: readability-identifier-naming.ConstexprVariableCase, value: camelBack }
- { key: readability-identifier-naming.GlobalConstantCase, value: CamelCase }
- { key: readability-identifier-naming.MemberConstantCase, value: camelBack }
- { key: readability-identifier-naming.StaticConstantCase, value: camelBack }