Skip to content

Commit 1999b48

Browse files
authored
Merge pull request #870 from beinhaerter/suppress_span_warning
suppress code analysis warning
2 parents 3da256d + fb1243d commit 1999b48

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/gsl/span

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,12 +581,18 @@ public:
581581
constexpr iterator begin() const noexcept
582582
{
583583
const auto data = storage_.data();
584+
// clang-format off
585+
GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute
586+
// clang-format on
584587
return {data, data + size(), data};
585588
}
586589

587590
constexpr iterator end() const noexcept
588591
{
589592
const auto data = storage_.data();
593+
// clang-format off
594+
GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute
595+
// clang-format on
590596
const auto endData = data + storage_.size();
591597
return {data, endData, endData};
592598
}

0 commit comments

Comments
 (0)