-
Notifications
You must be signed in to change notification settings - Fork 25
/
.clang-tidy
60 lines (60 loc) · 1.87 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
# Optimized for Clang-Tidy v18
---
InheritParentConfig: false
WarningsAsErrors: '*'
HeaderFileExtensions: ['h','hpp']
ImplementationFileExtensions: ['cpp']
HeaderFilterRegex: '[\\\/]+(drivers|examples|orm|tests|tom)[\\\/]+.+\.(h|hpp)$'
FormatStyle: none
UseColor: true
Checks:
- -*
- bugprone-*
- clang-*
- concurrency-*
- cppcoreguidelines-*
- google-*
- llvm-*
- misc-*
- modernize-*
- performance-*
- portability-*
- readability-*
- hicpp-exception-baseclass
- hicpp-multiway-paths-covered
- -bugprone-easily-swappable-parameters
# This check is triggered for every TU so disabling
- -bugprone-macro-parentheses
- -clang-analyzer-optin.osx.*
- -clang-analyzer-osx.*
- -clang-analyzer-webkit.*
- -cppcoreguidelines-macro-usage
- -google-readability-todo
- -llvm-header-guard
- -misc-include-cleaner
- -misc-non-private-member-variables-in-classes
- -modernize-use-nodiscard
- -modernize-use-trailing-return-type
- -readability-braces-around-statements
- -readability-identifier-length
- -readability-magic-numbers
# All below are only aliases
# Enabled
- -cppcoreguidelines-avoid-c-arrays
- -cppcoreguidelines-noexcept-destructor
- -cppcoreguidelines-noexcept-move-operations
- -cppcoreguidelines-noexcept-swap
- -cppcoreguidelines-use-default-member-init
- -google-readability-function-size
- -google-readability-namespace-comments
# Disabled above too
- -cppcoreguidelines-avoid-magic-numbers
- -cppcoreguidelines-non-private-member-variables-in-classes
- -google-readability-braces-around-statements
CheckOptions:
- key: cppcoreguidelines-avoid-do-while.IgnoreMacros
value: true
- key: cppcoreguidelines-rvalue-reference-param-not-moved.AllowPartialMove
value: true
- key: llvm-namespace-comment.ShortNamespaceLines
value: '5'