From 082229eb0fd5cdf98c6c15ce697ab93eb4c41b42 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 3 Apr 2018 15:48:24 +0000 Subject: [PATCH] Implement P0754R2: The header. llvm-svn: 329075 --- libcxx/include/version | 25 +++++++++++++++++++ .../support.limits/version.pass.cpp | 23 +++++++++++++++++ .../support.limits/version.pass.cpp | 17 +++++++++++++ libcxx/www/cxx2a_status.html | 4 +-- 4 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 libcxx/include/version create mode 100644 libcxx/test/libcxx/language.support/support.limits/version.pass.cpp create mode 100644 libcxx/test/std/language.support/support.limits/version.pass.cpp diff --git a/libcxx/include/version b/libcxx/include/version new file mode 100644 index 000000000000..23a872ea85ac --- /dev/null +++ b/libcxx/include/version @@ -0,0 +1,25 @@ +// -*- C++ -*- +//===--------------------------- version ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef _LIBCPP_VERSIONH +#define _LIBCPP_VERSIONH + +/* + version synopsis + +*/ + +#include <__config> + +#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) +#pragma GCC system_header +#endif + +#endif // _LIBCPP_VERSIONH diff --git a/libcxx/test/libcxx/language.support/support.limits/version.pass.cpp b/libcxx/test/libcxx/language.support/support.limits/version.pass.cpp new file mode 100644 index 000000000000..2a371881e828 --- /dev/null +++ b/libcxx/test/libcxx/language.support/support.limits/version.pass.cpp @@ -0,0 +1,23 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: clang-3.3, clang-3.4, clang-3.5, clang-3.6, clang-3.7 +// UNSUPPORTED: clang-3.8, clang-3.9, clang-4.0, clang-5.0, clang-6.0 + +#include + +#if !defined(_LIBCPP_VERSION) +#error "_LIBCPP_VERSION must be defined after including " +#endif + +int main() +{ +} diff --git a/libcxx/test/std/language.support/support.limits/version.pass.cpp b/libcxx/test/std/language.support/support.limits/version.pass.cpp new file mode 100644 index 000000000000..c41f492bbed4 --- /dev/null +++ b/libcxx/test/std/language.support/support.limits/version.pass.cpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 + +#include + +int main() +{ +} diff --git a/libcxx/www/cxx2a_status.html b/libcxx/www/cxx2a_status.html index a29a98fbfe17..928c926b2dc7 100644 --- a/libcxx/www/cxx2a_status.html +++ b/libcxx/www/cxx2a_status.html @@ -76,7 +76,7 @@ P0355R7LWGExtending chrono to Calendars and Time ZonesJacksonville P0551R3LWGThou Shalt Not Specialize std Function Templates!Jacksonville P0753R2LWGManipulators for C++ Synchronized Buffered OstreamJacksonville - P0754R2LWG<version>Jacksonville + P0754R2LWG<version>JacksonvilleComplete7.0 P0809R0LWGComparing Unordered ContainersJacksonville P0858R0LWGConstexpr iterator requirementsJacksonville P0905R1CWGSymmetry for spaceshipJacksonville @@ -180,7 +180,7 @@ -

Last Updated: 20-Mar-2018

+

Last Updated: 3-Apr-2018