aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level2/README-returning-void-expression.md
blob: bb405092729b63bc801b2a6fd80486bbbad640a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# returning-void-expression

Warns when returning a void expression.

Example:
```
void doStuff()
{
    if (cond)
        return // Oops, forgot the ; but it still compiles since processStuff() returns void.

    processStuff();
}
```