Details
Details
- Reviewers
- None
- Group Reviewers
Restricted Project - Commits
- rG000444214f16: [libcxx] Update optional star operator to be noexcept.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM % comment, but it's major.
libcxx/test/std/utilities/optional/optional.object/optional.object.observe/dereference_const.pass.cpp | ||
---|---|---|
40 | Should use ASSERT_NOEXCEPT(*opt); |
libcxx/test/std/utilities/optional/optional.object/optional.object.observe/dereference_const.pass.cpp | ||
---|---|---|
40 | LIBCPP_STATIC_ASSERT means it will only be checked for libc++. I think this is fine. I'd rather not add another file (putting it here also makes it far easier to find). |
Should use ASSERT_NOEXCEPT(*opt);
However, is this guaranteed by the Standard? or should this actually be a new test file in libcxx/test/libcxx/ because it's a conforming extension we're doing?
If new file, then I think one file (not four) would suffice: dereference_noexcept.compile.pass.cpp or something like that.