[PATCH] D132695: [Clang] Avoid crashes when parsing using enum declarations
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 26 04:43:41 PDT 2022
aaron.ballman accepted this revision.
aaron.ballman added a comment.
Thanks, this looks like it cleans up some needlessly chatty diagnostics! Just had a question that you can fix when landing if you agree, otherwise LGTM as well.
================
Comment at: clang/lib/Parse/ParseDecl.cpp:4651
if (Tok.isNot(tok::l_brace)) {
+ DS.SetTypeSpecError();
// Has no name and is not a definition.
----------------
Shouldn't this be lifted out of the `if` statement into the parent one where we issue the error diagnostic?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132695/new/
https://reviews.llvm.org/D132695
More information about the cfe-commits
mailing list