[libcxx] r228712 - Add pragma system header to some experimental headers and add newlines to files.

Eric Fiselier eric at efcs.ca
Tue Feb 10 09:32:50 PST 2015


Author: ericwf
Date: Tue Feb 10 11:32:49 2015
New Revision: 228712

URL: http://llvm.org/viewvc/llvm-project?rev=228712&view=rev
Log:
Add pragma system header to some experimental headers and add newlines to files.

Modified:
    libcxx/trunk/include/experimental/__config
    libcxx/trunk/include/experimental/chrono
    libcxx/trunk/include/experimental/system_error
    libcxx/trunk/include/experimental/type_traits
    libcxx/trunk/include/experimental/utility
    libcxx/trunk/test/std/experimental/string.view/string.view.ops/substr.pass.cpp
    libcxx/trunk/test/support/constexpr_char_traits.hpp

Modified: libcxx/trunk/include/experimental/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/experimental/__config?rev=228712&r1=228711&r2=228712&view=diff
==============================================================================
--- libcxx/trunk/include/experimental/__config (original)
+++ libcxx/trunk/include/experimental/__config Tue Feb 10 11:32:49 2015
@@ -13,6 +13,10 @@
 
 #include <__config>
 
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
+
 #define _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL namespace std { namespace experimental {
 #define _LIBCPP_END_NAMESPACE_EXPERIMENTAL  } }
 #define _VSTD_EXPERIMENTAL std::experimental

Modified: libcxx/trunk/include/experimental/chrono
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/experimental/chrono?rev=228712&r1=228711&r2=228712&view=diff
==============================================================================
--- libcxx/trunk/include/experimental/chrono (original)
+++ libcxx/trunk/include/experimental/chrono Tue Feb 10 11:32:49 2015
@@ -37,6 +37,10 @@ inline namespace fundamentals_v1 {
 #include <experimental/__config>
 #include <chrono>
 
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
+
 #if _LIBCPP_STD_VER > 11
 
 _LIBCPP_BEGIN_NAMESPACE_CHRONO_LFTS

Modified: libcxx/trunk/include/experimental/system_error
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/experimental/system_error?rev=228712&r1=228711&r2=228712&view=diff
==============================================================================
--- libcxx/trunk/include/experimental/system_error (original)
+++ libcxx/trunk/include/experimental/system_error Tue Feb 10 11:32:49 2015
@@ -40,6 +40,10 @@ inline namespace fundamentals_v1 {
 
 #include <system_error>
 
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
+
 _LIBCPP_BEGIN_NAMESPACE_LFTS
 
 #if __has_feature(cxx_variable_templates)

Modified: libcxx/trunk/include/experimental/type_traits
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/experimental/type_traits?rev=228712&r1=228711&r2=228712&view=diff
==============================================================================
--- libcxx/trunk/include/experimental/type_traits (original)
+++ libcxx/trunk/include/experimental/type_traits Tue Feb 10 11:32:49 2015
@@ -184,6 +184,10 @@ inline namespace fundamentals_v1 {
 
 #include <type_traits>
 
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
+
 _LIBCPP_BEGIN_NAMESPACE_LFTS
 
 #if __has_feature(cxx_variable_templates)

Modified: libcxx/trunk/include/experimental/utility
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/experimental/utility?rev=228712&r1=228711&r2=228712&view=diff
==============================================================================
--- libcxx/trunk/include/experimental/utility (original)
+++ libcxx/trunk/include/experimental/utility Tue Feb 10 11:32:49 2015
@@ -31,9 +31,12 @@ inline namespace fundamentals_v1 {
 
  */
 
-# include <experimental/__config>
+#include <experimental/__config>
+#include <utility>
 
-# include <utility>
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
 
 _LIBCPP_BEGIN_NAMESPACE_LFTS
 

Modified: libcxx/trunk/test/std/experimental/string.view/string.view.ops/substr.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/string.view/string.view.ops/substr.pass.cpp?rev=228712&r1=228711&r2=228712&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/string.view/string.view.ops/substr.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/string.view/string.view.ops/substr.pass.cpp Tue Feb 10 11:32:49 2015
@@ -104,4 +104,4 @@ int main () {
     }
     }
 #endif
-}
\ No newline at end of file
+}

Modified: libcxx/trunk/test/support/constexpr_char_traits.hpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/constexpr_char_traits.hpp?rev=228712&r1=228711&r2=228712&view=diff
==============================================================================
--- libcxx/trunk/test/support/constexpr_char_traits.hpp (original)
+++ libcxx/trunk/test/support/constexpr_char_traits.hpp Tue Feb 10 11:32:49 2015
@@ -135,4 +135,4 @@ constexpr_char_traits<_CharT>::assign(ch
     return __r;
 }
 
-#endif // _CONSTEXPR_CHAR_TRAITS
\ No newline at end of file
+#endif // _CONSTEXPR_CHAR_TRAITS





More information about the cfe-commits mailing list