Module: check_mk
Branch: master
Commit: 18d110ee90588019c1b1f16ba795998255646001
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=18d110ee905880…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Nov 28 08:52:56 2017 +0100
Removed a few using-declarations. Reduced a scope. A few tweaks for newer compilers.
Change-Id: I2e71e664438dc4705f7c86db413baf2036e8469e
---
.clang-tidy | 3 ++-
tests/check_mk.imp | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.clang-tidy b/.clang-tidy
index d48b522..6aa4984 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -19,13 +19,14 @@
# * cppcoreguidelines-pro-type-member-init ("uninitialized record type:
'foo'")
# * cppcoreguidelines-pro-type-reinterpret-cast ("do not use
reinterpret_cast")
# * cppcoreguidelines-pro-type-vararg ("do not call c-style vararg
functions")
+# * hicpp-member-init: alias for cppcoreguidelines-pro-type-member-init
#
# * desirable checks, but some places need to be suppressed:
# * cppcoreguidelines-pro-type-const-cast ("do not use const_cast")
# * cppcoreguidelines-pro-type-union-access ("do not access members of unions;
use (boost::)variant instead")
# * modernize-use-bool-literals ("converting integer literal to bool, use bool
literal instead") Incorrectly triggered by e.g. FD_ZERO
#
-Checks:
'*,-cert-env33-c,-cert-err34-c,-cert-err58-cpp,-clang-analyzer-alpha*,-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,-google-runtime-int,-google-runtime-references,-llvm-include-order,-modernize-use-bool-literals'
+Checks:
'*,-cert-env33-c,-cert-err34-c,-cert-err58-cpp,-clang-analyzer-alpha*,-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,-google-runtime-int,-google-runtime-references,-hicpp-member-init,-llvm-include-order,-modernize-use-bool-literals'
CheckOptions:
- key: google-readability-namespace-comments.SpacesBeforeComments
value: '1'
diff --git a/tests/check_mk.imp b/tests/check_mk.imp
index e38c461..ea9fdc1 100644
--- a/tests/check_mk.imp
+++ b/tests/check_mk.imp
@@ -7,6 +7,7 @@
{ include: ["<bits/std_function.h>", private,
"<functional>", public ] },
{ include: ["<bits/stdint-intn.h>", private,
"<cstdint>", public ] },
{ include: ["<bits/stdint-uintn.h>", private,
"<cstdint>", public ] },
+ { include: ["<bits/types/struct_tm.h>", private,
"<ctime>", public ] },
{ include: ["<bits/types/time_t.h>", private,
"<ctime>", public ] },
{ include: ["<experimental/bits/fs_ops.h>", private,
"<experimental/filesystem>", public ] },
{ include: ["<experimental/fs_ops.h>", private,
"<experimental/filesystem>", public ] },