forked from aseprite/laf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
66 lines (66 loc) · 1.94 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
56
57
58
59
60
61
62
63
64
65
66
#
# Disabled or configured checks:
#
# bugprone-easily-swappable-parameters: We have a lot of functions
# with (int, int) or (string, string) so it does't make sense to enable
# this option.
#
# readability-braces-around-statements: We use a lot of:
# if (cond)
# stmt;
# else
# stmt;
# and there is no way to allow this with this check.
#
# readability-function-cognitive-complexity: We have this disabled
# temporarily, but it'd be nice to enable this with a high threshold
# in the future.
#
# readability-identifier-length: We use a lot of short names like x,
# y, w, h so we prefer to remove this.
#
# readability-magic-numbers: We use a lot of magic numbers like 8, 16,
# 24 for masks like 0xFF00, etc.
#
# readability-isolate-declaration: We use multiple declarations
# several times (e.g. int x, y, etc.)
#
# readability-uppercase-literal-suffix: We use a lot of 0.0f, but in a
# future we might enable this.
#
# readability-named-parameter: We prefer misc-unused-parameters to
# remove a parameter name that is not used.
#
# misc-use-anonymous-namespace: We use anonymous namespaces or static
# functions indifferently.
#
# misc-non-private-member-variables-in-classes: We use structs with
# all public members in some cases.
#
---
Checks: >
-*,
bugprone-*,
clang-analyzer-*,
concurrency-*,
misc-*,
performance-*,
portability-*,
readability-*,
-bugprone-easily-swappable-parameters,
-bugprone-narrowing-conversions,
-misc-use-anonymous-namespace,
-readability-braces-around-statements,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-isolate-declaration,
-readability-magic-numbers,
-readability-named-parameter,
-readability-uppercase-literal-suffix
WarningsAsErrors: ''
CheckOptions:
- key: readability-implicit-bool-conversion.AllowPointerConditions
value: true
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: true
...