clang-tools 22.0.0git
|
Finds obvious infinite loops (loops where the condition variable is not changed at all). More...
#include <InfiniteLoopCheck.h>
Public Member Functions | |
InfiniteLoopCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds obvious infinite loops (loops where the condition variable is not changed at all).
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/infinite-loop.html
Definition at line 21 of file InfiniteLoopCheck.h.
|
inline |
Definition at line 23 of file InfiniteLoopCheck.h.
|
override |
|
override |
Definition at line 296 of file InfiniteLoopCheck.cpp.
References clang::tidy::bugprone::loopEndingStmt().