================
@@ -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))) {
----------------
cor3ntin wrote:
Why not just do that check in place of the `SkipUntil(tok::semi)` ?
https://github.com/llvm/llvm-project/pull/190744
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits