[clang] [Clang] Correctly recognize unexpanded packs in lambda template params (PR #98496)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 11 08:25:39 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff c0261351136e4a826be697e5ebb5fa638abe7485 27c49b8c204202bf8928e1b2c6fe4c33c012c049 --extensions cpp -- clang/lib/Sema/SemaLambda.cpp clang/test/SemaCXX/lambda-pack-expansion.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Sema/SemaLambda.cpp b/clang/lib/Sema/SemaLambda.cpp
index 7b93e5df25..601077e9f3 100644
--- a/clang/lib/Sema/SemaLambda.cpp
+++ b/clang/lib/Sema/SemaLambda.cpp
@@ -1380,7 +1380,8 @@ void Sema::ActOnLambdaClosureParameters(
     AddTemplateParametersToLambdaCallOperator(LSI->CallOperator, LSI->Lambda,
                                               TemplateParams);
     LSI->Lambda->setLambdaIsGeneric(true);
-    LSI->ContainsUnexpandedParameterPack |= TemplateParams->containsUnexpandedParameterPack();
+    LSI->ContainsUnexpandedParameterPack |=
+        TemplateParams->containsUnexpandedParameterPack();
   }
   LSI->AfterParameterList = true;
 }

``````````

</details>


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


More information about the cfe-commits mailing list