-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-tidy
52 lines (45 loc) · 1.74 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
UseColor: true
Checks: >
cppcoreguidelines-*,
google-*,
performance-*,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-avoid-magic-numbers,
-google-readability-todo,
-performance-unnecessary-value-param,
-google-readability-braces-around-statements,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-pro-type-cstyle-cast,
-clang-diagnostic-builtin-macro-redefined,
-google-readability-casting,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-type-member-init,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-pro-type-union-access
#
HeaderFilterRegex: ".*"
# HeaderFilterRegex: "^((?!catch2).)*$" # DOES NOT WORK FOR CPP... only HPP...
#
# HeaderFilterRegex: '^((?!tests/thirdparty/|/external/).)*$' # DOES NOT WORK
#
#
# disable: cppcoreguidelines-pro-type-union-access
# how to disable: bugprone-easily-swappable-parameters
# bugprone-*,
# -cppcoreguidelines-pro-type-union-access,
# -bugprone-easily-swappable-parameters
# TODO: include 'performance-unnecessary-value-param'
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)$'