diff --git a/include/gsl/span b/include/gsl/span index b4e791f1..e3264467 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -581,12 +581,18 @@ public: constexpr iterator begin() const noexcept { const auto data = storage_.data(); + // clang-format off + GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute + // clang-format on return {data, data + size(), data}; } constexpr iterator end() const noexcept { const auto data = storage_.data(); + // clang-format off + GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute + // clang-format on const auto endData = data + storage_.size(); return {data, endData, endData}; }