diff options
author | Galik <galik.bool@gmail.com> | 2016-08-10 17:24:00 +0100 |
---|---|---|
committer | Galik <galik.bool@gmail.com> | 2016-08-10 17:24:00 +0100 |
commit | 222c2d85fd2ab37128f5cf00d5267489ea2a8625 (patch) | |
tree | 9081760aad3439e905805a6661683eb2f0f3681b | |
parent | f5dda0fb20ef6025a8f9155921b5e3e27c125f79 (diff) | |
download | platform_external_Microsoft-GSL-222c2d85fd2ab37128f5cf00d5267489ea2a8625.tar.gz platform_external_Microsoft-GSL-222c2d85fd2ab37128f5cf00d5267489ea2a8625.tar.bz2 platform_external_Microsoft-GSL-222c2d85fd2ab37128f5cf00d5267489ea2a8625.zip |
Removed .h extension from header files.
-rw-r--r-- | CMakeLists.txt | 8 | ||||
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | gsl/gsl (renamed from gsl/gsl.h) | 10 | ||||
-rw-r--r-- | gsl/gsl_assert (renamed from gsl/gsl_assert.h) | 0 | ||||
-rw-r--r-- | gsl/gsl_byte (renamed from gsl/gsl_byte.h) | 0 | ||||
-rw-r--r-- | gsl/gsl_util (renamed from gsl/gsl_util.h) | 2 | ||||
-rw-r--r-- | gsl/multi_span (renamed from gsl/multi_span.h) | 6 | ||||
-rw-r--r-- | gsl/span (renamed from gsl/span.h) | 6 | ||||
-rw-r--r-- | gsl/string_span (renamed from gsl/string_span.h) | 6 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/assertion_tests.cpp | 2 | ||||
-rw-r--r-- | tests/at_tests.cpp | 2 | ||||
-rw-r--r-- | tests/bounds_tests.cpp | 2 | ||||
-rw-r--r-- | tests/byte_tests.cpp | 2 | ||||
-rw-r--r-- | tests/multi_span_tests.cpp | 2 | ||||
-rw-r--r-- | tests/notnull_tests.cpp | 2 | ||||
-rw-r--r-- | tests/owner_tests.cpp | 2 | ||||
-rw-r--r-- | tests/span_tests.cpp | 2 | ||||
-rw-r--r-- | tests/strided_span_tests.cpp | 2 | ||||
-rw-r--r-- | tests/string_span_tests.cpp | 2 | ||||
-rw-r--r-- | tests/utils_tests.cpp | 2 |
21 files changed, 34 insertions, 35 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ba85857..cb5911c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,10 +3,10 @@ cmake_minimum_required(VERSION 2.8.7) project(GSL CXX) set(GSL_HEADERS - "gsl/gsl.h" - "gsl/gsl_assert.h" - "gsl/span.h" - "gsl/string_span.h" + "gsl/gsl" + "gsl/gsl_assert" + "gsl/span" + "gsl/string_span" ) include_directories( @@ -8,8 +8,8 @@ The library includes types like `span<T>`, `string_span`, `owner<>` and others. The entire implementation is provided inline in the headers under the [gsl](./gsl) directory. The implementation generally assumes a platform that implements C++14 support. There are specific workarounds to support MSVC 2013 and 2015. -While some types have been broken out into their own headers (e.g. [gsl/span.h](./gsl/span.h)), -it is simplest to just include [gsl/gsl.h](./gsl/gsl.h) and gain access to the entire library. +While some types have been broken out into their own headers (e.g. [gsl/span](./gsl/span)), +it is simplest to just include [gsl/gsl](./gsl/gsl) and gain access to the entire library. > NOTE: We encourage contributions that improve or refine any of the types in this library as well as ports to other platforms. Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for more information about contributing. @@ -78,8 +78,7 @@ MSVC++ GCC/clang -I$HOME/dev/GSL - Include the library using: - #include <gsl/gsl.h> + #include <gsl/gsl> @@ -19,11 +19,11 @@ #ifndef GSL_GSL_H #define GSL_GSL_H -#include "gsl_assert.h" // Ensures/Expects -#include "gsl_util.h" // finally()/narrow()/narrow_cast()... -#include "multi_span.h" // multi_span, strided_span... -#include "span.h" // span -#include "string_span.h" // zstring, string_span, zstring_builder... +#include "gsl_assert" // Ensures/Expects +#include "gsl_util" // finally()/narrow()/narrow_cast()... +#include "multi_span" // multi_span, strided_span... +#include "span" // span +#include "string_span" // zstring, string_span, zstring_builder... #include <memory> #ifdef _MSC_VER diff --git a/gsl/gsl_assert.h b/gsl/gsl_assert index 10de31a..10de31a 100644 --- a/gsl/gsl_assert.h +++ b/gsl/gsl_assert diff --git a/gsl/gsl_byte.h b/gsl/gsl_byte index 5a9c327..5a9c327 100644 --- a/gsl/gsl_byte.h +++ b/gsl/gsl_byte diff --git a/gsl/gsl_util.h b/gsl/gsl_util index 92a795b..4a0dabe 100644 --- a/gsl/gsl_util.h +++ b/gsl/gsl_util @@ -19,7 +19,7 @@ #ifndef GSL_UTIL_H #define GSL_UTIL_H -#include "gsl_assert.h" // Ensures/Expects +#include "gsl_assert" // Ensures/Expects #include <array> #include <exception> #include <type_traits> diff --git a/gsl/multi_span.h b/gsl/multi_span index c883fb0..fcc53b8 100644 --- a/gsl/multi_span.h +++ b/gsl/multi_span @@ -19,9 +19,9 @@ #ifndef GSL_MULTI_SPAN_H #define GSL_MULTI_SPAN_H -#include "gsl_assert.h" -#include "gsl_byte.h" -#include "gsl_util.h" +#include "gsl_assert" +#include "gsl_byte" +#include "gsl_util" #include <algorithm> #include <array> #include <cassert> @@ -20,9 +20,9 @@ #ifndef GSL_SPAN_H #define GSL_SPAN_H -#include "gsl_assert.h" -#include "gsl_byte.h" -#include "gsl_util.h" +#include "gsl_assert" +#include "gsl_byte" +#include "gsl_util" #include <array> #include <iterator> #include <limits> diff --git a/gsl/string_span.h b/gsl/string_span index e18e07a..fa3d2ff 100644 --- a/gsl/string_span.h +++ b/gsl/string_span @@ -19,9 +19,9 @@ #ifndef GSL_STRING_SPAN_H #define GSL_STRING_SPAN_H -#include "gsl_assert.h" -#include "gsl_util.h" -#include "span.h" +#include "gsl_assert" +#include "gsl_util" +#include "span" #include <cstdint> #include <cstring> #include <string> diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4a59470..3c3125e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -33,7 +33,7 @@ else() endif() function(add_gsl_test name) - add_executable(${name} ${name}.cpp ../gsl/gsl.h ../gsl/gsl_assert.h ../gsl/gsl_util.h ../gsl/multi_span.h ../gsl/span.h ../gsl/string_span.h) + add_executable(${name} ${name}.cpp ../gsl/gsl ../gsl/gsl_assert ../gsl/gsl_util ../gsl/multi_span ../gsl/span ../gsl/string_span) target_link_libraries(${name} UnitTest++) install(TARGETS ${name} RUNTIME DESTINATION bin diff --git a/tests/assertion_tests.cpp b/tests/assertion_tests.cpp index 4ac1856..a251200 100644 --- a/tests/assertion_tests.cpp +++ b/tests/assertion_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <UnitTest++/UnitTest++.h> -#include <gsl/gsl.h> +#include <gsl/gsl> using namespace gsl; diff --git a/tests/at_tests.cpp b/tests/at_tests.cpp index 53d93d1..008fddf 100644 --- a/tests/at_tests.cpp +++ b/tests/at_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <UnitTest++/UnitTest++.h> -#include <gsl/gsl.h> +#include <gsl/gsl> #include <vector> #include <initializer_list> diff --git a/tests/bounds_tests.cpp b/tests/bounds_tests.cpp index 7d5a071..d10bf6d 100644 --- a/tests/bounds_tests.cpp +++ b/tests/bounds_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <UnitTest++/UnitTest++.h> -#include <gsl/multi_span.h> +#include <gsl/multi_span> #include <vector> using namespace std; diff --git a/tests/byte_tests.cpp b/tests/byte_tests.cpp index 183bebf..f2f8026 100644 --- a/tests/byte_tests.cpp +++ b/tests/byte_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <UnitTest++/UnitTest++.h> -#include <gsl/gsl_byte.h> +#include <gsl/gsl_byte> #include <iostream> #include <list> diff --git a/tests/multi_span_tests.cpp b/tests/multi_span_tests.cpp index b2e5b5f..f04ba84 100644 --- a/tests/multi_span_tests.cpp +++ b/tests/multi_span_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <UnitTest++/UnitTest++.h> -#include <gsl/multi_span.h> +#include <gsl/multi_span> #include <iostream> #include <list> diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp index bc12e9b..526b074 100644 --- a/tests/notnull_tests.cpp +++ b/tests/notnull_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <UnitTest++/UnitTest++.h> -#include <gsl/gsl.h> +#include <gsl/gsl> #include <vector> using namespace gsl; diff --git a/tests/owner_tests.cpp b/tests/owner_tests.cpp index 3c82022..6680981 100644 --- a/tests/owner_tests.cpp +++ b/tests/owner_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <UnitTest++/UnitTest++.h> -#include <gsl/gsl.h> +#include <gsl/gsl> #include <functional> using namespace gsl; diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index fb20f77..8479aa1 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <UnitTest++/UnitTest++.h> -#include <gsl/span.h> +#include <gsl/span> #include <iostream> #include <list> diff --git a/tests/strided_span_tests.cpp b/tests/strided_span_tests.cpp index 4c07670..86666d1 100644 --- a/tests/strided_span_tests.cpp +++ b/tests/strided_span_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <UnitTest++/UnitTest++.h> -#include <gsl/multi_span.h> +#include <gsl/multi_span> #include <string> #include <vector> diff --git a/tests/string_span_tests.cpp b/tests/string_span_tests.cpp index 3eeacb0..7e623f3 100644 --- a/tests/string_span_tests.cpp +++ b/tests/string_span_tests.cpp @@ -16,7 +16,7 @@ #include <UnitTest++/UnitTest++.h> #include <cstdlib> -#include <gsl/string_span.h> +#include <gsl/string_span> #include <vector> #include <map> diff --git a/tests/utils_tests.cpp b/tests/utils_tests.cpp index 8c98223..9f4ba02 100644 --- a/tests/utils_tests.cpp +++ b/tests/utils_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <UnitTest++/UnitTest++.h> -#include <gsl/gsl.h> +#include <gsl/gsl> #include <functional> using namespace gsl; |