Lines Matching refs:Stmt1
28 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1,
107 const Stmt *Stmt1 = I->getThen(); in VisitIfStmt() local
115 if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(Stmt1)) { in VisitIfStmt()
135 if (Stmt1 && Stmt2) { in VisitIfStmt()
152 if (!Stmt1 || !Stmt2) in VisitIfStmt()
161 if (const CompoundStmt *CompStmt = dyn_cast<CompoundStmt>(Stmt1)) { in VisitIfStmt()
163 Stmt1 = CompStmt->body_back(); in VisitIfStmt()
170 if (isIdenticalStmt(AC->getASTContext(), Stmt1, Stmt2, true)) { in VisitIfStmt()
306 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1, in isIdenticalStmt() argument
309 if (!Stmt1 || !Stmt2) { in isIdenticalStmt()
310 return !Stmt1 && !Stmt2; in isIdenticalStmt()
315 if (Stmt1->getStmtClass() != Stmt2->getStmtClass()) in isIdenticalStmt()
318 const Expr *Expr1 = dyn_cast<Expr>(Stmt1); in isIdenticalStmt()
348 switch (Stmt1->getStmtClass()) { in isIdenticalStmt()
363 const CStyleCastExpr* CastExpr1 = cast<CStyleCastExpr>(Stmt1); in isIdenticalStmt()
369 const ReturnStmt *ReturnStmt1 = cast<ReturnStmt>(Stmt1); in isIdenticalStmt()
376 const ForStmt *ForStmt1 = cast<ForStmt>(Stmt1); in isIdenticalStmt()
394 const DoStmt *DStmt1 = cast<DoStmt>(Stmt1); in isIdenticalStmt()
406 const WhileStmt *WStmt1 = cast<WhileStmt>(Stmt1); in isIdenticalStmt()
418 const IfStmt *IStmt1 = cast<IfStmt>(Stmt1); in isIdenticalStmt()
433 const CompoundStmt *CompStmt1 = cast<CompoundStmt>(Stmt1); in isIdenticalStmt()
452 const BinaryOperator *BinOp1 = cast<BinaryOperator>(Stmt1); in isIdenticalStmt()
457 const CharacterLiteral *CharLit1 = cast<CharacterLiteral>(Stmt1); in isIdenticalStmt()
462 const DeclRefExpr *DeclRef1 = cast<DeclRefExpr>(Stmt1); in isIdenticalStmt()
467 const IntegerLiteral *IntLit1 = cast<IntegerLiteral>(Stmt1); in isIdenticalStmt()
477 const FloatingLiteral *FloatLit1 = cast<FloatingLiteral>(Stmt1); in isIdenticalStmt()
482 const StringLiteral *StringLit1 = cast<StringLiteral>(Stmt1); in isIdenticalStmt()
487 const MemberExpr *MemberStmt1 = cast<MemberExpr>(Stmt1); in isIdenticalStmt()
492 const UnaryOperator *UnaryOp1 = cast<UnaryOperator>(Stmt1); in isIdenticalStmt()