From Jason Turner

[cpp.error]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpd8d3wbgm/{from.md → to.md} +12 -4
tmp/tmpd8d3wbgm/{from.md → to.md} RENAMED
@@ -1,13 +1,21 @@
1
  ## Diagnostic directives <a id="cpp.error">[[cpp.error]]</a>
2
 
3
- A preprocessing directive of either of the following forms
4
 
5
  ``` bnf
6
  '# error' pp-tokensₒₚₜ new-line
 
 
 
 
 
7
  '# warning' pp-tokensₒₚₜ new-line
8
  ```
9
 
10
- causes the implementation to produce a diagnostic message that should
11
- include the specified sequence of preprocessing tokens; the `# error`
12
- directive renders the program ill-formed.
 
 
 
13
 
 
1
  ## Diagnostic directives <a id="cpp.error">[[cpp.error]]</a>
2
 
3
+ A preprocessing directive of the form
4
 
5
  ``` bnf
6
  '# error' pp-tokensₒₚₜ new-line
7
+ ```
8
+
9
+ renders the program ill-formed. A preprocessing directive of the form
10
+
11
+ ``` bnf
12
  '# warning' pp-tokensₒₚₜ new-line
13
  ```
14
 
15
+ requires the implementation to produce at least one diagnostic message
16
+ for the preprocessing translation unit [[intro.compliance.general]].
17
+
18
+ *Recommended practice:* Any diagnostic message caused by either of these
19
+ directives should include the specified sequence of preprocessing
20
+ tokens.
21