Implement P1147R1
Details
- Reviewers
• Quuxplusone philnik - Group Reviewers
Restricted Project - Commits
- rGf0d5a60fc1a4: [libc++] Implement P1147R1 (Printing volatile T*)
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
Thanks for the patch! Can you please go through the list at https://libcxx.llvm.org/Contributing.html and make sure you didn't forget anything?
LGTM except for the testing nitpick. Requesting changes so it shows up at the top once you update.
libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp | ||
---|---|---|
62 ↗ | (On Diff #385808) | Sorry for missing that in the first round of review, but the new tests should live in a new file like pointer.volatile.pass.cpp, and should show the correct synopsis for what we're testing. You can then mark it as // UNSUPPORTED: c++03, c++11, c++17, c++20. |
I don't have commit permissions, so someone else has to commit it for me. "Nikolas Klauser" <nikolasklauser@berlin.de>
LGTM as well.
libcxx/include/ostream | ||
---|---|---|
58 | // since C++23 :) | |
216–218 | These lines are misindented; should be 4 spaces. | |
libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.volatile.pass.cpp | ||
64 | Style nit: Lines 51, 57, 64: IIUC, sb.str() returns something of type std::string already, so the cast-like direct-initialization syntax is unnecessary. std::string s3 = sb3.str(); would be fine. |
Commandeering to update.
libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.volatile.pass.cpp | ||
---|---|---|
11 | This is also missing c++14 from the list. |
Nitpick: add // C++23.
I'll do this when committing on your behalf.