Module: check_mk
Branch: master
Commit: a946adf34ba750124b882f748ccbb4a7ac8cfc29
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a946adf34ba750…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Dec 8 13:39:14 2017 +0100
Automatic clang-tidy fix for readability-avoid-const-params-in-decls.
Change-Id: I9af03eb4f834edbeed87141ee69d1a13cd75f247
---
.clang-tidy | 3 +--
livestatus/src/TableStateHistory.h | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/.clang-tidy b/.clang-tidy
index bea4985..82e717d 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -45,11 +45,10 @@
# * modernize-use-equals-delete
# * modernize-use-noexcept
# * performance-unnecessary-value-param
-# * readability-avoid-const-params-in-decls
# * readability-implicit-bool-cast
# * 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,-modernize-use-noexcept,-performance-unnecessary-value-param,-readability-avoid-const-params-in-decls,-readability-implicit-bool-cast,-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,-modernize-use-noexcept,-performance-unnecessary-value-param,-readability-implicit-bool-cast,-readability-named-parameter'
CheckOptions:
- key: google-readability-namespace-comments.SpacesBeforeComments
value: '1'
diff --git a/livestatus/src/TableStateHistory.h b/livestatus/src/TableStateHistory.h
index 3f1a3da..db8d4b0 100644
--- a/livestatus/src/TableStateHistory.h
+++ b/livestatus/src/TableStateHistory.h
@@ -78,8 +78,7 @@ private:
LogEntry *getNextLogentry();
void process(Query *query, HostServiceState *hs_state);
int updateHostServiceState(Query *query, const LogEntry *entry,
- HostServiceState *hs_state,
- const bool only_update);
+ HostServiceState *hs_state, bool only_update);
};
#endif // TableStateHistory_h