Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 235 Bytes

README-returning-void-expression.md

File metadata and controls

14 lines (11 loc) · 235 Bytes

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();
}