-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.clang-tidy
30 lines (27 loc) · 1.07 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
# misc-non-private-member-variables-in-classes is annoying because we have many POD classes/structs
# misc-include-cleaner wants us to use specific legate headers for classes, but we don't want to use these because they move sometimes upstream
# prefer instead to use the generate #include <legate.h>
# cppcoreguidelines-avoid-magic-numbers is annoying in scientific code - it considers 0.5 or 2.0 to be magic numbers
# misc-use-internal-linkage erronously wants us to use anonymous namespaces in .cuh headers
# hicpp-signed-bitwise has issues https://stackoverflow.com/a/58845898
Checks: >
-*,
performance-*,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-magic-numbers,
misc-*,
-misc-non-private-member-variables-in-classes,
-misc-include-cleaner,
-misc-use-internal-linkage,
modernize-*,
hicpp-*,
-hicpp-signed-bitwise,
readability-*,
-readability-identifier-length,
-readability-magic-numbers,
-readability-function-cognitive-complexity,
bugprone-*,
-bugprone-easily-swappable-parameters,
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
FormatStyle: google