Lines Matching refs:Stmt
22 typedef llvm::DenseMap<Stmt*, Stmt*> MapTy;
29 static void BuildParentMap(MapTy& M, Stmt* S, in BuildParentMap()
33 case Stmt::PseudoObjectExprClass: { in BuildParentMap()
39 for (Stmt *SubStmt : S->children()) in BuildParentMap()
53 case Stmt::BinaryConditionalOperatorClass: { in BuildParentMap()
71 case Stmt::OpaqueValueExprClass: { in BuildParentMap()
85 for (Stmt *SubStmt : S->children()) { in BuildParentMap()
95 ParentMap::ParentMap(Stmt *S) : Impl(nullptr) { in ParentMap()
107 void ParentMap::addStmt(Stmt* S) { in addStmt()
113 void ParentMap::setParent(const Stmt *S, const Stmt *Parent) { in setParent()
117 M->insert(std::make_pair(const_cast<Stmt *>(S), const_cast<Stmt *>(Parent))); in setParent()
120 Stmt* ParentMap::getParent(Stmt* S) const { in getParent()
126 Stmt *ParentMap::getParentIgnoreParens(Stmt *S) const { in getParentIgnoreParens()
131 Stmt *ParentMap::getParentIgnoreParenCasts(Stmt *S) const { in getParentIgnoreParenCasts()
140 Stmt *ParentMap::getParentIgnoreParenImpCasts(Stmt *S) const { in getParentIgnoreParenImpCasts()
148 Stmt *ParentMap::getOuterParenParent(Stmt *S) const { in getOuterParenParent()
149 Stmt *Paren = nullptr; in getOuterParenParent()
158 Stmt *P = getParent(E); in isConsumedExpr()
159 Stmt *DirectChild = E; in isConsumedExpr()
174 case Stmt::DeclStmtClass: in isConsumedExpr()
176 case Stmt::BinaryOperatorClass: { in isConsumedExpr()
182 case Stmt::ForStmtClass: in isConsumedExpr()
184 case Stmt::WhileStmtClass: in isConsumedExpr()
186 case Stmt::DoStmtClass: in isConsumedExpr()
188 case Stmt::IfStmtClass: in isConsumedExpr()
190 case Stmt::IndirectGotoStmtClass: in isConsumedExpr()
192 case Stmt::SwitchStmtClass: in isConsumedExpr()
194 case Stmt::ReturnStmtClass: in isConsumedExpr()