-
Notifications
You must be signed in to change notification settings - Fork 18
/
.clang-tidy
46 lines (46 loc) · 1.5 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
---
# Enable ALL the things! Except not really.
#
# NOTE(thinks):
# Sadly, clang-analyzer-unix.Malloc gives false positives when using our
# custom allocators.
Checks: "-*,\
-google-readability-todo,\
clang-analyzer-*,\
-clang-analyzer-unix.Malloc,\
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,\
cert-*,\
bugprone-*,\
-bugprone-easily-swappable-parameters,\
concurrency-*,\
misc-*,\
-misc-definitions-in-headers,\
portability-*,\
openmp-*,\
readability-*,\
-readability-magic-numbers,\
-readability-identifier-length,\
-readability-function-cognitive-complexity"
WarningsAsErrors: '*'
CheckOptions:
- key: 'bugprone-argument-comment.StrictMode'
value: 'true'
- key: 'bugprone-argument-comment.CommentBoolLiterals'
value: 'true'
- key: 'bugprone-misplaced-widening-cast.CheckImplicitCasts'
value: 'true'
- key: 'bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression'
value: 'true'
- key: 'bugprone-suspicious-string-compare.WarnOnLogicalNotComparison'
value: 'true'
- key: 'readability-simplify-boolean-expr.ChainedConditionalReturn'
value: 'true'
- key: 'readability-simplify-boolean-expr.ChainedConditionalAssignment'
value: 'true'
- key: 'readability-else-after-return.WarnOnUnfixable'
value: 'true'
- key: 'readability-else-after-return.WarnOnConditionVariables'
value: 'true'
- key: 'readability-inconsistent-declaration-parameter-name.Strict'
value: 'true'
...