[PATCH] D26350: Keep invalid Switch in the AST

Olivier Goffart via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 16 05:49:19 PDT 2017


ogoffart updated this revision to Diff 119142.
ogoffart added a comment.

Updated the patch so that ActOnStartOfSwitchStmt returns void, and ActOnFinishSwitchStmt will skip some checks in case of error


https://reviews.llvm.org/D26350

Files:
  include/clang/Sema/Sema.h
  lib/Parse/ParseStmt.cpp
  lib/Sema/SemaStmt.cpp
  lib/Sema/TreeTransform.h
  test/Misc/ast-dump-invalid-switch.cpp
  test/SemaCXX/switch.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26350.119142.patch
Type: text/x-patch
Size: 14161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171016/5e211467/attachment-0001.bin>


More information about the cfe-commits mailing list