[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 9 10:21:20 PST 2024


================
@@ -1061,6 +1070,59 @@ ExprResult Sema::ActOnSizeofParameterPackExpr(Scope *S,
                                 RParenLoc);
 }
 
+static bool isParameterPack(Expr *PackExpression) {
+  if (auto D = dyn_cast<DeclRefExpr>(PackExpression); D) {
----------------
erichkeane wrote:

```suggestion
  if (auto *D = dyn_cast<DeclRefExpr>(PackExpression); D) {
```

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


More information about the cfe-commits mailing list