blob: c8281075ded8fe58f54a692b365fef79ccbc0ce2 [file] [log] [blame]
.. title:: clang-tidy - misc-no-recursion
Finds strongly connected functions (by analyzing the call graph for
SCC's (Strongly Connected Components) that are loops),
diagnoses each function in the cycle,
and displays one example of a possible call graph loop (recursion).
* CERT C++ Coding Standard rule `DCL56-CPP. Avoid cycles during initialization of static objects <>`_.
* JPL Institutional Coding Standard for the C Programming Language (JPL DOCID D-60411) rule `2.4 Do not use direct or indirect recursion`.
* OpenCL Specification, Version 1.2 rule `6.9 Restrictions: i. Recursion is not supported. <>`_.
* The check does not handle calls done through function pointers
* The check does not handle C++ destructors