TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
C++ Coding Standard

Rule:  CFL#020Checked automatically with code checker

This rule is Obsolete
Synopsis:Control should not reach the end of a non-void function without returning a value
Severity Level:1
Category:Control Flow


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].