diff --git a/include/gsl/span b/include/gsl/span index f5e850a..16add83 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -299,7 +299,7 @@ namespace details Expects((current_ + n) >= begin_ && (current_ + n) <= end_); } - GSL_SUPPRESS(bounds .1) // NO-FORMAT: attribute + GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute constexpr pointer _Unwrapped() const noexcept { // after seeking *this to a high water mark, or using one of the // _Verify_xxx functions above, unwrap this span_iterator to a raw @@ -314,7 +314,7 @@ namespace details #else static constexpr bool _Unwrap_when_unverified = false; #endif - GSL_SUPPRESS(con .3) // NO-FORMAT: attribute // TODO: false positive + GSL_SUPPRESS(con.3) // NO-FORMAT: attribute // TODO: false positive constexpr void _Seek_to(const pointer p) noexcept { // adjust the position of *this to previously verified location p // after _Unwrapped @@ -487,7 +487,7 @@ public: } template - GSL_SUPPRESS(bounds .1) // NO-FORMAT: attribute + GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute constexpr span last() const noexcept { Expects(size() >= Count); @@ -495,7 +495,7 @@ public: } template - GSL_SUPPRESS(bounds .1) // NO-FORMAT: attribute + GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute constexpr auto subspan() const noexcept -> typename details::calculate_subspan_type::type { @@ -532,7 +532,7 @@ public: constexpr bool empty() const noexcept { return size() == 0; } // [span.elem], span element access - GSL_SUPPRESS(bounds .1) // NO-FORMAT: attribute + GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute constexpr reference operator[](index_type idx) const noexcept { Expects(idx < size()); @@ -590,7 +590,7 @@ public: constexpr pointer _Unchecked_begin() const noexcept { return data(); } constexpr pointer _Unchecked_end() const noexcept { - GSL_SUPPRESS(bounds .1) // NO-FORMAT: attribute + GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute return data() + size(); } #endif // _MSC_VER @@ -650,7 +650,7 @@ private: return tmp.subspan(offset, count); } - GSL_SUPPRESS(bounds .1) // NO-FORMAT: attribute + GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute span make_subspan(index_type offset, index_type count, subspan_selector) const { @@ -730,7 +730,7 @@ template span::value> as_bytes(span s) noexcept { - GSL_SUPPRESS(type .1) // NO-FORMAT: attribute + GSL_SUPPRESS(type.1) // NO-FORMAT: attribute return {reinterpret_cast(s.data()), s.size_bytes()}; } @@ -739,7 +739,7 @@ template ::value> as_writeable_bytes(span s) noexcept { - GSL_SUPPRESS(type .1) // NO-FORMAT: attribute + GSL_SUPPRESS(type.1) // NO-FORMAT: attribute return {reinterpret_cast(s.data()), s.size_bytes()}; } diff --git a/include/gsl/string_span b/include/gsl/string_span index 269f9b3..c4752db 100644 --- a/include/gsl/string_span +++ b/include/gsl/string_span @@ -114,11 +114,11 @@ span ensure_sentinel(T* seq, Ensures(seq != nullptr); GSL_SUPPRESS( - f .23) // NO-FORMAT: attribute // TODO: false positive // TODO: suppress does not work + f.23) // NO-FORMAT: attribute // TODO: false positive // TODO: suppress does not work auto cur = seq; Ensures(cur != nullptr); // workaround for removing the warning - GSL_SUPPRESS(bounds .1) // NO-FORMAT: attribute // TODO: suppress does not work + GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute // TODO: suppress does not work while (static_cast(cur - seq) < max && *cur != Sentinel) ++cur; Ensures(*cur == Sentinel); return {seq, static_cast(cur - seq)}; @@ -376,7 +376,7 @@ template basic_string_span::value> as_bytes(basic_string_span s) noexcept { - GSL_SUPPRESS(type .1) // NO-FORMAT: attribute + GSL_SUPPRESS(type.1) // NO-FORMAT: attribute return {reinterpret_cast(s.data()), s.size_bytes()}; } @@ -385,7 +385,7 @@ template ::value> as_writeable_bytes(basic_string_span s) noexcept { - GSL_SUPPRESS(type .1) // NO-FORMAT: attribute + GSL_SUPPRESS(type.1) // NO-FORMAT: attribute return {reinterpret_cast(s.data()), s.size_bytes()}; }