Eric Fiselier
8673c52ffe
Get ctype_byname tests passing on Linux.
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290746 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-30 09:28:58 +00:00
Eric Fiselier
9f988e6e4e
Update "Making Optional Greater Equal Again" paper status
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290742 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-30 04:16:30 +00:00
Eric Fiselier
ae3128f268
Fix build using the buildit script
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290727 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-29 22:42:45 +00:00
Eric Fiselier
152e5e61a1
Fix PR31489 - std::function self-swap segfaults
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290721 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-29 20:03:55 +00:00
Eric Fiselier
7d0000f737
Fix typo in comment
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290666 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-28 11:09:18 +00:00
Eric Fiselier
8a549abae1
Fix ABI incompatible C++03 nullptr_t
...
In C++03 libc++ emulates nullptr_t using a class, and #define's nullptr.
However this makes nullptr_t mangle differently between C++03 and C++11.
This breaks any function ABI which takes nullptr_t.
Thanfully Clang provides __nullptr in all dialects. This patch adds
an ABI option to switch to using __nullptr in C++03. In a perfect world
I would like to turn this on by default, since it's just ABI breaking fix
to an ABI breaking bug.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290662 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-28 09:50:23 +00:00
Eric Fiselier
ce34512d2f
Remove dead debug_mode doc link
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290659 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-28 06:21:09 +00:00
Eric Fiselier
32eebb71f7
Ensure <__debug> gets the nullptr definition in C++03
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290658 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-28 06:15:01 +00:00
Eric Fiselier
fb342388df
Fix debug mode for vector/list and cleanup tests
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290657 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-28 06:06:09 +00:00
Eric Fiselier
72a67ff116
Fix stupid build error caused by a stupid person
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290656 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-28 05:56:16 +00:00
Eric Fiselier
47257c4a7d
Add tests for unordered container tests and std::string
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290655 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-28 05:53:01 +00:00
Eric Fiselier
2c8aa056f4
Fix __wrap_iter in debug mode and apply _NOEXCEPT_DEBUG to it
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290654 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-28 05:35:32 +00:00
Eric Fiselier
fa31c108f0
Fix build errors in C++03 caused by recent debug changes
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290653 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-28 05:26:56 +00:00
Eric Fiselier
51d64bbc8c
Fix debug mode build w/o exceptions
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290652 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-28 05:20:27 +00:00
Eric Fiselier
01eb99ac7b
Implement a throwing version of _LIBCPP_ASSERT.
...
This patch implements changes to allow _LIBCPP_ASSERT to throw on failure
instead of aborting. The main changes needed to do this are:
1. Change _LIBCPP_ASSERT to call a handler via a replacable function pointer
instead of calling abort directly. Additionally this patch implements two
handler functions, one which aborts and another that throws an exception.
2. Add _NOEXCEPT_DEBUG macro for disabling noexcept spec on function which
contain _LIBCPP_ASSERT. This is required in order to prevent assertion
failures throwing through a noexcept function. This macro has no effect
unless _LIBCPP_DEBUG_USE_EXCEPTIONS is defined.
Having a non-aborting _LIBCPP_ASSERT is very important to allow sane testing of
debug mode. Currently we can only have one test case per file, since the test
case will cause the program to abort. Testing debug mode this way would require
thousands of test files, most of which would be 95% boiler plate. I don't think
this is a feasible strategy. Fortunately using a throwing debug handler solves
these issues.
Additionally this patch rewrites the documentation for debug mode.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290651 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-28 04:58:52 +00:00
Eric Fiselier
046a71be67
Implement P0435R1 - Resolving LWG issues for common_type
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290627 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-27 21:16:48 +00:00
Eric Fiselier
3010df98f9
Fix PR31481 - 3+ parameter common_type isn't SFINAE friendly
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290624 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-27 19:59:50 +00:00
Shoaib Meenai
833ad542b5
[libc++] Make __num_get_float hidden
...
It's an internal function and shouldn't be exported. It's also a source
of discrepancy in the published ABI list; these symbols aren't exported
for me on CentOS 7 or Ubuntu 16.04, leading to spurious check-cxx-abilist
failures.
Differential Revision: https://reviews.llvm.org/D27153
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290503 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 18:05:32 +00:00
Marshall Clow
99447c8e03
Fix bug #31387 - not checking end iterator when parsing decimal escape. Thanks to Karen for the report.
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290500 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 17:21:03 +00:00
Eric Fiselier
ab9ab94102
Enable -Wunreachable-code and fix duplicate warning flags
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290486 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 04:34:33 +00:00
Eric Fiselier
e32aed8014
Fix ASAN test failure
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290482 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 03:27:52 +00:00
Eric Fiselier
3414afa415
Fix -Wsign-compare warnings in re tests that only run on OS X
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290481 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 03:20:53 +00:00
Eric Fiselier
68e3ccbecd
Fix sign-compare warnings on ARM platforms caused by wchar_t being unsigned
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290480 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 03:09:00 +00:00
Eric Fiselier
2ab8f62c6f
Avoid unused warning in __throw_future_error w/o exceptions enabled
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290479 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 01:56:25 +00:00
Eric Fiselier
f62eee4fe7
Fix warning caused by platforms providing a signed wint_t
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290477 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 01:43:54 +00:00
Eric Fiselier
f47536798d
Fix yet another missed -Wunused warning. Hopefully this is the last one
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290476 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 01:29:27 +00:00
Eric Fiselier
10dd69eaf1
Fix unused warning which only triggers in C++11
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290475 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 01:12:28 +00:00
Eric Fiselier
e9784032ce
fix warnings only produced by apple-clang
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290474 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 01:07:54 +00:00
Eric Fiselier
9d2fd1f556
Fix missed sign-compare warning
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290473 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 00:44:20 +00:00
Eric Fiselier
0a1cbcf2b7
fix newly failing c++03 tests
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290472 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 00:40:45 +00:00
Eric Fiselier
3678f7d6ee
Fix another unused warning
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290470 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 00:28:19 +00:00
Eric Fiselier
50f6579e74
fix sign comparison warnings
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290469 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-24 00:24:44 +00:00
Eric Fiselier
0e5ebbc77c
Fix unused parameters and variables
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290459 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-23 23:37:52 +00:00
Eric Fiselier
17a98d8a92
Don't use posix_memalign on Windows platforms
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290448 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-23 20:17:23 +00:00
Eric Fiselier
5ac2f14809
Fix PR31440: Make __sanitizer_annotate_contigious_container always visible. Fix from Jan Beich
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290447 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-23 20:03:52 +00:00
Eric Fiselier
0de917eac4
Update doc and various cleanup
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290446 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-23 20:00:13 +00:00
Eric Fiselier
59c5cb0116
Add test that _LIBCPP_VERSION matches __libcpp_version
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290445 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-23 19:38:43 +00:00
Eric Fiselier
8f7a9c085a
Add release update instructions for libc++
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290444 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-23 19:30:24 +00:00
Eric Fiselier
904a9cb99d
Update TestingLibcxx doc to reflect the use_system_cxx_lib flag. Patch from Michael Park
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290441 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-23 19:09:14 +00:00
Eric Fiselier
20ace04348
Add apple-clang-8 to list of XFAILS for some variant tests. Patch from Michael Park
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290440 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-23 19:07:54 +00:00
Chris Bieneman
a4b3552a4d
[CMake] Fix issue reported on sanitizer bots
...
This should resolve an issue reported on the commit thread that impacted sanitizer bots.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290052 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-17 21:28:24 +00:00
Chris Bieneman
801aa91790
[CMake] Put headers relative to clang
...
When libcxx isn't building with an installed LLVM we copy the libcxx headers into the LLVM build directory so that a clang in that build tree can find the headers relative to itself.
This is only important in situations where you don't have headers installed under /, which is common these days on Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289963 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-16 17:30:51 +00:00
Eric Fiselier
1d0d379c40
Fix XFAILS for is_trivially_destructible trait
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289802 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-15 11:00:07 +00:00
Eric Fiselier
b7fe139a72
Fix typo
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289781 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-15 07:23:44 +00:00
Eric Fiselier
cdc59e576e
Add tests for LWG 2796
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289780 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-15 07:15:39 +00:00
Eric Fiselier
90314c55d1
Add more test cases for PR31384
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289778 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-15 07:05:19 +00:00
Eric Fiselier
1739d3ef0a
Add test case for PR31384
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289774 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-15 06:38:07 +00:00
Eric Fiselier
9663ee4d4f
Revert r289727 due to PR31384
...
This patch reverts the changes to tuple which fixed construction from
types derived from tuple. It breaks the code mentioned in llvm.org/PR31384.
I'll follow this commit up with a test case.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289773 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-15 06:34:54 +00:00
Eric Fiselier
4a435415ad
XFAIL test for more apple-clang versions
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289767 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-15 05:41:07 +00:00
Eric Fiselier
c480bc55cd
Work around bug in initialization of std::array base class with older clangs
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289741 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-14 23:24:12 +00:00