diff --git a/include/gsl/span b/include/gsl/span index cef8a774..af351ca1 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -221,7 +221,7 @@ namespace details if (n != 0) Expects(begin_ && current_ && end_); if (n > 0) Expects(current_ - begin_ >= n); if (n < 0) Expects(end_ - current_ >= -n); - GSL_SUPPRESS(bounds .1) + GSL_SUPPRESS(bounds.1) current_ -= n; return *this; } diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp index 4fa48b0b..8cb9f862 100644 --- a/tests/notnull_tests.cpp +++ b/tests/notnull_tests.cpp @@ -138,11 +138,11 @@ struct NonCopyableNonMovable namespace { // clang-format off -GSL_SUPPRESS(f .4) // NO-FORMAT: attribute +GSL_SUPPRESS(f.4) // NO-FORMAT: attribute // clang-format on bool helper(not_null p) { return *p == 12; } // clang-format off -GSL_SUPPRESS(f .4) // NO-FORMAT: attribute +GSL_SUPPRESS(f.4) // NO-FORMAT: attribute // clang-format on bool helper_const(not_null p) { return *p == 12; } diff --git a/tests/owner_tests.cpp b/tests/owner_tests.cpp index 3b7a38b3..0cb47e85 100644 --- a/tests/owner_tests.cpp +++ b/tests/owner_tests.cpp @@ -21,7 +21,7 @@ using namespace gsl; -GSL_SUPPRESS(f .23) // NO-FORMAT: attribute +GSL_SUPPRESS(f.23) // NO-FORMAT: attribute void f(int* i) { *i += 1; } TEST(owner_tests, basic_test)