-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
68 lines (51 loc) · 1.89 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
66
UseColor: true
Checks: >
bugprone-*,
clang-analyzer-cplusplus*,
concurrency-*,
cppcoreguidelines-*,
misc-*,
modernize-*,
performance-*,
readability-*,
# Bazel does this for determinism,
-clang-diagnostic-builtin-macro-redefined,
# suppress due to assert,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
# short names are fine for short lifetimes,
-readability-identifier-length,
# allow unused variables to be unnamed,
-readability-named-parameter,
# C-arrays necessary as function args,
-modernize-avoid-c-arrays,
# use iterators as abstractions, not pointers,
-readability-qualified-auto,
# it's okay for exceptions to escape main,
-bugprone-exception-escape,
# false positive with spaceship operator,
# https://reviews.llvm.org/D95714?id=320393,
-modernize-use-nullptr,
# segfaults with mp-units,
-modernize-use-trailing-return-type,
# disable common aliases,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-c-copy-assignment-signature,
-cppcoreguidelines-explicit-virtual-functions,
-cppcoreguidelines-non-private-member-variables-in-classes,
# disable EXTREMELY SLOW checks,
-bugprone-reserved-identifier,
-readability-identifier-naming,
-misc-confusable-identifiers,
CheckOptions:
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: true
- key: performance-move-const-arg.CheckTriviallyCopyableMove
value: false
# only lint files coming from this project
HeaderFilterRegex: '__main__/'
# clang-diagnostic-builtin-macro-redefined must be manually suppressed here
# https://github.com/erenon/bazel_clang_tidy/issues/29
# https://github.com/llvm/llvm-project/issues/56709
#
WarningsAsErrors: '*,-clang-diagnostic-builtin-macro-redefined'