Lines Matching defs:Stmt1

28 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1,
107 const Stmt *Stmt1 = I->getThen();
115 if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(Stmt1)) {
135 if (Stmt1 && Stmt2) {
152 if (!Stmt1 || !Stmt2)
161 if (const CompoundStmt *CompStmt = dyn_cast<CompoundStmt>(Stmt1)) {
163 Stmt1 = CompStmt->body_back();
170 if (isIdenticalStmt(AC->getASTContext(), Stmt1, Stmt2, true)) {
306 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1,
309 if (!Stmt1 || !Stmt2) {
310 return !Stmt1 && !Stmt2;
313 // If Stmt1 & Stmt2 are of different class then they are not
315 if (Stmt1->getStmtClass() != Stmt2->getStmtClass())
318 const Expr *Expr1 = dyn_cast<Expr>(Stmt1);
322 // If Stmt1 has side effects then don't warn even if expressions
348 switch (Stmt1->getStmtClass()) {
363 const CStyleCastExpr* CastExpr1 = cast<CStyleCastExpr>(Stmt1);
369 const ReturnStmt *ReturnStmt1 = cast<ReturnStmt>(Stmt1);
376 const ForStmt *ForStmt1 = cast<ForStmt>(Stmt1);
394 const DoStmt *DStmt1 = cast<DoStmt>(Stmt1);
406 const WhileStmt *WStmt1 = cast<WhileStmt>(Stmt1);
418 const IfStmt *IStmt1 = cast<IfStmt>(Stmt1);
433 const CompoundStmt *CompStmt1 = cast<CompoundStmt>(Stmt1);
452 const BinaryOperator *BinOp1 = cast<BinaryOperator>(Stmt1);
457 const CharacterLiteral *CharLit1 = cast<CharacterLiteral>(Stmt1);
462 const DeclRefExpr *DeclRef1 = cast<DeclRefExpr>(Stmt1);
467 const IntegerLiteral *IntLit1 = cast<IntegerLiteral>(Stmt1);
477 const FloatingLiteral *FloatLit1 = cast<FloatingLiteral>(Stmt1);
482 const StringLiteral *StringLit1 = cast<StringLiteral>(Stmt1);
487 const MemberExpr *MemberStmt1 = cast<MemberExpr>(Stmt1);
492 const UnaryOperator *UnaryOp1 = cast<UnaryOperator>(Stmt1);