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