Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/format: Merge VS 2019 16.8 Preview 1 toolset update #1177

Merged
merged 50 commits into from
Aug 10, 2020

Commits on Jul 17, 2020

  1. Implement ranges::transform (#941)

    Co-authored-by: Stephan T. Lavavej <[email protected]>
    miscco and StephanTLavavej authored Jul 17, 2020
    Configuration menu
    Copy the full SHA
    002cdc6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    16db993 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0965ada View commit details
    Browse the repository at this point in the history
  4. Implement ranges::copy_backward (#1026)

    * Implement ranges::copy_backward
    
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    CaseyCarter and StephanTLavavej authored Jul 17, 2020
    Configuration menu
    Copy the full SHA
    21acd23 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2020

  1. Implement ranges::reverse (#1028)

    Co-authored-by: Ahana Mukhopadhyay <[email protected]>
    CaseyCarter and ahanamuk authored Jul 20, 2020
    Configuration menu
    Copy the full SHA
    4f949af View commit details
    Browse the repository at this point in the history
  2. <compare>: Fix 0 <=> partial_ordering::unordered (#1049)

    * Break <compare> ABI again, and fix #1050.
    
    * Remove obsolete conditional compilation from <compare>.
    
    Co-authored-by: statementreply <[email protected]>
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    3 people authored Jul 20, 2020
    Configuration menu
    Copy the full SHA
    7930d35 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2020

  1. <system_error> Enable [[msvc::noop_dtor]] from Visual Studio 2019 ver…

    …sion 16.8. (#1016)
    
    Co-authored-by: Casey Carter <[email protected]>
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    3 people authored Jul 21, 2020
    Configuration menu
    Copy the full SHA
    6c04496 View commit details
    Browse the repository at this point in the history
  2. Atomic CAS with pad (#23, P0528R3) (#1029)

    Co-authored-by: Stephan T. Lavavej <[email protected]>
    Co-authored-by: Billy Robert O'Neal III <[email protected]>
    Co-authored-by: Casey Carter <[email protected]>
    4 people authored Jul 21, 2020
    Configuration menu
    Copy the full SHA
    c10ae01 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2020

  1. Vectorize reverse_copy() (#804)

    Co-authored-by: Billy Robert O'Neal III <[email protected]>
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    3 people authored Jul 27, 2020
    Configuration menu
    Copy the full SHA
    1555e0b View commit details
    Browse the repository at this point in the history
  2. <random>: Fix discrete_distribution result out of range (#1025)

    Mathematically, `_Par0._Pcdf.back()` should be one. However, when it is
    actually slightly smaller than one due to rounding error, there is a
    small probability that `_Px > _Par0._Pcdf.back()` and the original code
    returns the invalid value of `_Par0._Pcdf.size()`.
    statementreply authored Jul 27, 2020
    Configuration menu
    Copy the full SHA
    8e8770c View commit details
    Browse the repository at this point in the history
  3. Implement ranges::unique family (#1039)

    Co-authored-by: Stephan T. Lavavej <[email protected]>
    Co-authored-by: Casey Carter <[email protected]>
    3 people authored Jul 27, 2020
    Configuration menu
    Copy the full SHA
    28efc70 View commit details
    Browse the repository at this point in the history
  4. Implement ranges::sample and ranges::shuffle (#1052)

    Co-authored-by: statementreply <[email protected]>
    miscco and statementreply authored Jul 27, 2020
    Configuration menu
    Copy the full SHA
    99241dc View commit details
    Browse the repository at this point in the history
  5. Modernize the ranges::find family (#1058)

    Co-authored-by: Casey Carter <[email protected]>
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    3 people authored Jul 27, 2020
    Configuration menu
    Copy the full SHA
    98f37c3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5ada43e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fc3df2f View commit details
    Browse the repository at this point in the history
  8. Update .clang-format for Clang 10 (#1075)

    * Remove unnecessary comments in ranges tests.
    
    We taught clang-format how to sort like this automatically.
    
    * Fix x86 compiler error in stljobs.h.
    
    This never compiled for x86 where size_t and SIZE_T are different types.
    
    * Update .clang-format for Clang 10.
    
    AllowShortBlocksOnASingleLine changed from false/true to
    Never/Empty/Always. We still want the default of Never, as Empty
    appears to misbehave.
    
    DeriveLineEnding was added, defaulting to true. We want to disable line
    ending auto-detection.
    
    SortPriority was added. Its documentation is difficult to understand,
    but it can be used to group includes together while modifying their
    otherwise-lexicographic ordering. Here, I'm using it to group WinSDK
    includes together, while still sorting WinIoCtl.h last.
    
    IncludeIsMainSourceRegex was added. This doesn't appear to be relevant
    to us.
    
    IndentGotoLabels was added. We've avoided goto.
    
    SpaceInEmptyBlock was added. We prefer the default of no space.
    
    SpacesInConditionalStatement was added. We definitely prefer the
    default of no space.
    
    SpaceBeforeSquareBrackets was added. Again, we definitely prefer the
    default of no space.
    
    The Standard option was overhauled. Previously, Cpp11 meant "use the
    latest supported standard". That was confusing, so it has been
    deprecated in favor of Latest.
    
    UseCRLF was added. We currently use CRLF for all files. (Previously,
    validate.cpp would detect LF files, but clang-format wouldn't fix
    them.)
    
    * In .clang-format, delete empty lines and move comment.
    
    The empty lines were intended to make it easier to see customized
    options, but they were actually making it harder to diff the default
    config against our config.
    
    Move the StatementMacros comment next to our customized settings,
    and rewrap it.
    
    * Reformat filesystem.cpp.
    StephanTLavavej authored Jul 27, 2020
    Configuration menu
    Copy the full SHA
    b2f1556 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f49ffaf View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2020

  1. Implement Ranges Set Operations (#1044)

    Includes the `mergeable` concept and algorithms `ranges::includes`, `ranges::set_union`, `ranges::set_intersection`, `ranges::set_difference`, and `ranges::set_symmetric_difference`.
    CaseyCarter authored Jul 28, 2020
    Configuration menu
    Copy the full SHA
    3659f3d View commit details
    Browse the repository at this point in the history
  2. Implement ranges::move_backward (#1053)

    * Implement ranges::move_backward
    
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    Co-authored-by: mnatsuhara <[email protected]>
    3 people authored Jul 28, 2020
    Configuration menu
    Copy the full SHA
    868cf26 View commit details
    Browse the repository at this point in the history
  3. Fix the interaction between _Pass_fn and invoke (#1091)

    `_Pass_fn` returns a copy of arguments no larger than `void*`, and a call-forwarding reference-wrapper-alike `_Ref_fn` for larger function objects. This became a problem when Ranges started throwing pointers-to-member at `_Pass_fn` with the expectation that they would eventually be `invoke`d: pointers-to-member can be larger than `void*`, but `_Ref_fn` doesn't speak the `invoke` protocol.
    
    There are two relatively obvious possible fixes:
    1. Teach `_Pass_fn` to always return copies of pointers-to-member regardless of size
    2. Teach `_Ref_fn` to obey the `invoke` protocol
    
    (1) results in "large" pointers-to-member that can't be enregistered being copied and passed by hidden reference resulting in larger codesize than (2), but with no corresponding performance benefits. We therefore implement (2) by teaching `_Ref_fn` to call-forward through `invoke` when it wraps a pointer-to-member.
    
    Fixes GH-1089.
    CaseyCarter authored Jul 28, 2020
    Configuration menu
    Copy the full SHA
    35ce1cf View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2020

  1. <valarray>: Implement copies for slice_array, gslice_array, mask_arra…

    …y, and indirect_array (#988)
    
    Co-authored-by: S. B. Tam <[email protected]>
    Co-authored-by: Casey Carter <[email protected]>
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    4 people authored Jul 30, 2020
    Configuration menu
    Copy the full SHA
    0e7b5d2 View commit details
    Browse the repository at this point in the history
  2. Finish P0811R3 midpoint and lerp (#1048)

    * Removes workaround for missing `bit_cast` and mark `lerp` constexpr.
    
    * Changes how `lerp` handles infinite inputs according to
      #65 (comment) and
      #65 (comment).
    
    * Adds constexpr tests.
    
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    statementreply and StephanTLavavej authored Jul 30, 2020
    Configuration menu
    Copy the full SHA
    e9f56a6 View commit details
    Browse the repository at this point in the history
  3. Fix thinko in ranges::iter_swap (#1072)

    ...by transposing arguments to `_Iter_exchange_move`.
    
    Fixes #1067
    CaseyCarter authored Jul 30, 2020
    Configuration menu
    Copy the full SHA
    30777d5 View commit details
    Browse the repository at this point in the history
  4. Implement ranges::rotate and ranges::rotate_copy (#1073)

    Co-authored-by: Casey Carter <[email protected]>
    miscco and CaseyCarter authored Jul 30, 2020
    Configuration menu
    Copy the full SHA
    58a8a39 View commit details
    Browse the repository at this point in the history
  5. Comparison category types become aggregates (#1065)

    ... for enregistration, to improve performance. Per a suggestion from Statementreply in the discussion at #1049 (comment).
    CaseyCarter authored Jul 30, 2020
    Configuration menu
    Copy the full SHA
    4e97255 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2020

  1. <type_traits>: is_function simplification (#460)

    Fixes #198.
    
    Co-authored-by: Casey Carter <[email protected]>
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    3 people authored Aug 1, 2020
    Configuration menu
    Copy the full SHA
    0381c25 View commit details
    Browse the repository at this point in the history
  2. Optimize fill and fill_n for vector<bool> (#879)

    Co-authored-by: Billy Robert O'Neal III <[email protected]>
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    3 people authored Aug 1, 2020
    Configuration menu
    Copy the full SHA
    1ff3d1e View commit details
    Browse the repository at this point in the history
  3. Modernize ranges::swap_ranges and ranges::distance (#1062)

    Co-authored-by: Casey Carter <[email protected]>
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    3 people authored Aug 1, 2020
    Configuration menu
    Copy the full SHA
    accaf18 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e58a945 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e2912b6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    57db210 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    782cd65 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a712fe5 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2020

  1. P1001R2 execution::unseq (#1111)

    Resolves #44.
    BillyONeal authored Aug 2, 2020
    Configuration menu
    Copy the full SHA
    8ec6b33 View commit details
    Browse the repository at this point in the history
  2. Implement std::atomic::wait (#593)

    Co-authored-by: Curtis J Bezault <[email protected]>
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    Co-authored-by: Billy Robert O'Neal III <[email protected]>
    Co-authored-by: Casey Carter <[email protected]>
    5 people authored Aug 2, 2020
    Configuration menu
    Copy the full SHA
    e4b75dc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    12c684b View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2020

  1. Configuration menu
    Copy the full SHA
    b57b768 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b74b618 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2020

  1. Implement ranges::reverse_copy (#1095)

    Co-authored-by: Stephan T. Lavavej <[email protected]>
    CaseyCarter and StephanTLavavej authored Aug 5, 2020
    Configuration menu
    Copy the full SHA
    622b62a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0eb754d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5d00b60 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    06c2c54 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cbfc527 View commit details
    Browse the repository at this point in the history
  6. Disable a libcxx test due to the impact of P0960R3 (#1138)

    Disable some tests due to impact of P0960R3: allow initializing aggregates from a parenthesized list of values
    Co-authored-by: Stephan T. Lavavej <[email protected]>
    Co-authored-by: Casey Carter <[email protected]>
    JonCavesMSFT authored Aug 5, 2020
    Configuration menu
    Copy the full SHA
    e000d3f View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2020

  1. Configuration menu
    Copy the full SHA
    d83bc99 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eb33f1a View commit details
    Browse the repository at this point in the history
  3. partial_sort_copy bugfix (#1088)

    Fixes #1086.
    CaseyCarter authored Aug 9, 2020
    Configuration menu
    Copy the full SHA
    af3db68 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bdf7710 View commit details
    Browse the repository at this point in the history
  5. Cache hardware thread count for <execution> (#1143)

    Fixes #1134.
    
    Co-authored-by: Casey Carter <[email protected]>
    Co-authored-by: Billy O'Neal <[email protected]>
    3 people authored Aug 9, 2020
    Configuration menu
    Copy the full SHA
    392fb6d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1913566 View commit details
    Browse the repository at this point in the history