mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 17:32:37 +00:00
clang-tidy suggested fixes
This commit is contained in:
parent
11e858d0da
commit
4b6d3b87a7
@ -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) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user