We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 334139f commit 45b985cCopy full SHA for 45b985c
clang/include/clang/AST/Stmt.h
@@ -287,6 +287,11 @@ class CaseStmt : public SwitchCase {
287
}
288
const Stmt *getSubStmt() const { return SubExprs[SUBSTMT]; }
289
290
+ void setSubStmt(Stmt *S) { SubExprs[SUBSTMT] = S; }
291
+ void setLHS(Expr *Val) { SubExprs[LHS] = reinterpret_cast<Stmt*>(Val); }
292
+ void setRHS(Expr *Val) { SubExprs[RHS] = reinterpret_cast<Stmt*>(Val); }
293
+
294
295
virtual SourceRange getSourceRange() const {
296
return SourceRange(CaseLoc, SubExprs[SUBSTMT]->getLocEnd());
297
0 commit comments