From Jason Turner

[cpp.module]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp8vu4rwb0/{from.md → to.md} +24 -0
tmp/tmp8vu4rwb0/{from.md → to.md} RENAMED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Module directive <a id="cpp.module">[[cpp.module]]</a>
2
+
3
+ ``` bnf
4
+ pp-module:
5
+ exportₒₚₜ module pp-tokensₒₚₜ ';' new-line
6
+ ```
7
+
8
+ A *pp-module* shall not appear in a context where `module` or (if it is
9
+ the first token of the *pp-module*) `export` is an identifier defined as
10
+ an object-like macro.
11
+
12
+ Any preprocessing tokens after the `module` preprocessing token in the
13
+ `module` directive are processed just as in normal text.
14
+
15
+ [*Note 1*: Each identifier currently defined as a macro name is
16
+ replaced by its replacement list of preprocessing tokens. — *end note*]
17
+
18
+ The `module` and `export` (if it exists) preprocessing tokens are
19
+ replaced by the *module-keyword* and *export-keyword* preprocessing
20
+ tokens respectively.
21
+
22
+ [*Note 2*: This makes the line no longer a directive so it is not
23
+ removed at the end of phase 4. — *end note*]
24
+