-
Notifications
You must be signed in to change notification settings - Fork 2
/
.clang-tidy
55 lines (55 loc) · 1.93 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
---
FormatStyle: file
UseColor: true
Checks:
- bugprone-*
- concurrency-*
- misc-*
- performance-*
- readability-*
- -clang-analyzer-valist.Uninitialized # false positives
- -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling
- -bugprone-easily-swappable-parameters
- -bugprone-multi-level-implicit-pointer-conversion
- -readability-identifier-length
- -readability-magic-numbers
- -misc-include-cleaner
# Unnecessary and slow
- -bugprone-sizeof-container # C++ only
- -bugprone-multiple-statement-macro # We require braces for conditionals
CheckOptions:
- key: bugprone-argument-comment.StrictMode
value: true
- key: bugprone-not-null-terminated-result.WantToUseSafeFunctions
value: false
# `__` in middle of identifer only reserved in C++
- key: bugprone-reserved-identifier.AllowedIdentifiers
value: "[^_].*"
- key: readability-function-cognitive-complexity.DescribeBasicIncrements
value: false
- key: readability-function-cognitive-complexity.IgnoreMacros
value: true
- key: readability-inconsistent-declaration-parameter-name.IgnoreMacros
value: false
- key: readability-inconsistent-declaration-parameter-name.Strict
value: true
- key: readability-identifier-naming.MacroDefinitionCase
value: UPPER_CASE
- key: readability-identifier-naming.MacroDefinitionIgnoredRegexp
value: _GNU_SOURCE
- key: readability-identifier-naming.ConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.TypedefCase
value: CamelCase
- key: readability-identifier-naming.StructCase
value: CamelCase
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.FunctionCase
value: lower_case
- key: readability-identifier-naming.ParameterCase
value: lower_case
- key: readability-identifier-naming.VariableCase
value: lower_case