[lex.pptoken] p2 Make the effect of the whitespace in preprocessing tokens clearly
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 221
- Forks
- 813
- Avg merge
- 16h 4m
- Merged PRs (30d)
- 36
Description
[lex.pptoken] p2 says:
Preprocessing tokens can be separated by whitespace; this consists of comments ([lex.comment]), or whitespace characters (U+0020 space, U+0009 character tabulation, new-line, U+000b line tabulation, and U+000c form feed), or both.
As described in [cpp], in certain circumstances during translation phase 4, whitespace (or the absence thereof) serves as more than preprocessing token separation. Whitespace can appear within a preprocessing token only as part of a header name or between the quotation characters in a character literal or string literal.
"can" in this sentence serves as a weak tone. The intent is, whitespace definitely separates preprocessing tokens except for some special cases. The improvement is:
Except that the whitespace that appears within a preprocessing token only as part of a header name or between the quotation characters in a character literal or string literal, a whitespace separates preprocessing tokens.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the [lex.pptoken] wording in the C++ draft and compare its references to [cpp]. Revise the sentence so the exception for whitespace within header names and between quotation characters is explicit, then check the rendered draft for clear grammar and formatting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100