Commit 517b2b6
committed
[C2y] Implement WG14 N3411
This paper allows a source file to end without a newline. Clang has
supported this as a conforming extension for a long time, so this
suppresses the diagnotic in C2y mode but continues to diagnose as an
extension in earlier language modes. It also continues to diagnose if
the user passes -Wnewline-eof explicitly.1 parent f3effc2 commit 517b2b6
File tree
4 files changed
+25
-9
lines changed- clang
- docs
- lib/Lex
- test/C/C2y
- www
4 files changed
+25
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3192 | 3192 | | |
3193 | 3193 | | |
3194 | 3194 | | |
3195 | | - | |
| 3195 | + | |
3196 | 3196 | | |
3197 | 3197 | | |
3198 | 3198 | | |
3199 | 3199 | | |
3200 | 3200 | | |
3201 | | - | |
| 3201 | + | |
3202 | 3202 | | |
3203 | | - | |
3204 | | - | |
3205 | | - | |
3206 | 3203 | | |
3207 | | - | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
3208 | 3208 | | |
3209 | 3209 | | |
3210 | | - | |
3211 | | - | |
| 3210 | + | |
3212 | 3211 | | |
3213 | 3212 | | |
3214 | 3213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
0 commit comments