[clang] [Sema] Avoid an undesired pack expansion while transforming PackIndexingType (PR #90195)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 30 20:47:44 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 3ea9ed471c8dca8f703d7f3ce93d274a718b54bb 7a087f06240ce09a64fe679df14380e2fa538701 -- clang/lib/AST/ExprClassification.cpp clang/lib/Sema/TreeTransform.h clang/test/SemaCXX/cxx2c-pack-indexing.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/AST/ExprClassification.cpp b/clang/lib/AST/ExprClassification.cpp
index f943a6ba0d..45e05970df 100644
--- a/clang/lib/AST/ExprClassification.cpp
+++ b/clang/lib/AST/ExprClassification.cpp
@@ -217,7 +217,7 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) {
cast<SubstNonTypeTemplateParmExpr>(E)->getReplacement());
case Expr::PackIndexingExprClass: {
- // A pack-index-expression always expand to an id-expression.
+ // A pack-index-expression always expand to an id-expression.
// Consider it as an LValue expression.
if (cast<PackIndexingExpr>(E)->isInstantiationDependent())
return Cl::CL_LValue;
``````````
</details>
https://github.com/llvm/llvm-project/pull/90195
More information about the cfe-commits
mailing list