From b4c8989a8d6756326b49fd7f6b0a3a73caa8b4c9 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 17 Nov 2020 14:38:31 +0000 Subject: Tidy fixes --- Jamroot.jam | 1 + libadhocutil/compileTimeFormatter.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Jamroot.jam b/Jamroot.jam index dfe522d..2299a06 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -32,6 +32,7 @@ project tidy:hicpp-* tidy:hicpp-vararg tidy:hicpp-signed-bitwise + tidy:hicpp-named-parameter tidy:hicpp-no-array-decay tidy:performance-* tidy:ICE_IGNORE_VERSION diff --git a/libadhocutil/compileTimeFormatter.h b/libadhocutil/compileTimeFormatter.h index 7e4eef1..1d47ef7 100644 --- a/libadhocutil/compileTimeFormatter.h +++ b/libadhocutil/compileTimeFormatter.h @@ -325,11 +325,11 @@ namespace AdHoc { template struct FMT { /// CTF format string // NOLINTNEXTLINE(hicpp-avoid-c-arrays,modernize-avoid-c-arrays) - static constexpr char __FMT[] = {t...}; + static constexpr char fmtstr[] = {t...}; }; template inline auto operator""_fmt() noexcept { - return AdHoc::FormatterDetail::__FMT, sizeof...(t)>(); + return AdHoc::FormatterDetail::fmtstr, sizeof...(t)>(); } #endif #ifdef __clang__ -- cgit v1.2.3