forked from openscad/openscad
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.clang-tidy
35 lines (33 loc) · 1.36 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
Checks:
- '-*'
- 'boost-*'
# We use ranges where it suits us, but not everywhere.
- '-boost-use-ranges'
- 'bugprone-*'
# We have too much code violating this. Consider re-enabling in the future (nice to have)
- '-bugprone-easily-swappable-parameters'
# We should enable this, but we have some tricky cases to fix first
- '-bugprone-exception-escape'
# We have too much code violating this. Consider re-enabling in the future
- '-bugprone-narrowing-conversions'
# Sometimes, assignment in if make code more readable
- '-bugprone-assignment-in-if-condition'
- 'clang-analyzer-*'
- 'misc-*'
# We do allow using recursive functions
- '-misc-no-recursion'
# We have too much code violating this. Consider re-enabling in the future.
- '-misc-non-private-member-variables-in-classes'
- 'modernize-*'
# We have too much code violating this. Consider re-enabling in the future.
- '-modernize-avoid-c-arrays'
# We use nodiscard in some key classes, but it's a bit noisy to enable everywhere.
- '-modernize-use-nodiscard'
# We're not using trailing return types for regular functions
- '-modernize-use-trailing-return-type'
- 'performance-*'
# We use std::endl in some places, where we want to flush the stream
- '-performance-avoid-endl'
CheckOptions:
misc-include-cleaner.IgnoreHeaders: 'boost/.*;fontconfig/.*;glib.h'
WarningsAsErrors: ''