This rule is Obsolete | |
Synopsis: | Control should not reach the end of a non-void function without returning a value |
Language: | C++ |
Severity Level: | 1 |
Category: | Control Flow |
Description: |
This means that, if necessary, a function may have multiple or conditional return statements. However, such a function shall never return an undefined value by unexpectedly falling off the end. See also [CFL#001]and [CFL#014]. |