Lines Matching full:parents
75 const DynTypedNodeList Parents = ParentCtx.getParents(*S); in isInCondition() local
76 if (Parents.empty()) in isInCondition()
78 const auto *ParentS = Parents[0].get<Stmt>(); in isInCondition() local
79 if (!ParentS || isa<CallExpr>(ParentS)) in isInCondition()
81 switch (ParentS->getStmtClass()) { in isInCondition()
83 CondFound = (S == cast<IfStmt>(ParentS)->getCond()); in isInCondition()
86 CondFound = (S == cast<ForStmt>(ParentS)->getCond()); in isInCondition()
89 CondFound = (S == cast<DoStmt>(ParentS)->getCond()); in isInCondition()
92 CondFound = (S == cast<WhileStmt>(ParentS)->getCond()); in isInCondition()
95 CondFound = (S == cast<SwitchStmt>(ParentS)->getCond()); in isInCondition()
98 CondFound = (S == cast<ConditionalOperator>(ParentS)->getCond()); in isInCondition()
101 CondFound = (S == cast<BinaryConditionalOperator>(ParentS)->getCommon()); in isInCondition()
106 S = ParentS; in isInCondition()