[PATCH] D26105: Allow CaseStmt to be initialized with a SubStmt
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 31 01:23:31 PDT 2016
ABataev added a comment.
Add a test
================
Comment at: include/clang/AST/Stmt.h:697
+ SourceLocation ellipsisLoc, SourceLocation colonLoc,
+ Stmt *SubStmt=nullptr)
: SwitchCase(CaseStmtClass, caseLoc, colonLoc) {
----------------
I don't think you need this new param. You can create an instance if CaseStmt, then call `setSubStmt()` and after that return this instance.
https://reviews.llvm.org/D26105
More information about the cfe-commits
mailing list