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

Rule:  CFL#020Checked automatically with code checker

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