[clang] [clang] assert fail when number of arguments in pack exceed implement… (PR #74220)

via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 2 19:20:50 PST 2023


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 38f75d606f94e6b552fd74d487b061a1f8f907fa 8990877d381639d8498630fd4e9b30732ab893d6 -- clang/lib/AST/ExprCXX.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/AST/ExprCXX.cpp b/clang/lib/AST/ExprCXX.cpp
index 5798321ea5..2509a6ddad 100644
--- a/clang/lib/AST/ExprCXX.cpp
+++ b/clang/lib/AST/ExprCXX.cpp
@@ -1681,7 +1681,8 @@ SubstNonTypeTemplateParmPackExpr::SubstNonTypeTemplateParmPackExpr(
       AssociatedDecl(AssociatedDecl), Arguments(ArgPack.pack_begin()),
       NumArguments(ArgPack.pack_size()), Index(Index), NameLoc(NameLoc) {
   assert(AssociatedDecl != nullptr);
-  assert(NumArguments == ArgPack.pack_size() && "number of arguments in a pack exceeded implementation limit");
+  assert(NumArguments == ArgPack.pack_size() &&
+         "number of arguments in a pack exceeded implementation limit");
   setDependence(ExprDependence::TypeValueInstantiation |
                 ExprDependence::UnexpandedPack);
 }

``````````

</details>


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


More information about the cfe-commits mailing list