-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.clang-tidy
78 lines (78 loc) · 3.12 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
67
68
69
70
71
72
73
74
75
76
77
78
---
InheritParentConfig: true
Checks: [
'*',
-*static-assert*,
-*avoid-c-arrays,
-cert-dcl03-c,
-abseil-*,
-android-*,
-altera-*,
-bugprone-casting-through-void,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-multi-level-implicit-pointer-conversion,
-bugprone-narrowing-conversions,
-boost-use-ranges,
-llvmlibc-*,
-cert-dcl50-cpp,
-cert-err33-c,
-cert-err34-c,
-cert-err58-cpp,
-clang-analyzer-deadcode.DeadStores,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-no-malloc,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-cstyle-cast,
-cppcoreguidelines-pro-type-vararg,
-fuchsia-*,
-google-objc*,
-google-readability-todo,
-hicpp-vararg,
-hicpp-no-array-decay,
-hicpp-no-malloc,
-hicpp-signed-bitwise,
-misc-no-recursion,
-misc-non-private-member-variables-in-classes,
-modernize-use-ranges, # things like sort and for_each don't support parallel execution policies
-modernize-use-std-print, # replace printout macro with a function when we want to autofix to use std::format gcc >=13
-performance-enum-size,
-readability-identifier-length,
-readability-function-cognitive-complexity,
-readability-magic-numbers,
]
WarningsAsErrors: '*'
FormatStyle: file
ExtraArgs: [-std=c++23]
CheckOptions:
- key: modernize-deprecated-headers.CheckHeaderFile
value: 'true'
- key: cppcoreguidelines-init-variables.IncludeStyle
value: google
- key: cppcoreguidelines-init-variables.MathHeader
value: <cmath>
- key: modernize-use-std-print.PrintfLikeFunctions
value: printf; absl::PrintF; printout
- key: modernize-use-std-print.FprintfLikeFunctions
value: fprintf; absl::FPrintF
- key: cppcoreguidelines-narrowing-conversions.IgnoreConversionFromTypes
value: size_t;ptrdiff_t;size_type;difference_type;time_t;MPI_Aint
- key: cppcoreguidelines-narrowing-conversions.WarnOnFloatingPointNarrowingConversion
value: 'false'
- key: cppcoreguidelines-narrowing-conversions.WarnOnIntegerToFloatingPointNarrowingConversion
value: 'false'
- key: cppcoreguidelines-pro-type-member-init.IgnoreArrays
value: 'true'
- key: readability-identifier-naming.NamespaceCase
value: lower_case
- key: bugprone-reserved-identifier.AllowedIdentifiers
value: '__host__;__device__'
- key: misc-include-cleaner.IgnoreHeaders # std::ranges::upper_bound is triggering warning to include a private libc++ header __algorithm/ranges_upper_bound.h
# value: '.*(ranges).*'
value: '.*(__algorithm).*'