forked from redpanda-data/redpanda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
34 lines (33 loc) · 2.05 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
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,cert-*,cppcoreguidelines-*,hicpp-*,modernize-*,performance-*,misc-*,bugprone-*,-modernize-use-trailing-return-type,-modernize-use-nodiscard,-hicpp-named-parameter,-misc-include-cleaner,-clang-analyzer-optin.core.EnumCastOutOfRange'
WarningsAsErrors: 'cppcoreguidelines-avoid-capturing-lambda-coroutines,bugprone-use-after-move,bugprone-assert-side-effect,bugprone-assignment-in-if-condition,bugprone-dangling-handle,bugprone-sizeof-container,bugprone-stringview-nullptr,bugprone-unused-return-value,bugprone-suspicious-string-compare,misc-unused-using-decls,misc-unused-alias-decls,modernize-redundant-void-arg,performance-implicit-conversion-in-loop,performance-trivially-destructible,performance-no-automatic-move'
HeaderFilterRegex: '^(?!external/.*).*'
FormatStyle: file
CheckOptions:
- key: cert-dcl16-c.NewSuffixes
value: 'L;LL;LU;LLU'
- key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField
value: 0
- key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors
value: 1
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: 1
- key: modernize-loop-convert.MaxCopySize
value: 16
- key: modernize-loop-convert.MinConfidence
value: reasonable
- key: modernize-pass-by-value.IncludeStyle
value: llvm
- key: modernize-replace-auto-ptr.IncludeStyle
value: llvm
- key: modernize-use-nullptr.NullMacros
value: NULL
- key: readability-identifier-length.IgnoredVariableNames
value: ^it$
- key: readability-identifier-length.IgnoredParameterNames
value: ^(it|a|b)$
- key: readability-uppercase-literal-suffix.NewSuffixes
value: KiB;MiB;GiB;TiB
- key: hicpp-uppercase-literal-suffix.NewSuffixes
value: KiB;MiB;GiB;TiB
...