[clang] [clang-format] Fix a bug in annotating lambda l_square (PR #95084)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 11 19:18:57 PDT 2024


================
@@ -1591,6 +1591,12 @@ TEST_F(TokenAnnotatorTest, UnderstandsLambdas) {
   EXPECT_TOKEN(Tokens[15], tok::arrow, TT_TrailingReturnArrow);
   EXPECT_TOKEN(Tokens[17], tok::l_brace, TT_LambdaLBrace);
 
+  Tokens = annotate("auto l = [] -> struct S { return {}; };");
----------------
owenca wrote:

Not really. I removed the assignment.

https://github.com/llvm/llvm-project/pull/95084


More information about the cfe-commits mailing list