Граф коммитов

901 Коммитов

Автор SHA1 Сообщение Дата
Stephan T. Lavavej 04369fcf3b
Build header units in parallel (#1529) 2020-12-16 17:12:42 -08:00
Curtis J Bezault 839c21c4f3
Add an nvcc test which compiles all the headers at once (#1519)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-16 17:04:13 -08:00
Hamid Reza Arzaghi 628544cf61
<regex>: Fixes regex character class case insensitive search problem (#1503)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-16 16:27:14 -08:00
Michael Schellenberger Costa d01fd4b73b
Implement resolution of LWG-3449 for take_view (#1457)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-16 16:19:18 -08:00
Curtis J Bezault 4bee6b7b75
Minimize the size of clones in the CI (#1513) 2020-12-16 16:08:04 -08:00
Casey Carter 335449fc88
Silence future "unused capture" warning (#1522) 2020-12-14 21:26:34 -08:00
Stephan T. Lavavej 68b344c9dc Run clang-format 11; no manual changes. 2020-12-10 09:27:45 -08:00
Stephan T. Lavavej 58160d548f Toolset update: VS 2019 16.9 Preview 2 with Clang 11
* Fix #1471 by properly waiting for the Windows Driver Kit installation to finish.
* Update `azure-pipelines.yml` to use the new pool `StlBuild-2020-12-08`.
* Update `README.md` to mention Preview 2. (Its CMake and Ninja versions haven't changed,
  and we don't directly mention the Clang version.)
* Update `yvals_core.h` to require Clang 11. (Note that MSVC's `_MSC_VER` is remaining `1928` for the 16.9 release.)
* Remove the workaround for LLVM-37556. (We were treating it as an uncommented perma-workaround, but I remembered.)
* Remove many workarounds in `P1502R1_standard_library_header_units`.
* Remove the VSO-1225825 workaround in `<iterator>` and `<ranges>`.
* Unrelated cleanup in `<valarray>`: `__cpp_aligned_new` implies `if constexpr`.
* Update the vcpkg submodule for Boost 1.74.0. This is just their latest commit.
* In `CMakeLists.txt`, require Boost 1.74.0. (This, combined with the toolset update,
  implies that contributors will need to `git submodule update`, clean out the `vcpkg`
  submodule with `git clean -x -d -f`, and then bootstrap vcpkg and build boost-math.)
* Simplify conditional operators in `seed_seq::generate`.
  + Thanks to @AlexGuteniev for suggesting extracting `_Off` and noticing
    that `_Myvec[(_Kx - 1) % _Sx]` was unnecessarily complicated. Given `_Kx` in `[1, _Sx]`,
    then `_Kx - 1` is in `[0, _Sx - 1]`, so `% _Sx` does nothing.
* Take advantage of clang-format 11. This sets `AlignOperands: AlignAfterOperator` and `IndentCaseBlocks: true`.
2020-12-10 09:27:45 -08:00
Stephan T. Lavavej e604b6c2ff
Port internal stl/msbuild changes (#1515) 2020-12-03 19:19:07 -08:00
Casey Carter 60d9ed7ef4
Allow discarding unique_lock and shared_lock (#1514)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-03 15:59:35 -08:00
Curtis J Bezault 076863c884
Rewrite InterlockedExchange128_nf with intrinsics on clang (#1509)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
2020-12-03 15:59:13 -08:00
Stephan T. Lavavej 2dbcfa5799
Allow atomic_ref<const T> (#1500) 2020-12-03 15:47:52 -08:00
Hamid Reza Arzaghi 41330915ac
<regex>: Follow the Standard in regex_traits::transform() (#1494)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
Co-authored-by: Casey Carter <cartec69@gmail.com>
2020-12-03 15:37:34 -08:00
futuarmo 82bb1bf20d
LWG-3117 Missing packaged_task deduction guides (#1493)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-03 15:34:01 -08:00
Stephan T. Lavavej debeb6f304
Add _STD to improve tuple throughput (#1490)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
2020-12-03 15:24:31 -08:00
futuarmo 370328169a
LWG-3464 istream::gcount() can overflow (#1483) 2020-12-03 15:19:46 -08:00
Michael Schellenberger Costa 8516f91a7a
LWG-3448 transform_view's sentinel<false> not comparable with iterator<true> (#1458)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
Co-authored-by: Casey Carter <cartec69@gmail.com>
2020-12-03 15:14:00 -08:00
Casey Carter 2aa944beba
LWG-3036 polymorphic_allocator::destroy is extraneous (#1455)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-03 15:03:07 -08:00
Casey Carter c2ab52288e
Correct overly-strengthened noexcept-specifier for basic_string_view constructor (#1510) 2020-12-02 15:41:39 -08:00
Curtis J Bezault f47e123215
Add a pragma comment to pull in the synchronization lib (#1507) 2020-12-02 15:35:55 -08:00
fsub 89c9592d1e
valarray: Fix delete in order to satisfy ASan (#1496)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Curtis Jacques Bezault <curtbezault@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-02 15:29:21 -08:00
Adam Bucior 9bb2a983df
P1771R1 [[nodiscard]] For Constructors (#1495)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-02 15:10:23 -08:00
Casey Carter 39ee107c95
LWG-3460 Unimplementable noop_coroutine_handle guarantees (#1452)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-02 15:06:02 -08:00
futuarmo 6fe20e62a2
LWG-3170 deprecated std::allocator<T>::is_always_equal (#1501)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-01 15:39:26 -08:00
Billy O'Neal 691346f20c
Correct comment for _List_val::_Sort. (#1476) 2020-12-01 15:33:34 -08:00
statementreply cbd2b1c9b8
<compare>: Improve floating-point spaceship CPO codegen (#1475)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2020-12-01 15:26:22 -08:00
Sam Huang b4af6e98f8
_NODISCARD for function objects (#1474) 2020-12-01 15:13:35 -08:00
futuarmo a92064eeca
LWG-3211 std::tuple<> should be trivially constructible (#1460)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2020-12-01 15:00:49 -08:00
Stephan T. Lavavej d06561f891
Code cleanups: Unify _Float_traits and _Floating_type_traits (#1442) 2020-12-01 14:51:25 -08:00
Stephan T. Lavavej 19c683d706
Skip the flaky parts of VSO_0226079_mutex. (#1473) 2020-11-13 18:16:31 -08:00
Michael Schellenberger Costa 560bcea81b
Remove comments for resolved LWG issues (#1456)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-11-13 18:11:08 -08:00
Stephan T. Lavavej ff4c45b028
README.md: Add llvm-project and --progress to the initial submodule sync. (#1441) 2020-11-13 18:06:31 -08:00
Avinal Kumar 8b6e9600ca
Updated _MSVC_STL_UPDATE to November 2020 (#1439) 2020-11-13 18:03:25 -08:00
Hamid Reza Arzaghi 9145bf4542
Tests using /analyze:only should also use /analyze:autolog- (#1434) 2020-11-13 17:55:05 -08:00
Stephan T. Lavavej ea156e730c
VS 2019 16.9 Preview 1 toolset update (#1451) 2020-11-13 13:29:26 -08:00
statementreply 9959929c77
<complex>: Improve numerical accuracy of sqrt and log (#935)
* Fix undue overflow and underflow in complex sqrt

Modifies the scale factors in `_Fabs` (used by `sqrt`) such that:

- `_Fabs` doesn't underflow when the input is tiny.

- `sqrt` doesn't overflow when the input is huge.

* Improve accuracy of `log` when |z| is close to 1

When |z| is close to 1, compute log(|z|) as log1p(norm_minus_1(z)) / 2,
where norm_minus_1(z) = real(z) ^ 2 + imag(z) ^ 2 - 1 computed with
double width arithmetic to avoid catastrophic cancellation.

* Fix log(complex{1, tiny}) incorrectly returning -0 under FE_DOWNWARD

Co-authored-by: Curtis J Bezault <curtbezault@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-11-09 15:24:43 -08:00
Stephan T. Lavavej 51ccd93319
Port MSVC-internal changes, again (#1431) 2020-11-06 21:20:10 -08:00
Stephan T. Lavavej f873f515af
README.md: Update DevCom and Pipelines links (#1427) 2020-11-06 17:02:24 -08:00
futuarmo 10d8e33a67
Extracted _Choice<T>._Strategy to variable (#1426)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-11-06 16:58:33 -08:00
Casey Carter 04eca1ccce
hash<coroutine_handle<>>::operator() should be const (#1423)
Fixes #1422.
2020-11-06 16:53:02 -08:00
Casey Carter 12a0e83ded
Rename _Iterator_base to _Category_base in <ranges> (#1420)
Fixes #1418.
2020-11-06 16:47:37 -08:00
Stephan T. Lavavej 0249612c21
Fix noexcept(noexcept(is_nothrow_v)) (#1417) 2020-11-06 16:42:32 -08:00
Casey Carter 231df15261
Always remove_cvref_t the argument to enable_borrowed_range (#1415)
... especially in these view tests.
2020-11-06 16:37:12 -08:00
Stephan T. Lavavej 7e07ed8188
Improve type traits usage (#1413) 2020-11-06 16:31:40 -08:00
Casey Carter 537863aefa
Move from rvalue range adaptor closures (#1410) 2020-11-06 16:20:20 -08:00
Michael Schellenberger Costa 7fd6501ece
Implement ranges::elements_view (#1406)
Co-authored-by: S. B. Tam <cpplearner@outlook.com>
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-11-06 16:08:41 -08:00
Stephan T. Lavavej a6f285db8a
Include <cmeow> instead of <meow.h> (#1405) 2020-11-06 15:34:14 -08:00
Michael Schellenberger Costa 4c3942703e
Implement ranges::take_while_view (#1372)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
2020-11-06 15:29:14 -08:00
Michael Schellenberger Costa 1093aa6982
Implement ranges::drop_while_view (#1366)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2020-11-06 15:23:39 -08:00
Hamid Reza Arzaghi 0650fa4a8d
Prevent crash when custom streambuf implementation throws (#1358)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-11-06 15:16:10 -08:00