Howard Hinnant
|
9d772d17b3
|
Apple LWG 2067: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3318.html#2067 . This is the only actionable change that has been made to the C++ draft since C++11. In general it has not been decided exactly how libc++ will track changes made to C++11. New features and design changes will probably be #ifdef'd, especially if they are not backwards compatible. Defects and 'dumb mistakes' are more likely to just be put in. Decisions on telling one from the other will be made on a case by case basis.
llvm-svn: 160608
|
2012-07-21 19:34:12 +00:00 |
Howard Hinnant
|
a4820bc4d5
|
noexcept applied to <future>.
llvm-svn: 160607
|
2012-07-21 17:46:55 +00:00 |
Howard Hinnant
|
36101a5b0a
|
noexcept applied to <thread>.
llvm-svn: 160606
|
2012-07-21 16:50:47 +00:00 |
Howard Hinnant
|
45c663db4e
|
noexcept applied to <condition_variable>.
llvm-svn: 160605
|
2012-07-21 16:32:53 +00:00 |
Howard Hinnant
|
02e610ef34
|
noexcept and constexpr applied to <mutex>.
llvm-svn: 160604
|
2012-07-21 16:13:09 +00:00 |
Howard Hinnant
|
42be98ab54
|
noexcept and constexpr applied to <regex>.
llvm-svn: 160594
|
2012-07-21 01:31:58 +00:00 |
Howard Hinnant
|
5d926bf1b8
|
noexcept and constexpr applied to <ios>.
llvm-svn: 160593
|
2012-07-21 01:03:40 +00:00 |
Howard Hinnant
|
bf882037be
|
noexcept applied to <valarray>.
llvm-svn: 160592
|
2012-07-21 00:51:28 +00:00 |
Howard Hinnant
|
f4e11de8e8
|
constexpr applied to <complex>.
llvm-svn: 160585
|
2012-07-20 22:18:27 +00:00 |
Howard Hinnant
|
00586de436
|
noexcept applied to <random>.
llvm-svn: 160579
|
2012-07-20 21:44:27 +00:00 |
Howard Hinnant
|
11ac39722c
|
Relax the tolerances on some timing tests.
llvm-svn: 160566
|
2012-07-20 19:48:05 +00:00 |
Howard Hinnant
|
8e882dcb2e
|
noexcept applied to <iterator>.
llvm-svn: 160565
|
2012-07-20 19:36:34 +00:00 |
Howard Hinnant
|
397717b7c8
|
constexpr applied to <array>.
llvm-svn: 160564
|
2012-07-20 19:20:49 +00:00 |
Howard Hinnant
|
931644bfec
|
constexpr applied to <string>.
llvm-svn: 160563
|
2012-07-20 19:09:12 +00:00 |
Howard Hinnant
|
14c56f6c4a
|
Further tweaks on relaxing complete type checking for function.
llvm-svn: 160562
|
2012-07-20 18:56:07 +00:00 |
Howard Hinnant
|
07ce90bb9d
|
Jean-Daniel : clang now supports all required type_traits.
llvm-svn: 160510
|
2012-07-19 15:59:52 +00:00 |
Howard Hinnant
|
51eb2adb2d
|
Jean-Daniel updates the libc++ index page to reflect not so recent changes in C++ standard status.
llvm-svn: 160509
|
2012-07-19 15:57:51 +00:00 |
Howard Hinnant
|
403845ba75
|
Relax the complete-type checks that are happening under __invokable<Fp, Args...> to only check Fp, and not Args... . This should be sufficient to give the desired high quality diagnostics under both bind and function. And this allows a test reported by Rich E on cfe-dev to pass. Tracked by <rdar://problem/11880602>.
llvm-svn: 160285
|
2012-07-16 16:17:34 +00:00 |
Howard Hinnant
|
c033115394
|
Applied constexpr to <chrono>.
llvm-svn: 160184
|
2012-07-13 19:17:27 +00:00 |
Howard Hinnant
|
9146984e73
|
Fixed a bug in wstring_convert concerning zero-length inputs. Thanks to Jonathan Coxhead for reporting this bug.
llvm-svn: 160136
|
2012-07-12 18:07:41 +00:00 |
Richard Smith
|
ceefe51364
|
Teach libc++ to check for libc++abi and use its features if they're available.
llvm-svn: 160038
|
2012-07-11 09:35:47 +00:00 |
Howard Hinnant
|
38b99b025c
|
Add test for self-referencing emplace test.
llvm-svn: 159921
|
2012-07-09 02:47:43 +00:00 |
Howard Hinnant
|
598f702b04
|
Change emplace for vector and deque to create the temporary (when necessary) before any changes to the container are made. Nikolay Ivchenkov deserves the credit for pushing this problem and the solution for it.
llvm-svn: 159918
|
2012-07-08 23:23:04 +00:00 |
Howard Hinnant
|
c0937e8add
|
Appy constexpr to <memory>. Picked up a few missing noexcepts as well.
llvm-svn: 159902
|
2012-07-07 20:56:04 +00:00 |
Howard Hinnant
|
bfa7990b5a
|
Apply constexpr to the mutex constructor. As a conforming extension, apply constexpr to the condition_variable constructor. These are important because it enables the compiler to construct these types at compile time, even though the object will be non-const. Since they are constructed at compile time, there is no chance of a data race before they are constructed.
llvm-svn: 159901
|
2012-07-07 20:01:52 +00:00 |
Howard Hinnant
|
eeac9fcfb7
|
Apply constexpr to <bitset>.
llvm-svn: 159899
|
2012-07-07 17:04:52 +00:00 |
Howard Hinnant
|
8a9ee14803
|
Apply noexcept to tuple.
llvm-svn: 159865
|
2012-07-06 21:53:48 +00:00 |
Howard Hinnant
|
a0f4c45c38
|
As a conforming extension give tuple a noexcept default constructor conditionalized on its held types.
llvm-svn: 159858
|
2012-07-06 20:50:27 +00:00 |
Howard Hinnant
|
a62ebe043e
|
Give tuple a constexpr default constructor.
llvm-svn: 159857
|
2012-07-06 20:39:45 +00:00 |
Howard Hinnant
|
9f06558f86
|
New Windows libc++ test results provided by Ruben Van Boxem.
llvm-svn: 159852
|
2012-07-06 19:35:31 +00:00 |
Howard Hinnant
|
9d6d1c6860
|
Apply noexcept to those functions implemented in <cstdlib> as a conforming extension.
llvm-svn: 159850
|
2012-07-06 19:16:56 +00:00 |
Howard Hinnant
|
9c14b75a37
|
Apply noexcept to those functions implemented in <cmath> as a conforming extension.
llvm-svn: 159849
|
2012-07-06 19:13:50 +00:00 |
Howard Hinnant
|
227001d12e
|
Add noexcept test for offsetof macro per [support.types]/p4.
llvm-svn: 159846
|
2012-07-06 18:39:01 +00:00 |
Howard Hinnant
|
4cb38a82a2
|
This commit establishes a new bucket_count policy in the unordered containers: The policy now allows a power-of-2 number of buckets to be requested (and that request honored) by the client. And if the number of buckets is set to a power of 2, then the constraint of the hash to the number of buckets uses & instead of %. If the client does not specify a number of buckets, then the policy remains unchanged: a prime number of buckets is selected. The growth policy is that the number of buckets is roughly doubled when needed. While growing, either the prime, or the power-of-2 strategy will be preserved. There is a small run time cost for putting in this switch. For very cheap hash functions, e.g. identity for int, the cost can be as high as 18%. However with more typical use cases, e.g. strings, the cost is in the noise level. I've measured cases with very cheap hash functions (int) that using a power-of-2 number of buckets can make look up about twice as fast. However I've also noted that a power-of-2 number of buckets is more susceptible to accidental catastrophic collisions. Though I've also noted that accidental catastrophic collisions are also possible when using a prime number of buckets (but seems far less likely). In short, this patch adds an extra tuning knob for those clients trying to get the last bit of performance squeezed out of their hash containers. Casual users of the hash containers will not notice the introduction of this tuning knob. Those clients who swear by power-of-2 hash containers can now opt-in to that strategy. Clients who prefer a prime number of buckets can continue as they have.
llvm-svn: 159836
|
2012-07-06 17:31:14 +00:00 |
Howard Hinnant
|
6b45660f14
|
link to Marshall's notes.
llvm-svn: 159791
|
2012-07-06 00:39:38 +00:00 |
Nuno Lopes
|
6317bfb26a
|
mark operator new(std::nothrow) as noalias (aka __attribute__((malloc))
llvm-svn: 159359
|
2012-06-28 16:47:34 +00:00 |
Howard Hinnant
|
f08ebab2ea
|
Fixed a bug regarding result_of reported by Sven Behne. The fix is C++11 only mainly because result_of is a variadic beast and working with variadics is just such a problem in C++03 mode. This should bring result_of up to full conformance with the C++11 spec.
llvm-svn: 159211
|
2012-06-26 17:37:15 +00:00 |
Nuno Lopes
|
d8ed7e5b03
|
fix help with bash
llvm-svn: 159177
|
2012-06-25 23:51:05 +00:00 |
Howard Hinnant
|
c418654096
|
Revert pair constructors back to using is_convertible instead of is_constructible. This should pull things into alignment with the final draft. Fixes http://llvm.org/bugs/show_bug.cgi?id=13063#add_comment.
llvm-svn: 158280
|
2012-06-09 20:01:23 +00:00 |
Douglas Gregor
|
07db340438
|
Fix warning flags for CMake builds, from Andrew C. Morrow!
llvm-svn: 158172
|
2012-06-07 22:26:00 +00:00 |
Howard Hinnant
|
0bc272cf9a
|
Fix a few testsuite bugs involving trailing null (or lack thereof) in strstream.
llvm-svn: 157832
|
2012-06-01 20:02:59 +00:00 |
Howard Hinnant
|
4c0de496a0
|
Fix dangling else clause. Bug found and fixed by Dimitry Andric.
llvm-svn: 157779
|
2012-05-31 23:12:03 +00:00 |
Howard Hinnant
|
78b4015c1c
|
Fix the new _ALIGNAS_TYPE per instructions supplied by Eli Friedman.
llvm-svn: 157765
|
2012-05-31 20:14:00 +00:00 |
Howard Hinnant
|
bf33f5b292
|
Protect use of alignas against older versions of clang
llvm-svn: 157764
|
2012-05-31 19:31:14 +00:00 |
Howard Hinnant
|
8b805c915a
|
The rules for emplace in map, multimap, unordered_map and unordered_multimap changed a while back and I'm just now updating to these new rules. In a nutshell, you've got to know you're emplacing to a pair and use one of pair's constructors. I made one extension: If you want to emplace the key and default construct the mapped_type, you can just emplace(key), as opposed to emplace(piecewise_construct, forward_as_tuple(key), forward_as_tuple()).
llvm-svn: 157503
|
2012-05-25 22:04:21 +00:00 |
Howard Hinnant
|
a960edd203
|
Fix memory corruption bug found and fixed by Andrew C. Morrow.
llvm-svn: 157476
|
2012-05-25 15:55:46 +00:00 |
Howard Hinnant
|
49c3b20737
|
Add documentation regarding -fno-rtti.
llvm-svn: 157157
|
2012-05-20 13:03:53 +00:00 |
Howard Hinnant
|
ed81e910bd
|
Revert fix to http://llvm.org/bugs/show_bug.cgi?id=12867 for the reason now included in the code comment.
llvm-svn: 157128
|
2012-05-19 20:20:49 +00:00 |
Douglas Gregor
|
a336f5e645
|
Revert my _LIBCPP_INLINE_VISIBILITY changes, r157097 and r157107
llvm-svn: 157108
|
2012-05-19 07:14:17 +00:00 |
Douglas Gregor
|
a1b6937dba
|
valarray resize should not be _LIBCPP_INLINE_VISIBILITY
llvm-svn: 157107
|
2012-05-19 07:01:14 +00:00 |