Commit 050069b
committed
Add diagnostics for empty statements (extra semicolon)
This change introduce diagnostics when there is a semicolon
without statement
```cpp
;
```
Generates:
```
error: empty statement is not allowed - remove extra semicolon (at ';')
```
That also handles cases when there is double semicolon after a proper
statemnt:
```cpp
i := 0;;
```
Generates:
```
error: empty statement is not allowed - remove extra semicolon (at ';')
```1 parent 6a93b4c commit 050069b
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4507 | 4507 | | |
4508 | 4508 | | |
4509 | 4509 | | |
| 4510 | + | |
| 4511 | + | |
| 4512 | + | |
| 4513 | + | |
| 4514 | + | |
4510 | 4515 | | |
4511 | 4516 | | |
4512 | 4517 | | |
| |||
0 commit comments