Main Content
MISRA C++:2008 Rule 8-4-3
All exit paths from a function with non- void return type shall have an explicit return statement with an expression
Description
Rule Definition
All exit paths from a function with non- void return type shall have an explicit return statement with an expression.
Troubleshooting
If you expect a rule violation but Polyspace® does not report it, see Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Check Information
Group: Declarators |
Category: Required |
Version History
Introduced in R2013b