-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
46 lines (45 loc) · 3.72 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
# SPDX-FileCopyrightText: 2023 DESY and the Constellation authors
# SPDX-License-Identifier: CC0-1.0
#
# First "Checks" block enables all relevant categories
# Second "Checks" block disables all aliases (run again otherwise)
# For clang-tidy 19, re-check aliases online on clang-tidy update
Checks: [
'-*',
'bugprone-*','-bugprone-easily-swappable-parameters',
'cert-*',
'concurrency-*',
'cppcoreguidelines-*','-cppcoreguidelines-pro-bounds-pointer-arithmetic',
'google-*','-google-build-using-namespace','-google-explicit-constructor',
'hicpp-*',
'llvm-*','-llvm-header-guard','-llvm-include-order',
'misc-*',
'modernize-*','-modernize-use-designated-initializers','-modernize-use-nodiscard','-modernize-use-trailing-return-type',
'performance-*',
'portability-*',
'readability-*','-readability-identifier-length','-readability-function-cognitive-complexity','-readability-magic-numbers','-readability-redundant-access-specifiers',
'-bugprone-narrowing-conversions',
'-cert-con36-c','-cert-con54-cpp','-cert-dcl03-c','-cert-dcl16-c','-cert-dcl37-c','-cert-dcl51-cpp','-cert-dcl54-cpp','-cert-dcl59-cpp','-cert-err09-cpp','-cert-err61-cpp','-cert-exp42-c','-cert-fio38-c','-cert-flp37-c','-cert-int09-c','-cert-msc24-c','-cert-msc30-c','-cert-msc32-c','-cert-msc33-c','-cert-msc54-cpp','-cert-oop11-cpp','-cert-oop54-cpp','-cert-pos44-c','-cert-pos47-c','-cert-sig30-c','-cert-str34-c',
'-cppcoreguidelines-avoid-c-arrays','-cppcoreguidelines-avoid-magic-numbers','-cppcoreguidelines-c-copy-assignment-signature','-cppcoreguidelines-explicit-virtual-functions','-cppcoreguidelines-macro-to-enum','-cppcoreguidelines-noexcept-destructor','-cppcoreguidelines-noexcept-move-operations','-cppcoreguidelines-noexcept-swap','-cppcoreguidelines-non-private-member-variables-in-classes','-cppcoreguidelines-use-default-member-init',
'-google-readability-braces-around-statements','-google-readability-function-size','-google-readability-namespace-comments',
'-hicpp-avoid-c-arrays','-hicpp-avoid-goto','-hicpp-braces-around-statements','-hicpp-deprecated-headers','-hicpp-explicit-conversions','-hicpp-function-size','-hicpp-invalid-access-moved','-hicpp-member-init','-hicpp-move-const-arg','-hicpp-named-parameter','-hicpp-new-delete-operators','-hicpp-no-array-decay','-hicpp-no-malloc','-hicpp-noexcept-move','-hicpp-special-member-functions','-hicpp-static-assert','-hicpp-undelegated-constructor','-hicpp-uppercase-literal-suffix','-hicpp-use-auto','-hicpp-use-emplace','-hicpp-use-equals-default','-hicpp-use-equals-delete','-hicpp-use-noexcept','-hicpp-use-nullptr','-hicpp-use-override','-hicpp-vararg',
'-llvm-else-after-return','-llvm-qualified-auto',
]
WarningsAsErrors: '*'
HeaderFileExtensions: ['', 'h', 'hpp', 'ipp']
CheckOptions:
misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: 'true'
misc-include-cleaner.IgnoreHeaders: 'bits/.*;asio.*;msgpack.*;spdlog.*;toml\+\+.*;q[^\/]+\.h'
modernize-use-override.IgnoreDestructors: 'true'
cppcoreguidelines-avoid-do-while.IgnoreMacros: 'true'
readability-identifier-naming.NamespaceCase: lower_case
readability-identifier-naming.NamespaceIgnoredRegexp: '^CHIRP$|^CHP$|^CSCP$|^CMDP$|^CDTP$'
readability-identifier-naming.ClassCase: CamelCase
readability-identifier-naming.ClassIgnoredRegexp: '^is_.+$'
readability-identifier-naming.PublicMethodCase: camelBack
readability-identifier-naming.PublicMethodIgnoredRegexp: '^msgpack_.+$|^to_.+$'
readability-identifier-naming.ProtectedMethodCase: lower_case
readability-identifier-naming.PrivateMethodCase: lower_case
readability-identifier-naming.PrivateMethodIgnoredRegexp: '^on_.+$'
readability-identifier-naming.PrivateMemberCase: lower_case
readability-identifier-naming.PrivateMemberSuffix: '_'