From 7e529a47c2bf8eb8cc5ab509595f05e0bfbe720f Mon Sep 17 00:00:00 2001 From: bjude Date: Wed, 15 Nov 2017 00:38:16 +0800 Subject: [PATCH] Remove #pragma once (#545) (#570) Core Guidelines SF.8 recommends using portable include guards instead. --- include/gsl/gsl | 2 -- include/gsl/gsl_algorithm | 2 -- include/gsl/gsl_assert | 2 -- include/gsl/gsl_byte | 2 -- include/gsl/gsl_util | 2 -- include/gsl/multi_span | 2 -- include/gsl/pointers | 2 -- include/gsl/span | 2 -- include/gsl/string_span | 2 -- 9 files changed, 18 deletions(-) diff --git a/include/gsl/gsl b/include/gsl/gsl index 4f69bbf..ec9632c 100644 --- a/include/gsl/gsl +++ b/include/gsl/gsl @@ -14,8 +14,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#pragma once - #ifndef GSL_GSL_H #define GSL_GSL_H diff --git a/include/gsl/gsl_algorithm b/include/gsl/gsl_algorithm index 88c1ff7..9e6678a 100644 --- a/include/gsl/gsl_algorithm +++ b/include/gsl/gsl_algorithm @@ -14,8 +14,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#pragma once - #ifndef GSL_ALGORITHM_H #define GSL_ALGORITHM_H diff --git a/include/gsl/gsl_assert b/include/gsl/gsl_assert index 43da231..2157673 100644 --- a/include/gsl/gsl_assert +++ b/include/gsl/gsl_assert @@ -14,8 +14,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#pragma once - #ifndef GSL_CONTRACTS_H #define GSL_CONTRACTS_H diff --git a/include/gsl/gsl_byte b/include/gsl/gsl_byte index 7155210..6e34a55 100644 --- a/include/gsl/gsl_byte +++ b/include/gsl/gsl_byte @@ -14,8 +14,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#pragma once - #ifndef GSL_BYTE_H #define GSL_BYTE_H diff --git a/include/gsl/gsl_util b/include/gsl/gsl_util index d669b86..86a3ad7 100644 --- a/include/gsl/gsl_util +++ b/include/gsl/gsl_util @@ -14,8 +14,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#pragma once - #ifndef GSL_UTIL_H #define GSL_UTIL_H diff --git a/include/gsl/multi_span b/include/gsl/multi_span index f9058b5..4b2dc0f 100644 --- a/include/gsl/multi_span +++ b/include/gsl/multi_span @@ -14,8 +14,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#pragma once - #ifndef GSL_MULTI_SPAN_H #define GSL_MULTI_SPAN_H diff --git a/include/gsl/pointers b/include/gsl/pointers index cff2513..1c91e52 100644 --- a/include/gsl/pointers +++ b/include/gsl/pointers @@ -14,8 +14,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#pragma once - #ifndef GSL_POINTERS_H #define GSL_POINTERS_H diff --git a/include/gsl/span b/include/gsl/span index 7ea1a6c..98fe768 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -14,8 +14,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#pragma once - #ifndef GSL_SPAN_H #define GSL_SPAN_H diff --git a/include/gsl/string_span b/include/gsl/string_span index 33e096a..f6fe4eb 100644 --- a/include/gsl/string_span +++ b/include/gsl/string_span @@ -14,8 +14,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#pragma once - #ifndef GSL_STRING_SPAN_H #define GSL_STRING_SPAN_H