-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-tidy
36 lines (36 loc) · 2.07 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
Checks:
- 'performance*,portability*,bugprone*,clang-analyzer*,cert*,concurrency*'
- '-bugprone-easily-swappable-parameters'
- '-performance-no-int-to-ptr'
- '-bugprone-lambda-function-name'
- '-bugprone-dynamic-static-initializers'
- '-bugprone-narrowing-conversions'
- '-cert-err58-cpp'
# catch2 uses operator overloading to build its error messages
# which triggers this check
- '-bugprone-chained-comparison'
# this is really aggressive and produces a lot of false positives
- '-performance-enum-size'
CheckOptions:
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-identifier-naming.ParameterCase, value: aNy_CasE }
- { key: readability-identifier-naming.LocalVariableCase, value: aNy_CasE }
- { key: readability-identifier-naming.ClassMemberCase, value: CamelCase }
- { key: readability-identifier-naming.ClassMemberPrefix, value: g }
- { key: readability-identifier-naming.PrivateMemberCase, value: CamelCase }
- { key: readability-identifier-naming.PrivateMemberPrefix, value: m }
- { key: readability-identifier-naming.UnionCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.EnumCase, value: CamelCase }
- { key: readability-identifier-naming.EnumConstantCase, value: CamelCase }
- { key: readability-identifier-naming.EnumConstantPrefix, value: e }
- { key: readability-identifier-naming.TypedefCase, value: lower_case }
- { key: readability-identifier-naming.TypedefSuffix, value: _t }
- { key: readability-identifier-naming.TypeAliasCase, value: CamelCase }
- { key: readability-identifier-naming.GlobalConstantCase, value: CamelCase }
- { key: readability-identifier-naming.GlobalConstantPrefix, value: k }
- { key: readability-identifier-naming.GlobalVariableCase, value: CamelCase }
- { key: readability-identifier-naming.GlobalVariablePrefix, value: g }
- { key: bugprone-lambda-function-name.IgnoreMacros, value: true }
HeaderFilterRegex: ''