Details
- Reviewers
Mordante - Group Reviewers
Restricted Project - Commits
- rGc0a5b147fae9: [libc++] Add noexcept clauses to swap per P0408R7 (Efficient Access to…
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks this smaller patch is a lot easier to quickly review!
A few minor issues, otherwise looks fine!
| libcxx/include/sstream | ||
|---|---|---|
| 39–40 | This is how we typically do these changes. | |
| 61 | Please verify the layout looks nice after applying this comment. | |
| libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/member_swap_noexcept.pass.cpp | ||
| 33 | I like to see a few additional tests
http://eel.is/c++draft/allocator.traits.types#9 | |
| 37 | Please use descriptive names here. That makes reading the test a lot easier. | |
In general happy one comment.
| libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/member_swap_noexcept.pass.cpp | ||
|---|---|---|
| 93 | Can you add some test where noexcept(buf.swap(buf1)) == false. | |
| libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/member_swap_noexcept.pass.cpp | ||
|---|---|---|
| 93 | See five lines up. | |
LGTM!
| libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/member_swap_noexcept.pass.cpp | ||
|---|---|---|
| 93 | Ah sorry I overlooked that. | |
This is how we typically do these changes.