[format.arg] Apply \exposid consistently#6007
[format.arg] Apply \exposid consistently#6007AlisdairM wants to merge 6 commits intocplusplus:mainfrom
\exposid consistently#6007Conversation
Consistently apply the `\exposid` macro when typesetting exposition-only private data members and typedef-name members in `basic_format_arg` and related parts. Note that I confirmed the exposition-only intent against P0645R10 to ensure that the use of code font was a genuine misapplication of the original paper.
jwakely
left a comment
There was a problem hiding this comment.
I think you missed one, but otherwise I agree with the change. For libstdc++ I used this instead of the "not exposition-y" char_type:
using _CharT = typename _Context::char_type;
Co-authored-by: Jonathan Wakely <github@kayari.org>
Thanks. I made a very mechanical edit, and was not sure if the `\tcode` was redundant. Co-authored-by: Johel Ernesto Guerrero Peña <johelegp@gmail.com>
Co-authored-by: Johel Ernesto Guerrero Peña <johelegp@gmail.com>
This should catch all of the missing *char-type* exposid macros. Additionally, add a trailing underscore to the exposition only private data member, 'value', and consistently render it as exposid as well.
Co-authored-by: Johel Ernesto Guerrero Peña <johelegp@gmail.com>
jwakely
left a comment
There was a problem hiding this comment.
I don't think we have agreement on adding underscores to data member names, i.e. value vs value_. There is no value() member function that it could clash with, so value should be ok.
|
Underscores are discussed at #4702. |
Indeed, and given the general dislike of the underscores and the strong objection, I don't think adding them here is progress. At the very least, controversial. |
|
That's right, the naming of exposition-only variables is a delicate matter that we should not change as a drive-by. |
|
While I strongly agree with the distaste for trailing underscores, I think this case merits special attention. On the other hand, I find just I suggest making |
|
I see, yes, the rest of the formatter spec already uses underscores, so changing these two does indeed seem like an improvement. Go for it. |
|
@AlisdairM Ping. This needs to be rewritten since [format.arg] is moved to |
|
I created a "manually rebased" version of this (#8971). |
Consistently apply the
\exposidmacro when typesetting exposition-only private data members and typedef-name members inbasic_format_argand related parts.Note that I confirmed the exposition-only intent against P0645R10 to ensure that the use of code font was a genuine misapplication of the original paper.