-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-tidy
66 lines (60 loc) · 2.71 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
---
# .clang-tidy configuration file
Checks: >
clang-analyzer-*,
-clang-analyzer-alpha.*, # Disable experimental checks
-clang-analyzer-valist.*, # Disable valist checks if not using variadic functions
-clang-analyzer-osx.*, # Disable macOS-specific checks
bugprone-*,
-bugprone-easily-swappable-parameters, # Disable if not enforcing parameter swapping
modernize-*,
-modernize-use-trailing-return-type, # Disable trailing return type suggestions
performance-*,
readability-*,
-readability-braces-around-statements, # Disable if not enforcing braces around statements
-readability-magic-numbers, # Disable if not enforcing magic number rules
concurrency-*,
portability-*,
misc-*,
-misc-non-private-member-variables-in-classes, # Disable if not enforcing private member variables
cppcoreguidelines-*,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-pro-type-vararg, # Allow vararg functions if used
-cppcoreguidelines-pro-bounds-array-to-pointer-decay, # Suppress if necessary
-cppcoreguidelines-non-private-member-variables-in-classes,
-fuchsia-*, # Disable Fuchsia OS checks
-hicpp-*, # Disable High Integrity C++ checks if not required
-mpi-*, # Disable MPI checks if not using MPI
-llvm-*,
-android-*, # Disable Android-specific checks
-google-* # Disable Google-specific style checks
WarningsAsErrors: ''
HeaderFilterRegex: '.*'
FormatStyle: file
CheckOptions:
- key: modernize-use-auto.MinTypeNameLength
value: '5'
- key: modernize-use-auto.RemoveStars
value: 'true'
- key: readability-identifier-naming.VariableCase
value: 'lower_case'
- key: readability-identifier-naming.MemberVariableCase
value: 'lower_case'
- key: readability-identifier-naming.FunctionCase
value: 'camelBack'
- key: readability-identifier-naming.ClassCase
value: 'CamelCase'
- key: readability-identifier-naming.StructCase
value: 'CamelCase'
- key: readability-identifier-naming.EnumCase
value: 'CamelCase'
- key: readability-identifier-naming.EnumConstantCase
value: 'UPPER_CASE'
- key: readability-identifier-naming.NamespaceCase
value: 'lower_case'
- key: readability-identifier-naming.MacroDefinitionCase
value: 'UPPER_CASE'
- key: cppcoreguidelines-init-variables.StrictMode
value: 'true'
- key: modernize-use-nullptr.NullMacros
value: 'NULL'