From 0de917eac4f7d66eca9c5f5529cd7f95b1986cd3 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Fri, 23 Dec 2016 20:00:13 +0000 Subject: [PATCH] Update doc and various cleanup git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290446 91177308-0d34-0410-b5e6-96231b3b80d8 --- NOTES.TXT | 28 ++++++++++ RELEASE.TXT | 11 ---- TODO.TXT | 8 --- test/libcxx/double_include.sh.cpp | 89 ++++++++++++++++++++++++------- 4 files changed, 98 insertions(+), 38 deletions(-) create mode 100644 NOTES.TXT delete mode 100644 RELEASE.TXT diff --git a/NOTES.TXT b/NOTES.TXT new file mode 100644 index 000000000..f0597de64 --- /dev/null +++ b/NOTES.TXT @@ -0,0 +1,28 @@ +//===---------------------------------------------------------------------===// +// Notes relating to various libc++ tasks +//===---------------------------------------------------------------------===// + +This file contains notes about various libc++ tasks and processes. + +//===---------------------------------------------------------------------===// +// Post-Release TODO +//===---------------------------------------------------------------------===// + +These notes contain a list of things that must be done after branching for +an LLVM release. + +1. Update _LIBCPP_VERSION in `__config` +2. Update the __libcpp_version file. +3. Update the version number in `docs/conf.py` +4. Create ABI lists for the previous release under `lib/abi` + +//===---------------------------------------------------------------------===// +// Adding a new header TODO +//===---------------------------------------------------------------------===// + +These notes contain a list of things that must be done upon adding a new header +to libc++. + +1. Add a test under `test/libcxx` that the header defines `_LIBCPP_VERSION`. +2. Update `test/libcxx/double_include.sh.cpp` to include the new header. +3. Create a submodule in `include/module.modulemap` for the new header. diff --git a/RELEASE.TXT b/RELEASE.TXT deleted file mode 100644 index d33bc7d4a..000000000 --- a/RELEASE.TXT +++ /dev/null @@ -1,11 +0,0 @@ -//===---------------------------------------------------------------------===// -// Post-Release TODO -//===---------------------------------------------------------------------===// - -These notes contain a list of things that must be done after branching for -an LLVM release. - -1. Update _LIBCPP_VERSION in `__config` -2. Update the __libcpp_version file. -3. Update the version number in `docs/conf.py` -4. Create ABI lists for the previous release under `lib/abi` diff --git a/TODO.TXT b/TODO.TXT index b14780b5b..998f81ba6 100644 --- a/TODO.TXT +++ b/TODO.TXT @@ -1,10 +1,5 @@ This is meant to be a general place to list things that should be done "someday" - -ABI Related Tasks -================= -* Explicitly manage and verify symbols exported from the dylib. - CXX Runtime Library Tasks ========================= * Fix that CMake always link to /usr/lib/libc++abi.dylib on OS X. @@ -19,7 +14,6 @@ Atomic Related Tasks Test Suite Tasks ================ -* Move all libc++ specific tests from test/std into test/libcxx. * Improve the quality and portability of the locale test data. * Convert failure tests to use Clang Verify. @@ -29,6 +23,4 @@ Misc Tasks * run clang-tidy on libc++ * Document the "conditionally-supported" bits of libc++ * Look at basic_string's move assignment operator, re LWG 2063 and POCMA -* libc++ is missing try_emplace * Put a static_assert in std::allocator to deny const/volatile types (LWG 2447) - diff --git a/test/libcxx/double_include.sh.cpp b/test/libcxx/double_include.sh.cpp index 99767cf1b..46dfc999b 100644 --- a/test/libcxx/double_include.sh.cpp +++ b/test/libcxx/double_include.sh.cpp @@ -15,14 +15,18 @@ // RUN: %cxx -o %t.exe %t.first.o %t.second.o %flags %link_flags // RUN: %run - // Prevent from generating deprecated warnings for this test. #if defined(__DEPRECATED) #undef __DEPRECATED #endif +// Top level headers #include +#include #include +#ifndef _LIBCPP_HAS_NO_THREADS +#include +#endif #include #include #include @@ -51,25 +55,21 @@ #include #include #include +#include #include #include #include +#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include #include #include #include +#ifndef _LIBCPP_HAS_NO_THREADS +#include +#endif #include +#include #include #include #include @@ -77,12 +77,19 @@ #include #include #include +#include #include #include +#include #include +#include #include +#ifndef _LIBCPP_HAS_NO_THREADS +#include +#endif #include #include +#include #include #include #include @@ -90,14 +97,28 @@ #include #include #include +#include +#ifndef _LIBCPP_HAS_NO_THREADS +#include +#endif #include #include +#include +#include #include +#include +#include +#include #include #include +#include +#include #include #include #include +#ifndef _LIBCPP_HAS_NO_THREADS +#include +#endif #include #include #include @@ -106,15 +127,45 @@ #include #include #include +#include #include +#include +#include -#ifndef _LIBCPP_HAS_NO_THREADS -#include -#include -#include -#include -#include -#endif +// experimental headers +#if __cplusplus >= 201103L +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // __cplusplus >= 201103L + +// extended headers +#include +#include #if defined(WITH_MAIN) int main() {}