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
|
| 4 |
|
| 5 |
``` bnf
|
| 6 |
'# error' pp-tokensₒₚₜ new-line
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
'# warning' pp-tokensₒₚₜ new-line
|
| 8 |
```
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
| 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 |
|