Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>2020-04-23 20:13:33 +0300
committerGitHub <noreply@github.com>2020-04-23 20:13:33 +0300
commit1999b48a519196711f0d03af3b7eedd49fcc6db3 (patch)
tree7cdd008530c0ab80d58aad1215c6b7b8c794f20b
parent3da256d03bb4e5a1a2a197da53f44ef4a26566b3 (diff)
parentfb1243d735d683c59164940b732ae6fa21a3da01 (diff)
Merge pull request #870 from beinhaerter/suppress_span_warningv3.0.13.0.1
suppress code analysis warning
-rw-r--r--include/gsl/span6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/gsl/span b/include/gsl/span
index b4e791f..e326446 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};
}