[clang] [clang-format] Fix crash involving array designators (PR #77045)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 9 12:09:07 PST 2024
================
@@ -2315,6 +2315,10 @@ bool UnwrappedLineParser::tryToParseLambdaIntroducer() {
if (Next->is(tok::greater))
return false;
}
+ if (const auto Kind = FormatTok->Tok.getKind();
+ tok::isLiteral(Kind) && !tok::isStringLiteral(Kind)) {
----------------
HazardyKnusperkeks wrote:
Why ignore the string literal? `["Foo"` is also no lambda.
https://github.com/llvm/llvm-project/pull/77045
More information about the cfe-commits
mailing list