Home
last modified time | relevance | path

Searched refs:InnerIf (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DRedundantBranchConditionCheck.cpp77 const auto *InnerIf = Result.Nodes.getNodeAs<IfStmt>(InnerIfStr); in check() local
107 auto Diag = diag(InnerIf->getBeginLoc(), "redundant condition %0") << CondVar; in check()
112 dyn_cast<BinaryOperator>(InnerIf->getCond()->IgnoreParenImpCasts()); in check()
114 if (isa<DeclRefExpr>(InnerIf->getCond()->IgnoreParenImpCasts()) || in check()
116 SourceLocation IfBegin = InnerIf->getBeginLoc(); in check()
117 const Stmt *Body = InnerIf->getThen(); in check()
161 cast<BinaryOperator>(InnerIf->getCond()->IgnoreParenImpCasts()); in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp117 const IfStmt *InnerIf = dyn_cast<IfStmt>(*CS->body_begin()); in VisitIfStmt() local
118 …if (InnerIf && isIdenticalStmt(AC->getASTContext(), I->getCond(), InnerIf->getCond(), /*IgnoreSide… in VisitIfStmt()
119 PathDiagnosticLocation ELoc(InnerIf->getCond(), BR.getSourceManager(), AC); in VisitIfStmt()