Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DRedundantBranchConditionCheck.cpp68 const auto *InnerIf = Result.Nodes.getNodeAs<IfStmt>(InnerIfStr); in check() local
78 if (isChangedBefore(OuterIf->getThen(), InnerIf, CondVar, Result.Context)) in check()
81 auto Diag = diag(InnerIf->getBeginLoc(), "redundant condition %0") << CondVar; in check()
86 dyn_cast<BinaryOperator>(InnerIf->getCond()->IgnoreParenImpCasts()); in check()
88 if (isa<DeclRefExpr>(InnerIf->getCond()->IgnoreParenImpCasts()) || in check()
90 SourceLocation IfBegin = InnerIf->getBeginLoc(); in check()
91 const Stmt *Body = InnerIf->getThen(); in check()
135 cast<BinaryOperator>(InnerIf->getCond()->IgnoreParenImpCasts()); in check()
/external/llvm-project/llvm/unittests/Transforms/Vectorize/
DVPlanPredicatorTest.cpp75 VPBlockBase *InnerIf = OuterIf->getSuccessors()[0]; in TEST_F() local
85 VPBlockBase *InnerIfLinSucc = InnerIf->getSingleSuccessor(); in TEST_F()
88 cast<VPInstruction>(InnerIf->getEntryBasicBlock()->begin()); in TEST_F()
89 VPValue *InnerIfPred = InnerIf->getPredicate(); in TEST_F()
103 EXPECT_EQ(OuterIfLinSucc, InnerIf); in TEST_F()
110 EXPECT_EQ(&*Plan, InnerIf->getPlan()); in TEST_F()
/external/clang/lib/StaticAnalyzer/Checkers/
DIdenticalExprChecker.cpp118 const IfStmt *InnerIf = dyn_cast<IfStmt>(*CS->body_begin()); in VisitIfStmt() local
119 …if (InnerIf && isIdenticalStmt(AC->getASTContext(), I->getCond(), InnerIf->getCond(), /*ignoreSide… in VisitIfStmt()
120 PathDiagnosticLocation ELoc(InnerIf->getCond(), BR.getSourceManager(), AC); in VisitIfStmt()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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()