[all-commits] [llvm/llvm-project] 741552: [clang] Implement CTAD for type alias template. (#...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Fri Mar 8 05:24:26 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7415524b45392651969374c067041daa82dc89e7
https://github.com/llvm/llvm-project/commit/7415524b45392651969374c067041daa82dc89e7
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2024-03-08 (Fri, 08 Mar 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/include/clang/Sema/Sema.h
M clang/lib/Sema/SemaInit.cpp
M clang/lib/Sema/SemaTemplate.cpp
M clang/lib/Sema/SemaTemplateDeduction.cpp
M clang/lib/Sema/SemaTemplateInstantiate.cpp
M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
M clang/lib/Sema/TreeTransform.h
M clang/test/SemaCXX/cxx17-compat.cpp
M clang/test/SemaCXX/cxx1z-class-template-argument-deduction.cpp
A clang/test/SemaCXX/cxx20-ctad-type-alias.cpp
M clang/www/cxx_status.html
Log Message:
-----------
[clang] Implement CTAD for type alias template. (#77890)
Fixes #54051
This patch implements the C++20 feature -- CTAD for alias templates (P1814R0, specified in https://eel.is/c++draft/over.match.class.deduct#3). It is an initial patch:
- it cover major pieces, thus it works for most cases;
- the big missing piece is to implement the associated constraints (over.match.class.deduct#3.3) for the synthesized deduction guides, see the FIXME in code and tests;
- Some enhancements on the TreeTransform&TemplateInstantiator to allow performing instantiation on `BuildingDeductionGuides` mode;
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list