Add pragma system header to some experimental headers and add newlines to files.

llvm-svn: 228712
This commit is contained in:
Eric Fiselier 2015-02-10 17:32:49 +00:00
parent 861d0ea2aa
commit cc2e1ab69c
7 changed files with 23 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -104,4 +104,4 @@ int main () {
}
}
#endif
}
}

View File

@ -135,4 +135,4 @@ constexpr_char_traits<_CharT>::assign(char_type* __s, size_t __n, char_type __a)
return __r;
}
#endif // _CONSTEXPR_CHAR_TRAITS
#endif // _CONSTEXPR_CHAR_TRAITS