clang-tools 22.0.0git
|
Eliminates redundant return statements at the end of a function that returns void. More...
#include <RedundantControlFlowCheck.h>
Public Member Functions | |
RedundantControlFlowCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Eliminates redundant return statements at the end of a function that returns void.
Eliminates redundant continue statements at the end of a loop body.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-control-flow.html
Definition at line 23 of file RedundantControlFlowCheck.h.
|
inline |
Definition at line 25 of file RedundantControlFlowCheck.h.
|
override |
Definition at line 43 of file RedundantControlFlowCheck.cpp.
|
inlineoverride |
Definition at line 30 of file RedundantControlFlowCheck.h.
|
override |
Definition at line 29 of file RedundantControlFlowCheck.cpp.