-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-tidy
74 lines (57 loc) · 1.98 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
Checks: >
-*,
# General modern C++ best practices
cppcoreguidelines-*,
modernize-*,
readability-*,
# Security and safety checks
security-*,
bugprone-*,
clang-analyzer-*,
# Performance improvements
performance-*,
readability-identifier-naming,
# Recommended Google and LLVM guidelines
google-*,
llvm-*
CheckOptions:
# Enforce Microsoft naming conventions for better readability and maintenance
# Class names should follow CamelCase (PascalCase)
- key: readability-identifier-naming.ClassCase
value: CamelCase
# Method names should follow CamelCase (PascalCase)
- key: readability-identifier-naming.FunctionCase
value: CamelCase
# Variable names should follow camelCase
- key: readability-identifier-naming.VariableCase
value: camelCase
# Member variable names should follow camelCase
- key: readability-identifier-naming.MemberCase
value: camelCase
# Global variable names should follow g_camelCase
- key: readability-identifier-naming.GlobalVariableCase
value: g_camelCase
# Static variable names should follow s_camelCase
- key: readability-identifier-naming.StaticVariableCase
value: s_camelCase
# Global constant names should follow PascalCase
- key: readability-identifier-naming.GlobalConstantCase
value: CamelCase
# Adjust specific modernize checks
- key: modernize-use-trailing-return-type.IgnoreMacros
value: 'true'
- key: modernize-avoid-bind
value: 'false'
# Customize performance checks
- key: performance-unnecessary-copy-initialization.Enabled
value: 'true'
- key: performance-move-const-arg.Enabled
value: 'true'
- key: performance-noexcept-move-constructor.Enabled
value: 'true'
# Enforce usage of nullptr instead of NULL
- key: modernize-use-nullptr
value: 'true'
WarningsAsErrors: 'true' # Treat warnings as errors for strict code quality
HeaderFilterRegex: '.*' # Apply checks to all headers
FormatStyle: mozilla # Use Mozilla's code style guidelines