blob: 7f455e264cb30cd2fb033fc174ebe6dc36202b66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
### What it does
Checks for expression statements that can be reduced to a
sub-expression.
### Why is this bad?
Expressions by themselves often have no side-effects.
Having such expressions reduces readability.
### Example
```
compute_array()[0];
```
|