clang-tidy suggested fixes

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-06-28 08:56:54 -07:00
parent 11e858d0da
commit 4b6d3b87a7

View File

@ -124,10 +124,10 @@ namespace {
template <size_t N, typename... Ts> template <size_t N, typename... Ts>
struct tu_local_descr { struct tu_local_descr {
char text[N + 1]; char text[N + 1]{'\0'};
src_loc sloc; src_loc sloc;
constexpr tu_local_descr(src_loc sloc = src_loc::here()) : text{'\0'}, sloc(sloc){}; explicit constexpr tu_local_descr(src_loc sloc = src_loc::here()) : sloc(sloc) {}
// NOLINTNEXTLINE(google-explicit-constructor) // NOLINTNEXTLINE(google-explicit-constructor)
constexpr tu_local_descr(char const (&s)[N + 1], src_loc sloc = src_loc::here()) constexpr tu_local_descr(char const (&s)[N + 1], src_loc sloc = src_loc::here())
: tu_local_descr(s, make_index_sequence<N>(), sloc) {} : tu_local_descr(s, make_index_sequence<N>(), sloc) {}