clang-tools 22.0.0git
|
The checker detects expressions that are redundant, because they contain ineffective, useless parts. More...
#include <RedundantExpressionCheck.h>
Public Member Functions | |
RedundantExpressionCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
The checker detects expressions that are redundant, because they contain ineffective, useless parts.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/misc/redundant-expression.html
Definition at line 21 of file RedundantExpressionCheck.h.
|
inline |
Definition at line 23 of file RedundantExpressionCheck.h.
|
override |
Definition at line 1299 of file RedundantExpressionCheck.cpp.
References clang::tidy::misc::Message.
|
override |
Definition at line 926 of file RedundantExpressionCheck.cpp.