|
clang-tools 23.0.0git
|
Detects nested if statements that can be merged into one by / concatenating conditions with &&. More...
#include <RedundantNestedIfCheck.h>
Public Member Functions | |
| RedundantNestedIfCheck (StringRef Name, ClangTidyContext *Context) | |
| void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
| std::optional< TraversalKind > | getCheckTraversalKind () const override |
Detects nested if statements that can be merged into one by / concatenating conditions with &&.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-nested-if.html
Definition at line 21 of file RedundantNestedIfCheck.h.
| clang::tidy::readability::RedundantNestedIfCheck::RedundantNestedIfCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 610 of file RedundantNestedIfCheck.cpp.
References clang::tidy::readability::AllowUserDefinedBoolConversionStr.
|
override |
Definition at line 632 of file RedundantNestedIfCheck.cpp.
References clang::tidy::readability::diagnoseChain().
|
inlineoverride |
Definition at line 28 of file RedundantNestedIfCheck.h.
|
override |
Definition at line 621 of file RedundantNestedIfCheck.cpp.
|
override |
Definition at line 616 of file RedundantNestedIfCheck.cpp.
References clang::tidy::readability::AllowUserDefinedBoolConversionStr.