/home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamReader.cpp:301:29: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] value = ctx.cache & MASK_TABLE[ctx.cacheNumBits]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamReader.cpp:315:81: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] value |= ((ctx.cache >> static_cast(ctx.cacheNumBits - numBits)) & MASK_TABLE[numBits]); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.cpp:357:66: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] if (numBits == 0 || numBits > sizeof(uint32_t) * 8 || data > MAX_U32_VALUES[numBits]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.cpp:368:66: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] if (numBits == 0 || numBits > sizeof(uint64_t) * 8 || data > MAX_U64_VALUES[numBits]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.cpp:379:65: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] if (numBits == 0 || numBits > sizeof(int32_t) * 8 || data < MIN_I32_VALUES[numBits] || ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.cpp:380:20: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] data > MAX_I32_VALUES[numBits]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.cpp:386:53: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] writeUnsignedBits(static_cast(data) & MAX_U32_VALUES[numBits], numBits); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.cpp:391:65: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] if (numBits == 0 || numBits > sizeof(int64_t) * 8 || data < MIN_I64_VALUES[numBits] || ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.cpp:392:20: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] data > MAX_I64_VALUES[numBits]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.cpp:398:55: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] writeUnsignedBits64(static_cast(data) & MAX_U64_VALUES[numBits], numBits); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.cpp:594:31: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] const uint32_t mask = MAX_U32_VALUES[restNumBits]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.cpp:662:73: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] const uint8_t add = static_cast((value >> shiftBits) & bitMasks[numBits - 1U]); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/FileUtil.cpp:19:23: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] if (!stream.write(reinterpret_cast(buffer), static_cast(byteSize))) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/FileUtil.cpp:49:22: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] if (!stream.read(reinterpret_cast(bitBuffer.getBuffer()), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/JsonEncoder.cpp:98:34: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] (void)stream.put(HEX[(characterInt >> 4U) & 0xFU]); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/JsonEncoder.cpp:99:34: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] (void)stream.put(HEX[characterInt & 0xFU]); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/pmr/MemoryResource.cpp:17:28: warning: variable 'defaultResource' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables] static MemoryResource* defaultResource = getNewDeleteResource(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:339:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:354:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:369:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:729:69: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(NoInit, &m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:733:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:738:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:738:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:739:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:744:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(NoInit, get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:750:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:798:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = holder; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:820:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:826:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:876:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/TrackingAllocator.h:79:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] TrackingAllocatorImpl(const TrackingAllocatorImpl& other) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:339:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:354:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:369:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:666:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->clone(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:669:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:671:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->clone(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:675:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:683:70: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->clone(NoInit, &m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:686:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:688:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->clone(NoInit, get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:692:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:729:69: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(NoInit, &m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:733:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:738:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:738:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:739:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:744:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(NoInit, get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:750:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:789:74: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] detail::NonHeapHolder::create(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:798:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = holder; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:820:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:876:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:46:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(MemoryResource* resource = getDefaultResource()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:71:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(const PolymorphicAllocatorBase& other) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/TrackingAllocator.h:79:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] TrackingAllocatorImpl(const TrackingAllocatorImpl& other) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/BitBufferTest.cpp:366:19: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] readBuffer++; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/BitBufferTest.cpp:380:19: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] readBuffer++; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/TrackingAllocator.h:79:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] TrackingAllocatorImpl(const TrackingAllocatorImpl& other) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/BuiltInOperatorsTest.cpp:25:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr DummyBitmask(Values value) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeVersion.h:8:9: warning: macro 'CPP_EXTENSION_RUNTIME_VERSION_NUMBER' used to declare a constant; consider using a 'constexpr' constant [cppcoreguidelines-macro-usage] #define CPP_EXTENSION_RUNTIME_VERSION_NUMBER 1003000 ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/DeltaContext.h:95:55: warning: 'signed char' to 'uint64_t' (aka 'unsigned long') conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse] m_previousElement = static_cast(element); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/DeltaContext.h:113:59: warning: 'signed char' to 'uint64_t' (aka 'unsigned long') conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse] m_previousElement = static_cast(element); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/DeltaContext.h:176:59: warning: 'signed char' to 'uint64_t' (aka 'unsigned long') conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse] m_previousElement = static_cast(element); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/DeltaContext.h:212:59: warning: 'signed char' to 'uint64_t' (aka 'unsigned long') conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse] m_previousElement = static_cast(element); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/DeltaContext.h:342:51: warning: 'signed char' to 'uint64_t' (aka 'unsigned long') conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse] m_previousElement = static_cast(element); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/DeltaContext.h:369:51: warning: 'signed char' to 'uint64_t' (aka 'unsigned long') conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse] m_previousElement = static_cast(element); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Enums.h:92:12: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] return EnumTraits::values[ordinal]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Enums.h:105:12: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] return EnumTraits::names[enumToOrdinal(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:339:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:354:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:666:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->clone(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:669:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:671:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->clone(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:675:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:789:74: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] detail::NonHeapHolder::create(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:798:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = holder; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:820:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:826:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:90: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:876:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:159:10: warning: function 'parseElement' is within a recursive call chain [misc-no-recursion] void parseElement(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:159:10: note: example recursive call chain, starting from function 'parseElement' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:190:9: note: Frame #1: function 'parseElement' calls function 'parseArray' here: parseArray(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:258:9: note: Frame #2: function 'parseArray' calls function 'parseElements' here: parseElements(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:268:5: note: Frame #3: function 'parseElements' calls function 'parseElement' here: parseElement(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:268:5: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:160:10: warning: function 'parseObject' is within a recursive call chain [misc-no-recursion] void parseObject(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:161:10: warning: function 'parseMembers' is within a recursive call chain [misc-no-recursion] void parseMembers(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:162:10: warning: function 'parseMember' is within a recursive call chain [misc-no-recursion] void parseMember(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:163:10: warning: function 'parseArray' is within a recursive call chain [misc-no-recursion] void parseArray(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:164:10: warning: function 'parseElements' is within a recursive call chain [misc-no-recursion] void parseElements(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:115:23: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] m_storage(arr, N) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:932:35: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return BasicStringView(str, str[N - 1] == CharT() ? (N - 1) : N); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:74:10: warning: function 'walkFields' is within a recursive call chain [misc-no-recursion] void walkFields(const IBasicReflectableConstPtr& compound, const IBasicTypeInfo& typeInfo); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:76:10: note: example recursive call chain, starting from function 'walkFieldValue' bool walkFieldValue(const IBasicReflectableConstPtr& reflectable, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:547:13: note: Frame #1: function 'walkFieldValue' calls function 'walkFields' here: walkFields(reflectable, typeInfo); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:494:17: note: Frame #2: function 'walkFields' calls function 'walkField' here: walkField(compound->getField(compoundChoice), *fieldsIt); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:522:22: note: Frame #3: function 'walkField' calls function 'walkFieldValue' here: if (!walkFieldValue(reflectable->at(i), fieldInfo, i)) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:522:22: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:75:10: warning: function 'walkField' is within a recursive call chain [misc-no-recursion] bool walkField(const IBasicReflectableConstPtr& reflectable, const BasicFieldInfo& fieldInfo); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:76:10: warning: function 'walkFieldValue' is within a recursive call chain [misc-no-recursion] bool walkFieldValue(const IBasicReflectableConstPtr& reflectable, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyBitmaskValue( ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:46:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(MemoryResource* resource = getDefaultResource()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:71:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(const PolymorphicAllocatorBase& other) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HashCodeUtilTest.cpp:33:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Permissions(Values value) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:46:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(MemoryResource* resource = getDefaultResource()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:71:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(const PolymorphicAllocatorBase& other) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:216:18: warning: 'optional' used after it was moved [bugprone-use-after-move] ASSERT_FALSE(optional.hasValue()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:212:53: note: move occurred here HeapOptionalHolder> optionalMoved(std::move(optional)); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:257:18: warning: 'emptyOptional' used after it was moved [bugprone-use-after-move] ASSERT_FALSE(emptyOptional.hasValue()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:256:53: note: move occurred here HeapOptionalHolder> emptyMoved(std::move(emptyOptional), alloc2); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:359:15: warning: 'optionalVector' used after it was moved [bugprone-use-after-move] ASSERT_EQ(optionalVector.get_allocator(), optionalVectorMoved.get_allocator()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:356:25: note: move occurred here optionalVectorMoved = std::move(optionalVector); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:368:17: warning: 'optionalNp' used after it was moved [bugprone-use-after-move] ASSERT_TRUE(optionalNp.hasValue()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:367:21: note: move occurred here optionalNpMoved = std::move(optionalNp); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:396:54: warning: 'optionalObject' used after it was moved [bugprone-use-after-move] optionalObjectMoved.assign(NoInit, std::move(optionalObject)); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:393:24: note: move occurred here optionalObject.assign(NoInit, std::move(optionalObject)); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:411:54: warning: 'optionalObject' used after it was moved [bugprone-use-after-move] optionalObjectMoved.assign(NoInit, std::move(optionalObject)); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/HeapOptionalHolderTest.cpp:408:24: note: move occurred here optionalObject.assign(NoInit, std::move(optionalObject)); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/TrackingAllocator.h:79:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] TrackingAllocatorImpl(const TrackingAllocatorImpl& other) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/InplaceOptionalHolderTest.cpp:276:50: warning: 'optionalObject' used after it was moved [bugprone-use-after-move] optionalObjectMoved.assign(NoInit, std::move(optionalObject)); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/InplaceOptionalHolderTest.cpp:273:20: note: move occurred here optionalObject.assign(NoInit, std::move(optionalObject)); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:339:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:354:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:789:74: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] detail::NonHeapHolder::create(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:798:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = holder; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:820:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:826:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:90: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:876:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:339:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:354:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:789:74: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] detail::NonHeapHolder::create(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:798:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = holder; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:820:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:826:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:90: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:876:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:159:10: warning: function 'parseElement' is within a recursive call chain [misc-no-recursion] void parseElement(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:159:10: note: example recursive call chain, starting from function 'parseElement' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:190:9: note: Frame #1: function 'parseElement' calls function 'parseArray' here: parseArray(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:258:9: note: Frame #2: function 'parseArray' calls function 'parseElements' here: parseElements(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:268:5: note: Frame #3: function 'parseElements' calls function 'parseElement' here: parseElement(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:268:5: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:160:10: warning: function 'parseObject' is within a recursive call chain [misc-no-recursion] void parseObject(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:161:10: warning: function 'parseMembers' is within a recursive call chain [misc-no-recursion] void parseMembers(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:162:10: warning: function 'parseMember' is within a recursive call chain [misc-no-recursion] void parseMember(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:163:10: warning: function 'parseArray' is within a recursive call chain [misc-no-recursion] void parseArray(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:164:10: warning: function 'parseElements' is within a recursive call chain [misc-no-recursion] void parseElements(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:115:23: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] m_storage(arr, N) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:339:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:354:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:789:74: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] detail::NonHeapHolder::create(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:798:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = holder; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:820:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:826:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:90: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:876:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:339:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:354:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:666:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->clone(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:669:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:671:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->clone(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:675:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:789:74: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] detail::NonHeapHolder::create(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:798:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = holder; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:820:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:826:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:90: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:876:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:159:10: warning: function 'parseElement' is within a recursive call chain [misc-no-recursion] void parseElement(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:159:10: note: example recursive call chain, starting from function 'parseElement' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:190:9: note: Frame #1: function 'parseElement' calls function 'parseArray' here: parseArray(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:258:9: note: Frame #2: function 'parseArray' calls function 'parseElements' here: parseElements(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:268:5: note: Frame #3: function 'parseElements' calls function 'parseElement' here: parseElement(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:268:5: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:160:10: warning: function 'parseObject' is within a recursive call chain [misc-no-recursion] void parseObject(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:161:10: warning: function 'parseMembers' is within a recursive call chain [misc-no-recursion] void parseMembers(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:162:10: warning: function 'parseMember' is within a recursive call chain [misc-no-recursion] void parseMember(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:163:10: warning: function 'parseArray' is within a recursive call chain [misc-no-recursion] void parseArray(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/JsonParser.h:164:10: warning: function 'parseElements' is within a recursive call chain [misc-no-recursion] void parseElements(); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:115:23: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] m_storage(arr, N) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyBitmaskValue( ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:355:18: note: example recursive call chain, starting from function 'makeAnyValue>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:354:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:789:74: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] detail::NonHeapHolder::create(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:798:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = holder; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:820:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1954:34: warning: function 'getFromObject>' is within a recursive call chain [misc-no-recursion] IBasicReflectableConstPtr getFromObject( ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1954:34: note: example recursive call chain, starting from function 'getFromObject>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1966:48: note: Frame #1: function 'getFromObject>' calls function 'getFromObject>' here: return isLast ? std::move(field) : getFromObject(*field, path, dotPos + 1); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1966:48: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1988:29: warning: function 'getFromObject>' is within a recursive call chain [misc-no-recursion] IBasicReflectablePtr getFromObject(IBasicReflectable& object, StringView path, size_t pos) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1988:29: note: example recursive call chain, starting from function 'getFromObject>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1999:48: note: Frame #1: function 'getFromObject>' calls function 'getFromObject>' here: return isLast ? std::move(field) : getFromObject(*field, path, dotPos + 1); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1999:48: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:2026:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia-multiple-inheritance] class ReflectableAllocatorHolderBase : public ReflectableBase, public AllocatorHolder ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:932:35: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return BasicStringView(str, str[N - 1] == CharT() ? (N - 1) : N); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:46:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(MemoryResource* resource = getDefaultResource()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:71:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(const PolymorphicAllocatorBase& other) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/PolymorphicAllocatorTest.cpp:58:49: warning: std::move of the variable 'allocator2' of the trivially-copyable type 'pmr::PolymorphicAllocator<>' has no effect; remove std::move() [performance-move-const-arg] pmr::PolymorphicAllocator<> allocator2Moved(std::move(allocator2)); ^~~~~~~~~~ ~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/PolymorphicAllocatorTest.cpp:78:60: warning: std::move of the variable 'allocator2' of the trivially-copyable type 'pmr::PropagatingPolymorphicAllocator<>' has no effect; remove std::move() [performance-move-const-arg] pmr::PropagatingPolymorphicAllocator<> allocator2Moved(std::move(allocator2)); ^~~~~~~~~~ ~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:46:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(MemoryResource* resource = getDefaultResource()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:71:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(const PolymorphicAllocatorBase& other) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:354:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:666:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->clone(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:669:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:671:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->clone(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:675:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:789:74: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] detail::NonHeapHolder::create(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:798:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = holder; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:820:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:826:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:90: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:876:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1954:34: warning: function 'getFromObject>' is within a recursive call chain [misc-no-recursion] IBasicReflectableConstPtr getFromObject( ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1954:34: note: example recursive call chain, starting from function 'getFromObject>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1966:48: note: Frame #1: function 'getFromObject>' calls function 'getFromObject>' here: return isLast ? std::move(field) : getFromObject(*field, path, dotPos + 1); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1966:48: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1988:29: warning: function 'getFromObject>' is within a recursive call chain [misc-no-recursion] IBasicReflectablePtr getFromObject(IBasicReflectable& object, StringView path, size_t pos) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1988:29: note: example recursive call chain, starting from function 'getFromObject>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1999:48: note: Frame #1: function 'getFromObject>' calls function 'getFromObject>' here: return isLast ? std::move(field) : getFromObject(*field, path, dotPos + 1); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1999:48: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:2026:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia-multiple-inheritance] class ReflectableAllocatorHolderBase : public ReflectableBase, public AllocatorHolder ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ReflectableUtil.h:131:17: warning: function 'arraysEqual>' is within a recursive call chain [misc-no-recursion] static bool arraysEqual( ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ReflectableUtil.h:135:17: warning: function 'compoundsEqual>' is within a recursive call chain [misc-no-recursion] static bool compoundsEqual(const IBasicReflectableConstPtr& lhsCompound, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ReflectableUtil.h:146:23: warning: function 'equal>' is within a recursive call chain [misc-no-recursion] bool ReflectableUtil::equal( ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ReflectableUtil.h:146:23: note: example recursive call chain, starting from function 'equal>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ReflectableUtil.h:169:16: note: Frame #1: function 'equal>' calls function 'arraysEqual>' here: return arraysEqual(lhs, rhs); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ReflectableUtil.h:192:14: note: Frame #2: function 'arraysEqual>' calls function 'equal>' here: if (!equal(lhsArray->at(i), rhsArray->at(i))) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ReflectableUtil.h:192:14: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:932:35: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return BasicStringView(str, str[N - 1] == CharT() ? (N - 1) : N); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:115:23: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] m_storage(arr, N) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/SpanTest.cpp:34:43: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] Span span(vec.data(), vec.data() + vec.size()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/SpanTest.cpp:38:52: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] Span spanStatic(vec.data(), vec.data() + vec.size()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/SpanTest.cpp:45:5: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] int arr[] = {0, 13, 42}; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/SqliteConnectionTest.cpp:320:36: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] const std::string resultString(reinterpret_cast(sqlite3_column_text(statement, 0))); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:932:35: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return BasicStringView(str, str[N - 1] == CharT() ? (N - 1) : N); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/StringViewTest.cpp:81:19: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] ASSERT_EQ(str[i], view[i]); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/StringViewTest.cpp:92:19: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] ASSERT_EQ(str[i], view.at(i)); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/StringViewTest.cpp:156:19: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] ASSERT_EQ(str + 2, view.data()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/StringViewTest.cpp:209:19: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] ASSERT_EQ(str + 2, subView.data()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/StringViewTest.cpp:769:5: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] char textWithoutTermZero[] = {'t', 'e', 'x', 't'}; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:932:35: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return BasicStringView(str, str[N - 1] == CharT() ? (N - 1) : N); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:46:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(MemoryResource* resource = getDefaultResource()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/pmr/PolymorphicAllocator.h:71:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] PolymorphicAllocatorBase(const PolymorphicAllocatorBase& other) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:932:35: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return BasicStringView(str, str[N - 1] == CharT() ? (N - 1) : N); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/TypeInfo.h:1444:12: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] return bitFieldTypeInfoArray[bitSize - 1U]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/TypeInfo.h:1522:12: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] return bitFieldTypeInfoArray[static_cast(bitSize - 1)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:339:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:354:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:789:74: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] detail::NonHeapHolder::create(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:798:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = holder; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:820:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:826:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:90: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:876:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Enums.h:105:12: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] return EnumTraits::names[enumToOrdinal(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1954:34: warning: function 'getFromObject>' is within a recursive call chain [misc-no-recursion] IBasicReflectableConstPtr getFromObject( ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1954:34: note: example recursive call chain, starting from function 'getFromObject>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1966:48: note: Frame #1: function 'getFromObject>' calls function 'getFromObject>' here: return isLast ? std::move(field) : getFromObject(*field, path, dotPos + 1); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1966:48: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1988:29: warning: function 'getFromObject>' is within a recursive call chain [misc-no-recursion] IBasicReflectablePtr getFromObject(IBasicReflectable& object, StringView path, size_t pos) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1988:29: note: example recursive call chain, starting from function 'getFromObject>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1999:48: note: Frame #1: function 'getFromObject>' calls function 'getFromObject>' here: return isLast ? std::move(field) : getFromObject(*field, path, dotPos + 1); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1999:48: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:2026:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia-multiple-inheritance] class ReflectableAllocatorHolderBase : public ReflectableBase, public AllocatorHolder ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:932:35: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return BasicStringView(str, str[N - 1] == CharT() ? (N - 1) : N); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/TypeInfo.h:1444:12: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] return bitFieldTypeInfoArray[bitSize - 1U]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/TypeInfo.h:1522:12: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] return bitFieldTypeInfoArray[static_cast(bitSize - 1)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/ReflectableTest.cpp:22:1: warning: do not use namespace using-directives; use using-declarations instead [google-build-using-namespace] using namespace std::placeholders; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/zserio/TrackingAllocator.h:79:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] TrackingAllocatorImpl(const TrackingAllocatorImpl& other) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ValidationSqliteUtil.h:100:38: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] const char* columnName = reinterpret_cast(sqlite3_column_text(statement.get(), 1)); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ValidationSqliteUtil.h:101:38: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] const char* columnType = reinterpret_cast(sqlite3_column_text(statement.get(), 2)); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:60:25: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] m_typedHolder = std::forward(value); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:339:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:354:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:789:74: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] detail::NonHeapHolder::create(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:798:25: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = holder; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:820:75: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return static_cast*>(m_untypedHolder.heap); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:84: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:876:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Enums.h:105:12: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] return EnumTraits::names[enumToOrdinal(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:693:5: warning: constructor does not initialize these fields: m_storage [cppcoreguidelines-pro-type-member-init] constexpr inplace_optional_holder() noexcept = default; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:932:35: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return BasicStringView(str, str[N - 1] == CharT() ? (N - 1) : N); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue &, std::allocator>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: warning: function 'makeAnyValue &, std::allocator>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, std::allocator, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue &, std::allocator>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue &, std::allocator>' calls function 'makeAnyEnumValue, std::allocator, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, std::allocator, 0>' calls function 'makeAnyValue &, std::allocator>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyEnumValue, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:219:18: warning: function 'makeAnyEnumValue, std::allocator, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyEnumValue(T enumRawValue, const IBasicTypeInfo& typeInfo, const ALLOC& allocator) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue &, std::allocator>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:16: note: Frame #1: function 'makeAnyValue &, std::allocator>' calls function 'makeAnyEnumValue, std::allocator, 0>' here: return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: Frame #2: function 'makeAnyEnumValue, std::allocator, 0>' calls function 'makeAnyValue &, std::allocator>' here: return makeAnyValue(typeInfo.getUnderlyingType(), enumRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:221:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyBitmaskValue( ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, std::allocator, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:386:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyBitmaskValue, 0>' here: return makeAnyBitmaskValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:351:12: note: Frame #2: function 'makeAnyBitmaskValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), bitmaskRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:351:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyBitmaskValue( ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:26:18: note: example recursive call chain, starting from function 'makeAnyValue>' AnyHolder makeAnyValue(const IBasicTypeInfo& typeInfo, T&& value, const ALLOC& allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:386:16: note: Frame #1: function 'makeAnyValue>' calls function 'makeAnyBitmaskValue, 0>' here: return makeAnyBitmaskValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:351:12: note: Frame #2: function 'makeAnyBitmaskValue, 0>' calls function 'makeAnyValue>' here: return makeAnyValue(typeInfo.getUnderlyingType(), bitmaskRawValue, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:351:12: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] AnyHolder makeAnyBitmaskValue( ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:348:18: warning: function 'makeAnyBitmaskValue, std::allocator, 0>' is within a recursive call chain [misc-no-recursion] /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:382:35: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return makeAnyStringValue(std::forward(value), allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:384:33: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return makeAnyEnumValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/ZserioTreeCreator.h:386:36: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return makeAnyBitmaskValue(std::forward(value), typeInfo, allocator); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:700:61: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.getUntypedHolder()->move(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:704:40: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] else if (other.m_untypedHolder.heap != nullptr) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:709:62: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:710:39: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] other.m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:715:33: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = other.getUntypedHolder()->move(get_allocator_ref()); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:721:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:760:29: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] m_untypedHolder.heap = nullptr; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:766:48: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] return (m_isInPlace || m_untypedHolder.heap != nullptr); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:832:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:838:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast*>(&m_untypedHolder.inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:868:78: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:869:35: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access] : m_untypedHolder.heap; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/AnyHolder.h:875:19: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] ? reinterpret_cast*>(&m_untypedHolder.inPlace) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitBuffer.h:274:33: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic] m_buffer(buffer, buffer + (bitSize + 7) / 8, allocator), ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/BitStreamWriter.h:70:5: warning: constructor does not initialize these fields: m_bitIndex, m_bufferBitSize [cppcoreguidelines-pro-type-member-init] explicit BitStreamWriter(BasicBitBuffer& bitBuffer) : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/CppRuntimeException.h:200:18: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] exception << value; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:231:15: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr heap_optional_holder(NullOptType, const allocator_type& allocator = allocator_type()) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:241:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(const T& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:251:5: warning: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] heap_optional_holder(T&& val, const allocator_type& allocator = allocator_type()) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:657:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:667:16: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast] return reinterpret_cast(&m_inPlace); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:698:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr inplace_optional_holder(NullOptType) noexcept ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:706:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(const T& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/OptionalHolder.h:717:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] inplace_optional_holder(T&& val) ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1954:34: warning: function 'getFromObject>' is within a recursive call chain [misc-no-recursion] IBasicReflectableConstPtr getFromObject( ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1954:34: note: example recursive call chain, starting from function 'getFromObject>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1966:48: note: Frame #1: function 'getFromObject>' calls function 'getFromObject>' here: return isLast ? std::move(field) : getFromObject(*field, path, dotPos + 1); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1966:48: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1988:29: warning: function 'getFromObject>' is within a recursive call chain [misc-no-recursion] IBasicReflectablePtr getFromObject(IBasicReflectable& object, StringView path, size_t pos) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1988:29: note: example recursive call chain, starting from function 'getFromObject>' /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1999:48: note: Frame #1: function 'getFromObject>' calls function 'getFromObject>' here: return isLast ? std::move(field) : getFromObject(*field, path, dotPos + 1); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:1999:48: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Reflectable.h:2026:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia-multiple-inheritance] class ReflectableAllocatorHolderBase : public ReflectableBase, public AllocatorHolder ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:82:15: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] constexpr Span() noexcept ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(element_type (&arr)[N]) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:114:20: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr Span(element_type (&arr)[N]) noexcept : ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:125:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:127:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:138:64: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:140:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::array& arr) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:84: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:150:93: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] typename std::enable_if<(ext == dynamic_extent) && std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:152:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:74: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:163:83: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] (ext == dynamic_extent) && std::is_convertible::value, int>::type = ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:165:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const std::vector& vec) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:49: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:176:58: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] std::is_convertible::value, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Span.h:178:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr Span(const Span& span) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:44:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:45:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:50:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_1[static_cast(value)]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:55:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index + 1]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringConvertUtil.h:56:26: warning: do not use array subscript when the index is not an integer constant expression [cppcoreguidelines-pro-bounds-constant-array-index] *(--bufferEnd) = DIGITS_100_10[index]; ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:54:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] BasicStringView(const const_pointer str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:76:15: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] constexpr BasicStringView(const std::basic_string& str) noexcept : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:929:55: warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays] constexpr BasicStringView makeStringView(const CharT (&str)[N]) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/StringView.h:932:35: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] return BasicStringView(str, str[N - 1] == CharT() ? (N - 1) : N); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:4:10: warning: inclusion of deprecated C++ header 'stddef.h'; consider using 'cstddef' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Types.h:10:14: warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers] #include ^~~~~~~~~~ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:57:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const ALLOC_U& allocator) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/UniquePtr.h:68:5: warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [google-explicit-constructor] UniquePtrDeleter(const UniquePtrDeleter& deleter) : ^ explicit /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:74:10: warning: function 'walkFields' is within a recursive call chain [misc-no-recursion] void walkFields(const IBasicReflectableConstPtr& compound, const IBasicTypeInfo& typeInfo); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:76:10: note: example recursive call chain, starting from function 'walkFieldValue' bool walkFieldValue(const IBasicReflectableConstPtr& reflectable, ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:547:13: note: Frame #1: function 'walkFieldValue' calls function 'walkFields' here: walkFields(reflectable, typeInfo); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:494:17: note: Frame #2: function 'walkFields' calls function 'walkField' here: walkField(compound->getField(compoundChoice), *fieldsIt); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:522:22: note: Frame #3: function 'walkField' calls function 'walkFieldValue' here: if (!walkFieldValue(reflectable->at(i), fieldInfo, i)) ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:522:22: note: ... which was the starting point of the recursive call chain; there may be other cycles /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:75:10: warning: function 'walkField' is within a recursive call chain [misc-no-recursion] bool walkField(const IBasicReflectableConstPtr& reflectable, const BasicFieldInfo& fieldInfo); ^ /home/runner/work/zserio/zserio/compiler/extensions/cpp/runtime/test/../src/zserio/Walker.h:76:10: warning: function 'walkFieldValue' is within a recursive call chain [misc-no-recursion] bool walkFieldValue(const IBasicReflectableConstPtr& reflectable, ^