llvm-project/libcxx
Marek Kurdej 0c148430cf Reland [libc++] [LWG3321] Mark "year_month_day_last::day() specification does not cover !ok() values" issue as "Nothing to do", but add assertion.
Summary:
This LWG issue states that the result of `year_month_day_last::day()` is implementation defined if `ok()` is `false`.
However, from user perspective, calling `day()` in this situation will lead to a (possibly difficult to find) crash.
Hence, I have added an assertion to warn user at least when assertions are enabled.

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D70346
2020-05-21 21:55:38 +02:00
..
benchmarks
cmake [libc++] NFC: fix typos 2020-05-01 13:10:30 -04:00
docs [libc++] Do not rely on use_system_cxx_lib to specify the path of the library to run against 2020-05-15 13:01:37 -04:00
fuzzing
include Reland [libc++] [LWG3321] Mark "year_month_day_last::day() specification does not cover !ok() values" issue as "Nothing to do", but add assertion. 2020-05-21 21:55:38 +02:00
lib [libc++] Fix the no-exceptions build of libc++ on Apple 2020-04-20 10:45:14 -04:00
src [libc++] Adjust how we guard the inclusion of unistd.h 2020-05-14 11:53:12 +01:00
test Reland [libc++] [LWG3321] Mark "year_month_day_last::day() specification does not cover !ok() values" issue as "Nothing to do", but add assertion. 2020-05-21 21:55:38 +02:00
utils [libc++] Link back-deployment tests against the latest libc++ and libc++abi 2020-05-21 14:47:04 -04:00
www Reland [libc++] [LWG3321] Mark "year_month_day_last::day() specification does not cover !ok() values" issue as "Nothing to do", but add assertion. 2020-05-21 21:55:38 +02:00
.clang-format
.gitignore [libcxx] Fix .gitignore to not exclude test directories 2020-03-25 17:52:23 -07:00
CMakeLists.txt [libcxx][libcxxabi][libunwind] Use libgcc on Android 2020-04-30 15:42:32 -07:00
CREDITS.TXT [libcxx] Adds [concept.same] 2020-04-08 18:00:13 -04:00
LICENSE.TXT
NOTES.TXT
TODO.TXT
appveyor-reqs-install.cmd
appveyor.yml