-
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy path.clang-tidy
More file actions
39 lines (34 loc) · 1.06 KB
/
.clang-tidy
File metadata and controls
39 lines (34 loc) · 1.06 KB
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
---
# LightNVR clang-tidy configuration
# Run: clang-tidy -p build/compile_commands.json src/**/*.c
#
# To promote from reporting-only to blocking, change WarningsAsErrors to match Checks.
Checks: >
-*,
bugprone-*,
cert-*,
clang-analyzer-*,
concurrency-*,
performance-*,
portability-*,
security-*,
-bugprone-easily-swappable-parameters,
-bugprone-reserved-identifier,
-cert-dcl37-c,
-cert-dcl51-cpp,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-clang-analyzer-optin.performance.Padding,
-concurrency-mt-unsafe
# Start with no warnings-as-errors; flip this once the codebase is clean:
# WarningsAsErrors: 'bugprone-*,cert-*,clang-analyzer-*,concurrency-*,security-*'
WarningsAsErrors: ''
HeaderFilterRegex: 'include/.*\.h$'
CheckOptions:
- key: bugprone-assert-side-effect.AssertMacros
value: 'assert,ASSERT'
- key: bugprone-string-constructor.WarnOnLargeLength
value: 'true'
- key: performance-unnecessary-value-param.AllowedTypes
value: ''
- key: cert-err33-c.CheckedFunctions
value: ''