Number of Call Occurrences
Number of calls in function body
Description
This metric specifies the number of function calls in the body of a function.
This metric includes:
Calls in unreachable code.
Calls to standard library functions.
Calls to constructors and destructors.
The metric excludes:
Calls through a function pointer.
Calls to virtual functions.
Calls to
assert
. Polyspace® considersassert
as a macro and not a function.Inlined functions. Compilers might inline certain function calls, such as the default constructors and destructors.
To enforce limits on metrics, see Compute Code Complexity Metrics Using Polyspace. To enforce violation of code metrics limits as Bug Finder defects, use the Software Complexity checkers. See Reduce Software Complexity by Using Polyspace Checkers
Examples
Metric Information
Group: Function |
Acronym: NCALLS |
HIS Metric: No |