PR #319 Removed .h extension from header files.

This commit is contained in:
Neil MacIntosh 2016-08-10 10:25:09 -07:00 committed by GitHub
commit cb6996cd97
21 changed files with 34 additions and 35 deletions

View File

@ -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(

View File

@ -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.
@ -79,7 +79,6 @@ GCC/clang
-I$HOME/dev/GSL
Include the library using:
#include <gsl/gsl.h>
#include <gsl/gsl>

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -15,7 +15,7 @@
///////////////////////////////////////////////////////////////////////////////
#include <UnitTest++/UnitTest++.h>
#include <gsl/gsl.h>
#include <gsl/gsl>
using namespace gsl;

View File

@ -15,7 +15,7 @@
///////////////////////////////////////////////////////////////////////////////
#include <UnitTest++/UnitTest++.h>
#include <gsl/gsl.h>
#include <gsl/gsl>
#include <vector>
#include <initializer_list>

View File

@ -15,7 +15,7 @@
///////////////////////////////////////////////////////////////////////////////
#include <UnitTest++/UnitTest++.h>
#include <gsl/multi_span.h>
#include <gsl/multi_span>
#include <vector>
using namespace std;

View File

@ -15,7 +15,7 @@
///////////////////////////////////////////////////////////////////////////////
#include <UnitTest++/UnitTest++.h>
#include <gsl/gsl_byte.h>
#include <gsl/gsl_byte>
#include <iostream>
#include <list>

View File

@ -15,7 +15,7 @@
///////////////////////////////////////////////////////////////////////////////
#include <UnitTest++/UnitTest++.h>
#include <gsl/multi_span.h>
#include <gsl/multi_span>
#include <iostream>
#include <list>

View File

@ -15,7 +15,7 @@
///////////////////////////////////////////////////////////////////////////////
#include <UnitTest++/UnitTest++.h>
#include <gsl/gsl.h>
#include <gsl/gsl>
#include <vector>
using namespace gsl;

View File

@ -15,7 +15,7 @@
///////////////////////////////////////////////////////////////////////////////
#include <UnitTest++/UnitTest++.h>
#include <gsl/gsl.h>
#include <gsl/gsl>
#include <functional>
using namespace gsl;

View File

@ -15,7 +15,7 @@
///////////////////////////////////////////////////////////////////////////////
#include <UnitTest++/UnitTest++.h>
#include <gsl/span.h>
#include <gsl/span>
#include <iostream>
#include <list>

View File

@ -15,7 +15,7 @@
///////////////////////////////////////////////////////////////////////////////
#include <UnitTest++/UnitTest++.h>
#include <gsl/multi_span.h>
#include <gsl/multi_span>
#include <string>
#include <vector>

View File

@ -16,7 +16,7 @@
#include <UnitTest++/UnitTest++.h>
#include <cstdlib>
#include <gsl/string_span.h>
#include <gsl/string_span>
#include <vector>
#include <map>

View File

@ -15,7 +15,7 @@
///////////////////////////////////////////////////////////////////////////////
#include <UnitTest++/UnitTest++.h>
#include <gsl/gsl.h>
#include <gsl/gsl>
#include <functional>
using namespace gsl;