[clang] [Clang][Sema] Retain the expanding index for unevaluated type constraints (PR #109518)

via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 21 00:16:41 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 c28e268c32a6840d08e3a4dbc9eeb8a0f564d6c0 f09bb393dc173ba47af49ecf4da6ecfcf969adb1 --extensions cpp,h -- clang/include/clang/Sema/Sema.h clang/lib/Sema/SemaTemplate.cpp clang/lib/Sema/SemaTemplateInstantiate.cpp clang/lib/Sema/SemaType.cpp clang/test/SemaCXX/fold_lambda_with_variadics.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index a610031058..d62ac5c1de 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp
@@ -3144,7 +3144,7 @@ bool Sema::SubstTypeConstraint(
       InstArgs.setLAngleLoc(TemplArgInfo->LAngleLoc);
       InstArgs.setRAngleLoc(TemplArgInfo->RAngleLoc);
       if (ExpandPackedTypeConstraints(*this).SubstTemplateArguments(
-          TemplArgInfo->arguments(), InstArgs))
+              TemplArgInfo->arguments(), InstArgs))
         return true;
 
       // The type of the original parameter.

``````````

</details>


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


More information about the cfe-commits mailing list