Recursive is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.
Recursive
API ID: IsRecursiveLanguages: Any
Targets: Functions
Return 0, 1, or 2 for not recursive, directly recursive, or indirectly recursive
This is a batch metric. The first time it is called, it will scan the entire project to find all recursive functions. Future calls read from a cache.
This is a simple version of the metric that follows all calls, including virtual calls, and does not follow function pointers. It most closely matches the Hersteller Initiative Software (HIS) configuration's check for recursion. For a more detailed recursion metric, use IsRecursiveUsePtr. For a non-batch recursion metric, use MinRecursiveDepth.
Used for Hersteller Initiative Software (HIS) AP_CG_CYCLE metric.