-
Notifications
You must be signed in to change notification settings - Fork 51
/
.clang-tidy
38 lines (35 loc) · 1.15 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
# Cannot inline comments, so here's some rationale for disabling certain checks:
#
# -clang-analyzer-security.insecureAPI.*:
# garbage check, blindly recommends using non-portable annex K functions.
# doesn't catch actual bugs.
# -misc-no-recursion
# blindly flags every single recursion regardless of whether the usage was
# safe or not.
# -misc-include-cleaner
# not compatible with scrot's existing include policy
Checks: >
performance-*,
misc-*,
android-cloexec-*,
readability-duplicate-include,
readability-misleading-indentation,
bugprone-assert-side-effect,
bugprone-macro-repeated-side-effects,
bugprone-infinite-loop,
bugprone-macro-parentheses,
bugprone-posix-return,
bugprone-reserved-identifier,
bugprone-signal-handler,
bugprone-signed-char-misuse,
bugprone-sizeof-expression,
bugprone-branch-clone,
-clang-analyzer-security.insecureAPI.*,
-misc-no-recursion,
-misc-include-cleaner,
# treat all warnings as errors
WarningsAsErrors: '*'
CheckOptions:
- key: bugprone-assert-side-effect.AssertMacros
value: 'scrotAssert'
ExtraArgs: [-std=c99,-DDEBUG]