-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
30 lines (25 loc) · 919 Bytes
/
.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
UseColor: true
Checks: >
cppcoreguidelines-*,
google-*,
performance-*,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-pro-type-cstyle-cast,
-google-readability-todo,
-google-readability-braces-around-statements,
-google-readability-casting,
-performance-unnecessary-value-param,
-clang-diagnostic-builtin-macro-redefined
#
HeaderFilterRegex: ".*"
CheckOptions:
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
value: '1'
# https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/special-member-functions.html
FormatStyle: 'file'
WarningsAsErrors: "*"
# ignore protobuf and gRPC generated header (bug in union impl)
# Code '(?<!' will start a negative look behind expression
HeaderFilterRegex: 'bftevent.*(?<!\.pb\.h)$'