Rule M3-1-2 (required, implementation, automated)

Functions shall not be declared at block scope. See MISRA C++ 2008 [7]