diff --git a/include/gsl/gsl b/include/gsl/gsl index ec9632c..44a18fa 100644 --- a/include/gsl/gsl +++ b/include/gsl/gsl @@ -20,8 +20,8 @@ #include // Ensures/Expects #include // finally()/narrow()/narrow_cast()... #include // multi_span, strided_span... +#include // owner, not_null #include // span #include // zstring, string_span, zstring_builder... -#include // owner, not_null #endif // GSL_GSL_H diff --git a/include/gsl/gsl_algorithm b/include/gsl/gsl_algorithm index 9e6678a..710792f 100644 --- a/include/gsl/gsl_algorithm +++ b/include/gsl/gsl_algorithm @@ -17,9 +17,12 @@ #ifndef GSL_ALGORITHM_H #define GSL_ALGORITHM_H -#include +#include // for Expects +#include // for dynamic_extent, span -#include +#include // for copy_n +#include // for ptrdiff_t +#include // for is_assignable #ifdef _MSC_VER #pragma warning(push) diff --git a/include/gsl/gsl_assert b/include/gsl/gsl_assert index 2157673..468d4a0 100644 --- a/include/gsl/gsl_assert +++ b/include/gsl/gsl_assert @@ -18,7 +18,7 @@ #define GSL_CONTRACTS_H #include -#include +#include // for logic_error // // There are three configuration options for this GSL implementation's behavior diff --git a/include/gsl/gsl_util b/include/gsl/gsl_util index 86a3ad7..caf56d8 100644 --- a/include/gsl/gsl_util +++ b/include/gsl/gsl_util @@ -17,12 +17,14 @@ #ifndef GSL_UTIL_H #define GSL_UTIL_H -#include // Ensures/Expects +#include // for Expects #include -#include -#include -#include +#include // for ptrdiff_t, size_t +#include // for exception +#include // for initializer_list +#include // for is_signed, integral_constant +#include // for forward #if defined(_MSC_VER) diff --git a/include/gsl/multi_span b/include/gsl/multi_span index 4b2dc0f..cdde594 100644 --- a/include/gsl/multi_span +++ b/include/gsl/multi_span @@ -17,22 +17,24 @@ #ifndef GSL_MULTI_SPAN_H #define GSL_MULTI_SPAN_H -#include -#include -#include +#include // for Expects +#include // for byte +#include // for narrow_cast -#include -#include +#include // for transform, lexicographical_compare +#include // for array #include -#include -#include -#include -#include -#include +#include // for ptrdiff_t, size_t, nullptr_t +#include // for PTRDIFF_MAX +#include // for divides, multiplies, minus, negate, plus +#include // for initializer_list +#include // for iterator, random_access_iterator_tag +#include // for numeric_limits #include #include #include -#include +#include // for basic_string +#include // for enable_if_t, remove_cv_t, is_same, is_co... #include #ifdef _MSC_VER @@ -1070,7 +1072,6 @@ inline constexpr dim_t dim(std::ptrdiff_t n) GSL_NOEXCEPT template class multi_span; - template class strided_span; diff --git a/include/gsl/pointers b/include/gsl/pointers index 1c91e52..163a2fe 100644 --- a/include/gsl/pointers +++ b/include/gsl/pointers @@ -17,11 +17,13 @@ #ifndef GSL_POINTERS_H #define GSL_POINTERS_H -#include +#include // for Ensures, Expects -#include -#include -#include +#include // for forward +#include // for ptrdiff_t, nullptr_t, ostream, size_t +#include // for shared_ptr, unique_ptr +#include // for hash +#include // for enable_if_t, is_convertible, is_assignable #if defined(_MSC_VER) && _MSC_VER < 1910 #pragma push_macro("constexpr") diff --git a/include/gsl/span b/include/gsl/span index 98fe768..bd9a21d 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -17,16 +17,18 @@ #ifndef GSL_SPAN_H #define GSL_SPAN_H -#include -#include -#include +#include // for Expects +#include // for byte +#include // for narrow_cast, narrow -#include -#include +#include // for lexicographical_compare +#include // for array +#include // for ptrdiff_t, size_t, nullptr_t +#include // for reverse_iterator, distance, random_access_... #include -#include +#include // for unique_ptr, shared_ptr #include -#include +#include // for enable_if_t, declval, is_convertible, inte... #include #ifdef _MSC_VER diff --git a/include/gsl/string_span b/include/gsl/string_span index f6fe4eb..fa8b515 100644 --- a/include/gsl/string_span +++ b/include/gsl/string_span @@ -17,13 +17,17 @@ #ifndef GSL_STRING_SPAN_H #define GSL_STRING_SPAN_H -#include -#include -#include +#include // for Ensures, Expects +#include // for narrow_cast +#include // for operator!=, operator==, dynamic_extent -#include +#include // for equal, lexicographical_compare +#include // for array +#include // for ptrdiff_t, size_t, nullptr_t +#include // for PTRDIFF_MAX #include -#include +#include // for basic_string, allocator, char_traits +#include // for declval, is_convertible, enable_if_t, add_... #ifdef _MSC_VER #pragma warning(push) diff --git a/tests/algorithm_tests.cpp b/tests/algorithm_tests.cpp index 045fd3e..388d17d 100644 --- a/tests/algorithm_tests.cpp +++ b/tests/algorithm_tests.cpp @@ -14,11 +14,17 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, CHECK, CHE... -#include +#include // for copy +#include // for span -#include +#include // for array +#include // for size_t + +namespace gsl { +struct fail_fast; +} // namespace gsl using namespace std; using namespace gsl; diff --git a/tests/assertion_tests.cpp b/tests/assertion_tests.cpp index 42966d1..25c0089 100644 --- a/tests/assertion_tests.cpp +++ b/tests/assertion_tests.cpp @@ -14,9 +14,9 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, CHECK, CHECK... -#include +#include // for fail_fast (ptr only), Ensures, Expects using namespace gsl; diff --git a/tests/at_tests.cpp b/tests/at_tests.cpp index 78e8e3d..2f9e999 100644 --- a/tests/at_tests.cpp +++ b/tests/at_tests.cpp @@ -14,12 +14,18 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, CHECK_THROW... -#include +#include // for at -#include -#include +#include // for array +#include // for size_t +#include // for initializer_list +#include // for vector + +namespace gsl { +struct fail_fast; +} // namespace gsl using gsl::fail_fast; diff --git a/tests/bounds_tests.cpp b/tests/bounds_tests.cpp index 51b5393..1f4b1e2 100644 --- a/tests/bounds_tests.cpp +++ b/tests/bounds_tests.cpp @@ -14,11 +14,15 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, TEST_CASE -#include +#include // for static_bounds, static_bounds_dynamic_range_t -#include +#include // for ptrdiff_t, size_t + +namespace gsl { +struct fail_fast; +} // namespace gsl using namespace std; using namespace gsl; diff --git a/tests/byte_tests.cpp b/tests/byte_tests.cpp index 2c6259d..41501ce 100644 --- a/tests/byte_tests.cpp +++ b/tests/byte_tests.cpp @@ -14,16 +14,9 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, CHECK, TEST_... -#include - -#include -#include -#include -#include -#include -#include +#include // for to_byte, to_integer, byte, operator&, ope... using namespace std; using namespace gsl; diff --git a/tests/multi_span_tests.cpp b/tests/multi_span_tests.cpp index af58d76..52df759 100644 --- a/tests/multi_span_tests.cpp +++ b/tests/multi_span_tests.cpp @@ -14,16 +14,24 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, CHECK, CHECK... -#include +#include // for byte +#include // for narrow_cast +#include // for multi_span, contiguous_span_iterator, dim -#include -#include -#include -#include -#include -#include +#include // for fill, for_each +#include // for array +#include // for ptrdiff_t, size_t +#include // for reverse_iterator, begin, end, operator!= +#include // for iota +#include // for ptrdiff_t +#include // for string +#include // for vector + +namespace gsl { +struct fail_fast; +} // namespace gsl using namespace std; using namespace gsl; diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp index 6c841f0..50b15f6 100644 --- a/tests/notnull_tests.cpp +++ b/tests/notnull_tests.cpp @@ -14,13 +14,20 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, CHECK, TEST_... -#include +#include // for not_null, operator<, operator<=, operator> -#include -#include -#include +#include // for addressof +#include // for shared_ptr, make_shared, operator<, opera... +#include // for operator<<, ostringstream, basic_ostream:... +#include // for uint16_t +#include // for basic_string, operator==, string, operator<< +#include // for type_info + +namespace gsl { +struct fail_fast; +} // namespace gsl using namespace gsl; diff --git a/tests/owner_tests.cpp b/tests/owner_tests.cpp index dbc8d16..94822f5 100644 --- a/tests/owner_tests.cpp +++ b/tests/owner_tests.cpp @@ -14,12 +14,9 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, CHECK, TEST_... -#include - -#include -#include +#include // for owner using namespace gsl; diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index bc4666b..b14ddf0 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -14,17 +14,25 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, CHECK, TEST_... -#include +#include // for byte +#include // for narrow_cast, at +#include // for span, span_iterator, operator==, operator!= -#include -#include -#include -#include -#include -#include -#include +#include // for array +#include // for ptrdiff_t +#include // for reverse_iterator, operator-, operator== +#include // for unique_ptr, shared_ptr, make_unique, allo... +#include // for match_results, sub_match, match_results<>... +#include // for ptrdiff_t +#include // for string +#include // for integral_constant<>::value, is_default_co... +#include // for vector + +namespace gsl { +struct fail_fast; +} // namespace gsl using namespace std; using namespace gsl; diff --git a/tests/strided_span_tests.cpp b/tests/strided_span_tests.cpp index 14400d4..2c1c047 100644 --- a/tests/strided_span_tests.cpp +++ b/tests/strided_span_tests.cpp @@ -14,16 +14,21 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, CHECK, CHECK... -#include +#include // for byte +#include // for narrow_cast +#include // for strided_span, index, multi_span, strided_... -#include -#include -#include -#include -#include -#include +#include // for size_t +#include // for begin, end +#include // for iota +#include // for integral_constant<>::value, is_convertible +#include // for vector + +namespace gsl { +struct fail_fast; +} // namespace gsl using namespace std; using namespace gsl; diff --git a/tests/string_span_tests.cpp b/tests/string_span_tests.cpp index 823b19d..83171ac 100644 --- a/tests/string_span_tests.cpp +++ b/tests/string_span_tests.cpp @@ -14,15 +14,19 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, CHECK, TEST_... -#include //owner -#include +#include // for Expects, fail_fast (ptr only) +#include // for owner +#include // for span, dynamic_extent +#include // for basic_string_span, operator==, ensure_z -#include -#include -#include -#include +#include // for move, find +#include // for size_t +#include // for map +#include // for basic_string, string, char_traits, operat... +#include // for remove_reference<>::type +#include // for vector, allocator using namespace std; using namespace gsl; diff --git a/tests/utils_tests.cpp b/tests/utils_tests.cpp index 67cceb5..610efbf 100644 --- a/tests/utils_tests.cpp +++ b/tests/utils_tests.cpp @@ -14,11 +14,14 @@ // /////////////////////////////////////////////////////////////////////////////// -#include +#include // for AssertionHandler, StringRef, CHECK, TEST_... -#include +#include // for narrow, finally, narrow_cast, narrowing_e... -#include +#include // for move +#include // for reference_wrapper, _Bind_helper<>::type +#include // for numeric_limits +#include // for uint32_t, int32_t using namespace gsl;