MISRA.NS.MAINVariable, type, namespace or non-global function with name 'main'. MISRA-C++ Rule 7-3-2 (required): The identifier main shall not be used for a function other than the global function main.[Implementation 3.6.1(2, 3)] Rationalemain(or its equivalent) is usually the entry point to the program and is the only identifier which must be in the global namespace. The use of main for other functions may not meet developer expectations. Exampleint32_t main ( ) // Compliant { } namespace { int32_t main ( ) // Non-compliant { } } namespace NS { int32_t main ( ) // Non-compliant { } } |