-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy path.clang-tidy
More file actions
59 lines (55 loc) · 2.02 KB
/
.clang-tidy
File metadata and controls
59 lines (55 loc) · 2.02 KB
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
---
Checks: >
bugprone-use-after-move,
misc-static-assert,
readability-simplify-boolean-expr,
readability-static-accessed-through-instance,
readability-suspicious-call-argument,
-clang-analyzer-optin.mpi*,
-performance-noexcept-destructor,
-readability-magic-numbers,
performance-unnecessary-value-param,
performance-unnecessary-copy-initialization,
performance-for-range-copy,
performance-no-automatic-move,
# Future options that are likely to be added:
#
# hicpp-signed-bitwise,
# bugprone-throwing-static-initialization
# readability-redundant-inline-specifier,
# readability-redundant-parentheses, (not available yet in llvm 20)
# cppcoreguidelines-narrowing-conversions,
# google-build-namespaces,
# modernize-use-nullptr,
# modernize-use-override,
# performance-*,
# performance-move-const-arg,
# readability-else-after-return,
# readability-math-missing-parentheses,
# readability-named-parameter,
# readability-non-const-parameter,
# readability-string-compare,
# -clang-analyzer-optin.mpi* to avoid crash from llvm 15 to 17
# -readability-magic-numbers, to avoid false positives
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.FunctionCase
value: lower_case
- key: readability-identifier-naming.MemberCase
value: lower_case
- key: readability-identifier-naming.ParameterCase
value: lower_case
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: lower_case
- key: readability-identifier-naming.IgnoreMainLikeFunctions
value: 1
- key: readability-redundant-member-init.IgnoreBaseInCopyConstructors
value: 1
- key: modernize-use-default-member-init.UseAssignment
value: 1
#UseColor: true