================
@@ -194,6 +194,17 @@ bool Parser::ExpectAndConsumeSemi(unsigned DiagID, 
StringRef TokenUsed) {
   return ExpectAndConsume(tok::semi, DiagID , TokenUsed);
 }
 
+bool Parser::TryInjectSemicolon() {
+  if (Tok.isAtStartOfLine() &&
+      (isDeclarationSpecifier(ImplicitTypenameContext::No))) {
----------------
hokein wrote:

I wanted to avoid duplicating this check in multiple places.

And I realized that the token injection was unnecessary after all, so I have 
simplified this method to just perform the check without modifying the token 
stream.

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

Reply via email to