[PATCH] D156546: [Clang][WIP]Experimental implementation of data member packs declarations
Christopher Di Bella via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 1 13:51:48 PDT 2023
cjdb added inline comments.
================
Comment at: clang/lib/Sema/SemaTemplateInstantiate.cpp:3270-3339
+ // Instantiate packed data members.
+ if (FieldDecl *Field = dyn_cast<FieldDecl>(Member);
+ Field && isa<PackExpansionType>(Field->getType().getTypePtr())) {
+ QualType PatternType = Field->getType()
+ ->castAs<PackExpansionType>()
+ ->getPattern();
+ std::optional<unsigned> NumArgumentsInExpansion =
----------------
In order to help improve the readability of this function, I suggest breaking the branches into two separate functions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156546/new/
https://reviews.llvm.org/D156546
More information about the cfe-commits
mailing list