Main Content
Function not called
Function is defined but not called
Description
This check on a function definition determines if the function
is called anywhere in the code. This check is disabled if your code
does not contain a main
function.
Use this check to satisfy ISO® 26262 requirements about function coverage. For example, see table 15 of ISO 26262, part 6.
Note
This check is not turned on by default. To turn on this check, you must specify the
appropriate analysis option. For more information, see
Detect uncalled functions
(-uncalled-function-checks)
.
Diagnosing This Check
Examples
Check Information
Group: Data flow |
Language: C | C++ |
Acronym: FNC |