From 4f7d32cce0bf0f6de83562f05b44e78134ef0b2e Mon Sep 17 00:00:00 2001 From: Rian Quinn Date: Thu, 9 Mar 2017 09:13:37 -0700 Subject: [PATCH] register GSL as a system header GSL currently causes Clang Tidy to go nuts for several reasons: 1) there are several checks that fail because of UnitTest++ 2) there are several checks that fail simply because we need to clean up some issues 3) the Core Guideline checks clearly fail since we are implementing the GSL Adding this macro prevents Clang Tidy and other tools (like coverage tools) from registering the GSL as code the belongs to the project. --- include/gsl/gsl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/gsl/gsl b/include/gsl/gsl index c620a09..e6e6fdb 100644 --- a/include/gsl/gsl +++ b/include/gsl/gsl @@ -19,6 +19,8 @@ #ifndef GSL_GSL_H #define GSL_GSL_H +#pragma GCC system_header + #include // Ensures/Expects #include // finally()/narrow()/narrow_cast()... #include // multi_span, strided_span...