Debian Codegraph @

.clang-tidy

raw
1 ---
2 # Configuration file for clang-tidy
3 # This configuration is tailored for the libuv C library project
4
5 # Use default checks with minimal necessary disables
6 Checks:
7 # don't suggest reordering struct definitions
8 - -clang-analyzer-optin.performance.Padding
9 # allow memcpy (instead of memcpy_s)
10 - -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling
11 # allow strcpy
12 - -clang-analyzer-security.insecureAPI.strcpy
13 # allow TBAA
14 - -clang-analyzer-unix.MallocSizeof
15 # always allow `if () statement;` instead of `if () { statement; }`
16 - -readability-braces-around-statements
17 # allow any use of case and _ conventions in names
18 - -readability-identifier-naming
19 # allow defining a function prototype without naming all arguments
20 - -readability-named-parameter
21 # allow 1u instead of 1U constants
22 - -readability-uppercase-literal-suffix
23
24 # Configure specific check options
25 CheckOptions:
26 - key: performance-unnecessary-value-param.AllowedTypes
27 value: 'uv_.*_t'
28 - key: readability-braces-around-statements.ShortStatementLines
29 value: '2'
30 - key: readability-function-size.LineThreshold
31 value: '150'
32 - key: readability-function-size.StatementThreshold
33 value: '80'
34 - key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
35 value: 'true'
36
37 # Header filter - only analyze project files, not system headers
38 HeaderFilterRegex: '^.*/(src|include|test)/.*\.(h|c)$'
39
40 # Format style for fix suggestions
41 FormatStyle: file
42
43 # Treat warnings as errors
44 WarningsAsErrors: false
45
46 # Use color, even when run through a program like ninja
47 UseColor: true