Details
- Reviewers
Mordante philnik - Group Reviewers
Restricted Project - Commits
- rG9d53c8684fe2: [libc++] Implement LWG-3204: `sub_match::swap` only swaps the base class
Diff Detail
Unit Tests
Event Timeline
libcxx/test/std/re/re.submatch/re.submatch.members/swap.pass.cpp | ||
---|---|---|
21 | Both uses of this macro test if operation is noexcept - we can replace it with ASSERT_NOEXCEPT macro (https://github.com/llvm/llvm-project/blob/6c82d16d6092302c0d90ccb672a6ceba0b4a84d2/libcxx/test/support/test_macros.h#L219-L228). | |
46 | ||
70 |
Thanks for your patch. In general LGTM, but I would like to have a look at the changes to the test.
libcxx/include/regex | ||
---|---|---|
5015 | This is the preferred way. (At some point we probably should update the existing code base.) | |
5018 | The indention looks off. | |
libcxx/test/std/re/re.submatch/re.submatch.members/swap.pass.cpp | ||
26 | This looks slightly confusion, I expect first and second to point to the same range. |
libcxx/test/std/re/re.submatch/re.submatch.members/swap.pass.cpp | ||
---|---|---|
28 | Is clang-format-15 ok? I see that clang-format-16 is used but I only have clang-format-15. |
libcxx/test/std/re/re.submatch/re.submatch.members/swap.pass.cpp | ||
---|---|---|
28 | Yes that's fine. They should behave the same for this file. We use a newer version for better formatting of C++20 features like concepts. |
This is the preferred way. (At some point we probably should update the existing code base.)