diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-17 14:38:31 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-17 14:38:31 +0000 |
commit | b4c8989a8d6756326b49fd7f6b0a3a73caa8b4c9 (patch) | |
tree | 313e62b6b0df6a96ecb4ca208b0bf81b218f261f | |
parent | Add case_less from Slicer (diff) | |
download | libadhocutil-b4c8989a8d6756326b49fd7f6b0a3a73caa8b4c9.tar.bz2 libadhocutil-b4c8989a8d6756326b49fd7f6b0a3a73caa8b4c9.tar.xz libadhocutil-b4c8989a8d6756326b49fd7f6b0a3a73caa8b4c9.zip |
Tidy fixeslibadhocutil-0.8.2
-rw-r--r-- | Jamroot.jam | 1 | ||||
-rw-r--r-- | 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 <toolset>tidy:<checkxx>hicpp-* <toolset>tidy:<xcheckxx>hicpp-vararg <toolset>tidy:<xcheckxx>hicpp-signed-bitwise + <toolset>tidy:<xcheckxx>hicpp-named-parameter <toolset>tidy:<xcheckxx>hicpp-no-array-decay <toolset>tidy:<checkxx>performance-* <toolset>tidy:<define>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<typename T, T... t> 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<typename T, T... t> inline auto operator""_fmt() noexcept { - return AdHoc::FormatterDetail<FMT<T, t...>::__FMT, sizeof...(t)>(); + return AdHoc::FormatterDetail<FMT<T, t...>::fmtstr, sizeof...(t)>(); } #endif #ifdef __clang__ |