AAaron BallmanRewording "static_assert" diagnostics
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[NFC][libc++][test] Move time tests. In the C++20 Standard time is no longer section under utilities, but became its own chapter. This moves the time tests accordingly so their location matches the current Standard. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D122745 | 4 年前 | |
Conversion from '__int64' to 'long', possible loss of data llvm-project\libcxx\test\std\time\time.hms\time.hms.members\seconds.pass.cpp(38): note: see reference to function template instantiation 'long check_seconds<std::chrono::seconds>(Duration)' being compiled with [ Duration=std::chrono::seconds ] llvm-project\libcxx\test\std\time\time.hms\time.hms.members\seconds.pass.cpp(31): warning C4244: 'return': conversion from '_Rep' to 'long', possible loss of data with [ _Rep=__int64 ] Reviewed By: #libc, Mordante Differential Revision: https://reviews.llvm.org/D129928 | 3 年前 | |
[NFC][libc++][test] Move time tests. In the C++20 Standard time is no longer section under utilities, but became its own chapter. This moves the time tests accordingly so their location matches the current Standard. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D122745 | 4 年前 | |
Rewording "static_assert" diagnostics This patch rewords the static assert diagnostic output. Failing a _Static_assert in C should not report that static_assert failed. This changes the wording to be more like GCC and uses "static assertion" when possible instead of hard coding the name. This also changes some instances of 'static_assert' to instead be based on the token in the source code. Differential Revision: https://reviews.llvm.org/D129048 | 3 年前 |