Metric-Calling.CPP

Number of functions calling this function (counting calls from template instances only once)

Required inputs: RFG

Counts for a given routine r the number of distinct routines that call r. Calls from routines that are instances of the same template are not distinguished (except for partial specializations).

Possible Messages

This rule has no predefined messages.

Options

consider_dynamic_calls

consider_dynamic_calls : bool = True

Also count incoming dynamic calls. Requires manual activation of StaticSemanticAnalysis to have an effect.
 

display_name

display_name : str | None = 'Number of functions calling this function (counting calls from template instances only once)'

Description of the metric shown in the dashboard. If None, rfg_metric_name is used.
 

max_value

max_value : int | None = 5

Maximum allowed value. None if unlimited.
 

min_value

min_value : int | None = 0

Minimum allowed value. None if unlimited.
 

rfg_metric_name

rfg_metric_name : str = 'Metric.Calling.CPP'

Name of the node attribute storing the metric value in the RFG.