[PATCH] D158006: [Clang][WIP]Experimental implementation of data member packs in dependent context.

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 16 15:18:03 PDT 2023


MaskRay added inline comments.


================
Comment at: clang/lib/Sema/SemaTemplateInstantiate.cpp:3292
+          std::string NewFieldName =
+              PackedField->getName().str() + "@" + std::to_string(Arg);
+          PackedField->setDeclName(&Context.Idents.get(NewFieldName));
----------------
cjdb wrote:
> Does LLVM have some form of `absl::StrCat` that we can use instead of `operator+`?
`(Twine(...) + ...).str()`

Many times `Twine` can be omitted.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158006/new/

https://reviews.llvm.org/D158006



More information about the cfe-commits mailing list