[PATCH] D136563: [clang] Perform sugared substitution of builtin templates

Matheus Izvekov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 23 13:29:09 PDT 2022


mizvekov created this revision.
Herald added a project: All.
mizvekov requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Since these are much like template type aliases, where we don't
track a specialization for them and just substitute them eagerly,
we can't resugar them anyway, and there is no relevant cost in just
performing a finalizing sugared substitution.

Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>

Depends on D133874 <https://reviews.llvm.org/D133874>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136563

Files:
  clang/lib/Sema/SemaTemplate.cpp
  clang/test/SemaTemplate/make_integer_seq.cpp
  clang/test/SemaTemplate/type_pack_element.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136563.470007.patch
Type: text/x-patch
Size: 12546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221023/56d247f4/attachment.bin>


More information about the cfe-commits mailing list