Commit e7c25ea
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 b2f019c commit e7c25ea
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4725 | 4725 | | |
4726 | 4726 | | |
4727 | 4727 | | |
| 4728 | + | |
| 4729 | + | |
| 4730 | + | |
| 4731 | + | |
| 4732 | + | |
4728 | 4733 | | |
4729 | 4734 | | |
4730 | 4735 | | |
| |||
0 commit comments