Module: check_mk
Branch: master
Commit: 7baaf29c2c6035acf5f4e634e20698e1e7191547
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7baaf29c2c6035…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Dec 8 13:48:07 2017 +0100
Automatic clang-tidy fix for google-explicit-constructor.
Change-Id: I3228cec384c35082da04a09005aac98ad845c4d0
---
.clang-tidy | 3 +--
livestatus/src/ChronoUtils.h | 7 ++++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.clang-tidy b/.clang-tidy
index b40ec82..455e845 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -34,7 +34,6 @@
# * clang-analyzer-optin.performance.Padding
# * cppcoreguidelines-special-member-functions
# * google-build-using-namespace
-# * google-explicit-constructor
# * google-readability-todo
# * hicpp-explicit-conversions
# * hicpp-use-equals-delete
@@ -46,7 +45,7 @@
# * performance-unnecessary-value-param
# * readability-named-parameter
#
-Checks:
'*,-android-cloexec-fopen,-android-cloexec-open,-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,-hicpp-no-assembler,-llvm-header-guard,-llvm-include-order,-modernize-use-bool-literals,-clang-analyzer-optin.performance.Padding,-cppcoreguidelines-special-member-functions,-google-build-using-namespace,-google-explicit-constructor,-google-readability-todo,-hicpp-explicit-conversions,-hicpp-use-equals-delete,-hicpp-special-member-functions,-modernize-deprecated-headers,-modernize-pass-by-value,-modernize-use-default-member-init,-modernize-use-equals-delete,-performance-unnecessary-value-param,-readability-named-parameter'
+Checks:
'*,-android-cloexec-fopen,-android-cloexec-open,-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,-hicpp-no-assembler,-llvm-header-guard,-llvm-include-order,-modernize-use-bool-literals,-clang-analyzer-optin.performance.Padding,-cppcoreguidelines-special-member-functions,-google-build-using-namespace,-google-readability-todo,-hicpp-explicit-conversions,-hicpp-use-equals-delete,-hicpp-special-member-functions,-modernize-deprecated-headers,-modernize-pass-by-value,-modernize-use-default-member-init,-modernize-use-equals-delete,-performance-unnecessary-value-param,-readability-named-parameter'
CheckOptions:
- key: google-readability-namespace-comments.SpacesBeforeComments
value: '1'
diff --git a/livestatus/src/ChronoUtils.h b/livestatus/src/ChronoUtils.h
index b823c37..9ea061a 100644
--- a/livestatus/src/ChronoUtils.h
+++ b/livestatus/src/ChronoUtils.h
@@ -113,10 +113,11 @@ typename Dur::rep
time_point_part(std::chrono::system_clock::time_point &tp) {
class FormattedTimePoint {
public:
- FormattedTimePoint(std::chrono::system_clock::time_point tp,
- const std::string &format = default_format)
+ explicit FormattedTimePoint(std::chrono::system_clock::time_point tp,
+ const std::string &format = default_format)
: _tp(tp), _format(format) {}
- FormattedTimePoint(time_t t, const std::string &format = default_format)
+ explicit FormattedTimePoint(time_t t,
+ const std::string &format = default_format)
: _tp(std::chrono::system_clock::from_time_t(t)), _format(format) {}
friend std::ostream &operator<<(std::ostream &os,