Module: check_mk
Branch: master
Commit: 2e8a2cd95df0b227ca32139e80d345be2666d7ac
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2e8a2cd95df0b2…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Dec 11 14:35:37 2018 +0100
Suppress a few bogus warnings.
Change-Id: Ie6f28b395542db77ddab11e01d434e8c2d89813c
---
.clang-tidy | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/.clang-tidy b/.clang-tidy
index 7925f01..1496b8b 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -13,6 +13,7 @@
# * cppcoreguidelines-pro-type-static-cast-downcast ("do not use static_cast
to downcast from a base to a derived class; use dynamic_cast instead")
# * fuchsia-default-arguments ("calling a function that uses a default
argument is disallowed")
# * fuchsia-overloaded-operator ("cannot overload
'operatorFOO'")
+# * fuchsia-statically-constructed-objects ("static objects are disallowed; if
possible, use a constexpr constructor instead")
# * google-runtime-references ("non-const reference parameter 'foo',
make it const or use a pointer")
# * hicpp-no-assembler ("do not use inline assembler in safety-critical
code") triggered by ntohs/htons
# * llvm-include-order ("#includes are not sorted properly")
@@ -42,7 +43,10 @@
# * hicpp-special-member-functions
# * modernize-use-default-member-init
#
-Checks:
'*,-android-cloexec-fopen,-android-cloexec-open,-cert-env33-c,-cert-err34-c,-cert-err58-cpp,-clang-analyzer-alpha*,-cppcoreguidelines-owning-memory,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-const-cast,-cppcoreguidelines-pro-type-member-init,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-type-union-access,-cppcoreguidelines-pro-type-vararg,-fuchsia-default-arguments,-fuchsia-overloaded-operator,-google-runtime-int,-google-runtime-references,-hicpp-member-init,-hicpp-no-array-decay,-hicpp-no-assembler,-hicpp-signed-bitwise,-hicpp-vararg,-llvm-header-guard,-llvm-include-order,-modernize-use-bool-literals,-clang-analyzer-optin.performance.Padding,-cppcoreguidelines-special-member-functions,-hicpp-special-member-functions,-modernize-use-default-member-init'
+# * bug in toolchain/clang-tidy:
+# * clang-analyzer-cplusplus.NewDeleteLeaks ("Potential leak of memory pointed
to by field '_M_head_impl'") See
https://bugs.llvm.org/show_bug.cgi?id=38176
("clang-analyzer-cplusplus.NewDeleteLeaks false positive in C++17 mode only")
+#
+Checks:
'*,-android-cloexec-fopen,-android-cloexec-open,-cert-env33-c,-cert-err34-c,-cert-err58-cpp,-clang-analyzer-alpha*,-cppcoreguidelines-owning-memory,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-const-cast,-cppcoreguidelines-pro-type-member-init,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-type-union-access,-cppcoreguidelines-pro-type-vararg,-fuchsia-default-arguments,-fuchsia-overloaded-operator,-fuchsia-statically-constructed-objects,-google-runtime-int,-google-runtime-references,-hicpp-member-init,-hicpp-no-array-decay,-hicpp-no-assembler,-hicpp-signed-bitwise,-hicpp-vararg,-llvm-header-guard,-llvm-include-order,-modernize-use-bool-literals,-clang-analyzer-optin.performance.Padding,-cppcoreguidelines-special-member-functions,-hicpp-special-member-functions,-modernize-use-default-member-init,-clang-analyzer-cplusplus.NewDeleteLeaks'
CheckOptions:
- key: google-readability-namespace-comments.SpacesBeforeComments
value: '1'