forked from alpaka-group/llama
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
90 lines (89 loc) · 4.05 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
79
80
81
82
83
84
85
86
87
88
89
90
---
# bugprone-forward-declaration-namespace # too many false positives in LLAMA
# cppcoreguidelines-macro-usage # too many macros flagged, which cannot be replaced by constexpr
# bugprone-exception-escape # bgruber is fine with exceptions escaping main we cannot add main as an exception
# readability-misleading-indentation # many false positives because of constexpr if
# readability-static-accessed-through-instance # flags threadIdx/blockIdx in CUDA code
# cert-err58-cpp # errors in Catch2
# fuchsia-statically-constructed-objects # too much noise with Catch2
# bugprone-easily-swappable-parameters # too noisy
# altera-struct-pack-align # too noisy, flags e.g. all traits
# google-runtime-int # too noisy
Checks: >
*,
-bugprone-exception-escape,
-bugprone-forward-declaration-namespace,
-bugprone-easily-swappable-parameters,
-cert-err58-cpp,
-cert-msc32-c,
-cert-msc51-cpp,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-reinterpret-cast,
-fuchsia-default-arguments-calls,
-fuchsia-default-arguments-declarations,
-fuchsia-overloaded-operator,
-fuchsia-trailing-return,
-google-build-using-namespace,
-google-readability-braces-around-statements,
-google-runtime-int,
-google-runtime-references,
-hicpp-avoid-c-arrays,
-hicpp-braces-around-statements,
-hicpp-named-parameter,
-hicpp-uppercase-literal-suffix,
-llvm-qualified-auto,
-llvmlibc-callee-namespace,
-llvmlibc-implementation-in-namespace,
-llvmlibc-restrict-system-libc-headers,
-misc-non-private-member-variables-in-classes,
-modernize-avoid-c-arrays,
-modernize-use-nodiscard,
-openmp-use-default-none,
-portability-simd-intrinsics,
-readability-braces-around-statements,
-readability-magic-numbers,
-readability-named-parameter,
-readability-uppercase-literal-suffix,
-readability-function-cognitive-complexity,
-readability-static-accessed-through-instance,
-readability-identifier-length,
-readability-qualified-auto,
-altera-struct-pack-align,
-altera-unroll-loops,
-altera-id-dependent-backward-branch,
-misc-no-recursion,
-llvm-header-guard,
-cppcoreguidelines-macro-usage,
-fuchsia-statically-constructed-objects,
-cppcoreguidelines-pro-type-union-access,
-fuchsia-multiple-inheritance,
-hicpp-signed-bitwise,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-hicpp-no-array-decay,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-avoid-const-or-ref-data-members
WarningsAsErrors: '*'
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: none
User: ''
CheckOptions:
- { key: readability-identifier-naming.ClassCase, value: CamelCase}
- { key: readability-identifier-naming.EnumCase, value: CamelCase}
- { key: readability-identifier-naming.FunctionCase, value: camelBack}
- { key: readability-identifier-naming.StructCase, value: CamelCase}
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE}
- { key: readability-identifier-naming.NamespaceCase, value: camelBack}
# - { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase} # bug in C++20: https://bugs.llvm.org/show_bug.cgi?id=46752
- { key: readability-identifier-naming.TemplateTemplateParameterCase, value: CamelCase}
- { key: readability-identifier-naming.TypedefCase, value: CamelCase}
# - { key: readability-identifier-naming.TypeTemplateParameterCase, value: CamelCase} # bug in C++20: https://bugs.llvm.org/show_bug.cgi?id=46752
- { key: readability-identifier-naming.UnionCase, value: CamelCase}
- { key: readability-identifier-naming.ValueTemplateParameterCase, value: CamelCase}
- { key: readability-identifier-naming.VariableCase, value: camelBack}
- { key: performance-for-range-copy.WarnOnAllAutoCopies, value: 1}