-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.clang-tidy
36 lines (34 loc) · 1.09 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
# Example .clang-tidy configuration for C++20 project
---
Checks: >
-*,
bugprone-*,
cppcoreguidelines-*,
modernize-*,
performance-*,
readability-*,
clang-analyzer-*,
misc-*
cert-*
WarningsAsErrors: # Treat these specific checks as errors
- modernize-* # Encourage modern C++ practices
- performance-* # Avoid performance issues
- cppcoreguidelines-* # Follow core guidelines
HeaderFilterRegex: '.*' # Apply checks to all files
AnalyzeTemporaryDtors: true # Check destruction of temporaries
FormatStyle: 'file' # Use .clang-format for code style
CheckOptions: # Customize specific checks
- key: readability-identifier-naming.VariableCase
value: camelCase
- key: readability-identifier-naming.FunctionCase
value: camelCase
- key: readability-identifier-naming.ClassCase
value: PascalCase
- key: cppcoreguidelines-pro-bounds-array-to-pointer-decay
value: 'true'
- key: performance-unnecessary-copy-initialization.Enabled
value: 'true'
- key: modernize-use-override.CheckVirtualDtor
value: 'true'
- key: modernize-avoid-c-arrays.StrictMode
value: 'true'