Home | History | Annotate | Download | only in AST

Lines Matching full:stmt

20 #include "clang/AST/Stmt.h"
29 class CXXCatchStmt : public Stmt {
34 Stmt *HandlerBlock;
37 CXXCatchStmt(SourceLocation catchLoc, VarDecl *exDecl, Stmt *handlerBlock)
38 : Stmt(CXXCatchStmtClass), CatchLoc(catchLoc), ExceptionDecl(exDecl),
42 : Stmt(CXXCatchStmtClass), ExceptionDecl(nullptr), HandlerBlock(nullptr) {}
52 Stmt *getHandlerBlock() const { return HandlerBlock; }
54 static bool classof(const Stmt *T) {
65 class CXXTryStmt : public Stmt {
69 CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, ArrayRef<Stmt*> handlers);
72 : Stmt(CXXTryStmtClass), NumHandlers(numHandlers) { }
74 Stmt const * const *getStmts() const {
75 return reinterpret_cast<Stmt const * const*>(this + 1);
77 Stmt **getStmts() {
78 return reinterpret_cast<Stmt **>(this + 1);
83 Stmt *tryBlock, ArrayRef<Stmt*> handlers);
111 static bool classof(const Stmt *T) {
122 /// CXXForRangeStmt - This represents C++0x [stmt.ranged]'s ranged for
128 class CXXForRangeStmt : public Stmt {
132 Stmt *SubExprs[END];
138 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, Stmt *Body,
140 CXXForRangeStmt(EmptyShell Empty) : Stmt(CXXForRangeStmtClass, Empty) { }
157 Stmt *getBody() { return SubExprs[BODY]; }
174 const Stmt *getBody() const { return SubExprs[BODY]; }
176 void setRangeInit(Expr *E) { SubExprs[RANGE] = reinterpret_cast<Stmt*>(E); }
177 void setRangeStmt(Stmt *S) { SubExprs[RANGE] = S; }
178 void setBeginEndStmt(Stmt *S) { SubExprs[BEGINEND] = S; }
179 void setCond(Expr *E) { SubExprs[COND] = reinterpret_cast<Stmt*>(E); }
180 void setInc(Expr *E) { SubExprs[INC] = reinterpret_cast<Stmt*>(E); }
181 void setLoopVarStmt(Stmt *S) { SubExprs[LOOPVAR] = S; }
182 void setBody(Stmt *S) { SubExprs[BODY] = S; }
197 static bool classof(const Stmt *T) {
234 class MSDependentExistsStmt : public Stmt {
239 Stmt *SubStmt;
249 : Stmt(MSDependentExistsStmtClass),
252 SubStmt(reinterpret_cast<Stmt *>(SubStmt)) { }
285 static bool classof(const Stmt *T) {