================
@@ -4681,13 +4681,6 @@ void 
Parser::ParseCXX11AttributeSpecifierInternal(ParsedAttributes &Attrs,
       Diag(Tok, diag::err_cxx11_attribute_forbids_ellipsis) << AttrName;
   }
 
-  // If we hit an error and recovered by parsing up to a semicolon, eat the
-  // semicolon and don't issue further diagnostics about missing brackets.
----------------
AmrDeveloper wrote:

> Or maybe we don't have to return on line 4688, can you please try?

Checking if there is an error before and consuming without return works, I 
think we don't have a test for this recovery condition to test if keeping it is 
better or not :D

https://github.com/llvm/llvm-project/pull/187580
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to