Home | History | Annotate | Download | only in AST

Lines Matching refs:COND

868   enum { VAR, COND, THEN, ELSE, END_EXPR };
875 IfStmt(const ASTContext &C, SourceLocation IL, VarDecl *var, Expr *cond,
899 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);}
900 void setCond(Expr *E) { SubExprs[COND] = reinterpret_cast<Stmt *>(E); }
906 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); }
937 enum { VAR, COND, BODY, END_EXPR };
949 SwitchStmt(const ASTContext &C, VarDecl *Var, Expr *cond);
972 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);}
976 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]);}
977 void setCond(Expr *E) { SubExprs[COND
1030 enum { VAR, COND, BODY, END_EXPR };
1034 WhileStmt(const ASTContext &C, VarDecl *Var, Expr *cond, Stmt *body,
1057 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); }
1058 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);}
1059 void setCond(Expr *E) { SubExprs[COND] = reinterpret_cast<Stmt*>(E); }
1085 enum { BODY, COND, END_EXPR };
1092 DoStmt(Stmt *body, Expr *cond, SourceLocation DL, SourceLocation WL,
1095 SubExprs[COND] = reinterpret_cast<Stmt*>(cond);
1102 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); }
1103 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);}
1104 void setCond(Expr *E) { SubExprs[COND] = reinterpret_cast<Stmt*>(E); }
1131 /// ForStmt - This represents a 'for (init;cond;inc)' stmt. Note that any of
1132 /// the init/cond/inc parts of the ForStmt will be null if they were not
1136 enum { INIT, CONDVAR, COND, INC, BODY, END_EXPR };
1142 ForStmt(const ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar,
1168 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); }
1173 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);}
1178 void setCond(Expr *E) { SubExprs[COND] = reinterpret_cast<Stmt*>(E); }