Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WG14: Trimming whitespace before line splicing #64

Open
peter-b opened this issue Jan 22, 2021 · 0 comments
Open

WG14: Trimming whitespace before line splicing #64

peter-b opened this issue Jan 22, 2021 · 0 comments
Labels
help wanted Extra attention is needed paper needed A paper proposing a specific solution is needed WG14 WG14

Comments

@peter-b
Copy link
Collaborator

peter-b commented Jan 22, 2021

P2223 looks like it's on track for C++23. With regards to C compatibility, P2223 says:

In effect, the ”implementation defined mapping: in phase one makes the content of the program implementation defined, and it is a valid behavior in C and C++ alike to trim or not trailing whitespaces. The proposed change only requires that all C++ compilers do this trimming, and therefore doesn’t affect C compatibility.

This opens the possibility that C implementations that also implement C++ might change their behaviour in order to make sure that compiling the same header in C and C++ mode doesn't give different results. We should see if WG14 want to make similar changes to the C standard.

@peter-b peter-b added help wanted Extra attention is needed paper needed A paper proposing a specific solution is needed WG14 WG14 labels Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed paper needed A paper proposing a specific solution is needed WG14 WG14
Development

No branches or pull requests

1 participant