Title
White space within preprocessing directives
Status
open
Section
15.1 [cpp.pre]
Submitter
Richard Smith

Created on 2014-09-10.00:00:00 last changed 129 months ago

Messages

Date: 2025-02-24.20:05:22

According to 15.1 [cpp.pre] paragraph 5,

The only white-space characters that shall appear between preprocessing tokens within a preprocessing directive (from just after the introducing # preprocessing token through just before the terminating new-line character) are space and horizontal-tab (including spaces that have replaced comments or possibly other white-space characters in translation phase 3).

The effect of this restriction is unclear, however, since translation phase 3 is permitted to transform all white space characters and comments into spaces. The relationship between these two rules should be clarified.

History
Date User Action Args
2014-09-10 00:00:00admincreate