Lines Matching defs:STMT
1 //===---- StmtProfile.cpp - Profile implementation for Stmt ASTs ----------===//
10 // This file implements the Stmt::Profile method, which builds a unique bit
36 void VisitStmt(const Stmt *S);
38 #define STMT(Node, Base) void Visit##Node(const Node *S);
70 void StmtProfiler::VisitStmt(const Stmt *S) {
72 for (Stmt::const_child_range C = S->children(); C; ++C) {
499 static Stmt::StmtClass DecodeOperatorCall(const CXXOperatorCallExpr *S,
517 return Stmt::UnaryOperatorClass;
521 return Stmt::BinaryOperatorClass;
526 return Stmt::UnaryOperatorClass;
530 return Stmt::BinaryOperatorClass;
535 return Stmt::UnaryOperatorClass;
539 return Stmt::BinaryOperatorClass;
543 return Stmt::BinaryOperatorClass;
547 return Stmt::BinaryOperatorClass;
551 return Stmt::BinaryOperatorClass;
556 return Stmt::UnaryOperatorClass;
560 return Stmt::BinaryOperatorClass;
564 return Stmt::BinaryOperatorClass;
568 return Stmt::UnaryOperatorClass;
572 return Stmt::UnaryOperatorClass;
576 return Stmt::BinaryOperatorClass;
580 return Stmt::BinaryOperatorClass;
584 return Stmt::BinaryOperatorClass;
588 return Stmt::CompoundAssignOperatorClass;
592 return Stmt::CompoundAssignOperatorClass;
596 return Stmt::CompoundAssignOperatorClass;
600 return Stmt::CompoundAssignOperatorClass;
604 return Stmt::CompoundAssignOperatorClass;
608 return Stmt::CompoundAssignOperatorClass;
612 return Stmt::CompoundAssignOperatorClass;
616 return Stmt::CompoundAssignOperatorClass;
620 return Stmt::BinaryOperatorClass;
624 return Stmt::BinaryOperatorClass;
628 return Stmt::CompoundAssignOperatorClass;
632 return Stmt::CompoundAssignOperatorClass;
636 return Stmt::BinaryOperatorClass;
640 return Stmt::BinaryOperatorClass;
644 return Stmt::BinaryOperatorClass;
648 return Stmt::BinaryOperatorClass;
652 return Stmt::BinaryOperatorClass;
656 return Stmt::BinaryOperatorClass;
661 return Stmt::UnaryOperatorClass;
666 return Stmt::UnaryOperatorClass;
670 return Stmt::BinaryOperatorClass;
675 return Stmt::BinaryOperatorClass;
678 return Stmt::ArraySubscriptExprClass;
691 Stmt::StmtClass SC = DecodeOperatorCall(S, UnaryOp, BinaryOp);
696 if (SC == Stmt::UnaryOperatorClass)
698 else if (SC == Stmt::BinaryOperatorClass ||
699 SC == Stmt::CompoundAssignOperatorClass)
702 assert(SC == Stmt::ArraySubscriptExprClass);
1197 void Stmt::Profile(llvm::FoldingSetNodeID &ID, const ASTContext &Context,