================
@@ -980,7 +980,7 @@ Decl *Parser::ParseStaticAssertDeclaration(SourceLocation
&DeclEnd) {
if (getLangOpts().CPlusPlus11) {
for (unsigned I = 0;; ++I) {
const Token &T = GetLookAheadToken(I);
- if (T.is(tok::r_paren))
+ if (T.isOneOf(tok::r_paren, tok::semi, tok::eof))
----------------
a-tarasyuk wrote:
@AaronBallman @cor3ntin, Thanks for the feedback. I've changed this to use
`tok::r_paren` only, and now emit the user-generated-message warning only after
parsing the expression message and seeing a clean `);`. Malformed cases like
`""1`, `""`; or a missing `)` no longer follow that path.
https://github.com/llvm/llvm-project/pull/187859
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits