clang-tools 22.0.0git
clang::tidy::misc::NoRecursionCheck Class Reference

Finds strongly connected functions (by analyzing call graph for SCC's that are loops), diagnoses each function in the cycle, and displays one example of possible call graph loop (recursion). More...

#include <NoRecursionCheck.h>

Inheritance diagram for clang::tidy::misc::NoRecursionCheck:
[legend]

Public Member Functions

 NoRecursionCheck (StringRef Name, ClangTidyContext *Context)
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

Finds strongly connected functions (by analyzing call graph for SCC's that are loops), diagnoses each function in the cycle, and displays one example of possible call graph loop (recursion).

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/misc/no-recursion.html

Definition at line 26 of file NoRecursionCheck.h.

Constructor & Destructor Documentation

◆ NoRecursionCheck()

clang::tidy::misc::NoRecursionCheck::NoRecursionCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 28 of file NoRecursionCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::misc::NoRecursionCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 253 of file NoRecursionCheck.cpp.

◆ registerMatchers()

void clang::tidy::misc::NoRecursionCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 195 of file NoRecursionCheck.cpp.


The documentation for this class was generated from the following files: