Commit Graph

2749 Commits

Author SHA1 Message Date
Eric Fiselier
4e69be0423 Generate code coverage for experimental libraries
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268887 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-08 23:08:50 +00:00
Eric Fiselier
8c8f0e5b65 Enable Pthread threading API on Solaris. Fix PR27677
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268860 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-07 17:05:46 +00:00
Eric Fiselier
ab46ace714 Fix memory_resource build for _LIBCPP_HAS_NO_THREADS
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268850 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-07 05:37:31 +00:00
Eric Fiselier
1354c943ad Update TS implementation status page
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268844 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-07 03:24:31 +00:00
Eric Fiselier
4db388b579 Change allocator<T>::allocate to throw length_error, not bad_alloc
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268842 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-07 03:12:24 +00:00
Eric Fiselier
dba23b499b Add experimental container alias templates for PMRs
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268841 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-07 03:09:55 +00:00
Eric Fiselier
33861da4f5 Fix one more usage of _LIBCPP_HAS_NO_EXCEPTIONS
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268839 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-07 02:33:25 +00:00
Eric Fiselier
96e4c23bf1 Fix typo it _LIBCPP_NO_EXCEPTIONS macro
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268838 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-07 02:30:21 +00:00
Eric Fiselier
257fd699fd Add <experimental/memory_resource>
Reviewers: mclow.lists, EricWF

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D20007

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268829 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-07 01:04:55 +00:00
Eric Fiselier
70487694ba Tweak --param=no_default_flags=true to still add -Ilibcxx/test/support
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268801 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-06 21:35:06 +00:00
Asiri Rathnayake
35ff03b7c2 Refactor pthread usage of libcxx.
This patch extracts out all the pthread dependencies of libcxx into the
new header __threading_support. The motivation is to make it easy to
re-target libcxx into platforms that do not support pthread.

Original patch from Fulvio Esposito (fulvio.esposito@outlook.com) - D11781

Applied with tweaks - D19412

Change-Id: I301111f0075de93dd8129416e06babc195aa936b

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268734 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-06 14:06:29 +00:00
Eric Fiselier
6637dc23f6 Fix errors in documentation
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268709 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-06 04:49:30 +00:00
Eric Fiselier
953f34fd94 Fix sphinx build. This is a temporary solution.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268614 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-05 08:12:25 +00:00
Eric Fiselier
f83eb7a8cc Try and fix sphinx build
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268613 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-05 06:30:05 +00:00
Eric Fiselier
8a7462d163 Removing some trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268543 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-04 20:29:19 +00:00
Marshall Clow
360fa62a01 Fixed some spelling errors in assert messages. No functional change. Thanks to giffunip@yahoo.com for the report.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268510 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-04 15:35:50 +00:00
Eric Fiselier
03dc08c1a6 Update version numbers in docs
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268459 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-03 22:50:33 +00:00
Eric Fiselier
7039fa1d20 Add documentation for new experimental library
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268456 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-03 22:32:08 +00:00
Eric Fiselier
7da079cc12 Make check-libcxx dependant on libc++experimental if present.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268451 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-03 21:58:07 +00:00
Eric Fiselier
5e4698c9a6 Create new library 'libc++experimental.a' for packaging TS symbols.
Summary:
Out-of-line symbols for <experimental/...> headers are not ABI or API stable and cannot live in the 'libc++.dylib'. Currently they have nowhere to live. I would like to add a new library target `libc++experimental.a` to fix this. 

Previously I had suggested different libraries for different TS's (`libc++filesystem.a`, 'libc++LFTS.a`, ect). I no longer think this is the right approach.
Instead `c++experimental` will hold *all* TS implementations as a single monolithic library. I see two main benefits to this:

1. Users only have to know about and manually link one library.
2. It makes it easy to implement TS's with one or two out-of-line symbols. (Ex. PMRs)

`c++experimental` provides NO ABI compatibility. Symbols can freely be added/removed/changed without concern for ABI stability.
I will add documentation for this after landing this patch (but before adding anything to it).

`c++experimental` only builds as a static library. By default CMake will build/test this library but will *NOT* install it.

This patch adds the CMake and LIT logic needed to build/test the new library. Once this lands I plan on using it to implement parts of `<experimental/memory_resource>`.



Reviewers: mclow.lists

Subscribers: cfe-commits, theraven, krememek, dexonsmith, bcraig, beanz, danalbert

Differential Revision: http://reviews.llvm.org/D19856

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268443 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-03 21:30:18 +00:00
Chris Bieneman
135ac80a48 [CMake] Fix a copy-paste error
Based on post commit feedback from Eric Fiselier.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268401 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-03 16:54:20 +00:00
Eric Fiselier
a956a105fe Fix dependencies on install-libcxx CMake target
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268363 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-03 05:34:38 +00:00
Eric Fiselier
6aec0206da Fix PR27538. Remove __is_convertible specializations for array and function types.
This patch fixes a bunch of bugs in the fallback implementation of
is_convertible, which is used by GCC. Removing the "__is_convertible"
specializations for array/function types we fallback on the SFINAE test,
which is more correct.

See https://llvm.org/bugs/show_bug.cgi?id=27538


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268359 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-03 04:26:02 +00:00
Eric Fiselier
219406e77f [libcxx] [test] Replace non-Standard "atomic_flag f(false);" with Standard "atomic_flag f;"
Summary:
Replace non-Standard "atomic_flag f(false);" with Standard "atomic_flag f;" in clear tests.
Although the  value of 'f' is unspecified it shouldn't matter because these tests always call `f.test_and_set()` without checking the result, so the initial state shouldn't matter.

The test init03.pass.cpp is explicitly testing this non-Standard extension; It has been moved into the `test/libcxx` directory.

Reviewers: mclow.lists, STL_MSFT

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D19758

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268355 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-03 02:12:26 +00:00
Eric Fiselier
0cf277c710 Don't use std::__clz in 'test/support/hexfloat.h'.
std::__clz is a libc++ specific function so it can't be used in the test suite.
This patch implements a dumb "count leading zeros" implementation within
hexfloat itself.

This patch also fixes UB since the output of `__builtin_clz(0)` is undefined
according to the GCC docs.


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268354 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-03 02:04:26 +00:00
Eric Fiselier
3ed38a96f8 Guard use of <unistd.h> in test.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268346 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-03 00:36:57 +00:00
Eric Fiselier
feb3898d4a Cleanup warnings and remove use of __builtin_va_list in depr.c.headers
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268294 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-02 20:08:16 +00:00
Eric Fiselier
46c05119b5 Initialize local doubles to NaN. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268285 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-02 19:20:16 +00:00
Eric Fiselier
a9ea11398d Void cast runtime-unused variables. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268284 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-02 19:15:48 +00:00
Eric Fiselier
61a220ae5b Replace one more occurrence of non-standard std:launch::any. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268153 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-30 02:30:18 +00:00
Chris Bieneman
ffa3db2cc6 [CMake] Create a separate install target for libcxx headers
This change doesn't impact the behavior of the install-libcxx target which installs whichever libcxx components you build, it just adds a separate target to just install the headers.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268124 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 22:17:15 +00:00
Eric Fiselier
59af3f895f Fix PR21428 for long. Buffer was one byte too small in octal formatting case. Rename previously added test
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268009 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 07:23:20 +00:00
Eric Fiselier
bc8538fde6 Move extern C include test into test/libcxx
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267983 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 04:19:48 +00:00
Eric Fiselier
a7a9004024 Fix test failures by adding missing include
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267982 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 04:18:13 +00:00
Eric Fiselier
1e5a4a4a71 Fix or move various non-standard tests.
This patch does the following:

* Remove <__config> includes from some container tests.
* Guards uses of std::launch::any in async tests because it's an extension.
* Move "test/std/extensions" to "test/libcxx/extensions"
* Moves various non-standard tests including those in "sequences/vector",
  "std/localization" and "utilities/meta".


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267981 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 04:07:45 +00:00
Eric Fiselier
96becae308 Move INVOKE tests into test/libcxx sub-tree.
Testing the concrete implementation of INVOKE means calling the implementation
specific names `__invoke` and `__invoke_constexpr`. For this reason the test
are non-standard. For this reason it's best if the tests live outside of the
`test/std` directory.


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267973 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 01:52:57 +00:00
Eric Fiselier
7aa3806b8c Fix possible test breakage for MinGW
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267968 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 01:22:16 +00:00
Eric Fiselier
59f8126f68 Fix get_temp_file_name() to compile on Windows. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267963 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 00:51:24 +00:00
Eric Fiselier
138574cae9 Remove more names of unreferenced parameters. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267962 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 00:47:16 +00:00
Eric Fiselier
b6e757ed1d Add a return value for nasty_mutex::operator&. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267961 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 00:45:46 +00:00
Eric Fiselier
2d1a7f1400 Add <string> include for streaming operators. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267959 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 00:39:40 +00:00
Eric Fiselier
6531a09dc7 Add proper include for unique_ptr. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267958 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 00:37:56 +00:00
Eric Fiselier
375e2f669c Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267947 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-28 22:28:23 +00:00
Eric Fiselier
bda804ea25 Remove names of unreferenced parameters. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267852 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-28 03:17:56 +00:00
Eric Fiselier
849c551745 Add braces, move braces, and rename variables to avoid shadowing. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267844 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-28 02:45:11 +00:00
Eric Fiselier
ce24f965f1 Provide member function definitions to avoid warnings. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267843 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-28 02:18:48 +00:00
Eric Fiselier
a32eb83b2f Rename function parameters to avoid shadowing. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267838 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-28 02:00:52 +00:00
Eric Fiselier
4596c29195 Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267836 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-28 01:49:03 +00:00
Marshall Clow
d446308c9c Fix = that should have been == in test. Thanks to STL@microsoft for the catch
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267654 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-27 01:46:43 +00:00
Marshall Clow
85d5622129 Apparently XFAIL tests that are supposed to fail to compile can be problematic. They still get compiled, and if the compile succeeds, the buildbots complain. Replace the XFAIL with #error.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267591 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-26 19:29:35 +00:00