[clang] Instantiate alias templates with sugar
authorMatheus Izvekov <mizvekov@gmail.com>
Sun, 23 Oct 2022 14:57:12 +0000 (16:57 +0200)
committerMatheus Izvekov <mizvekov@gmail.com>
Mon, 31 Oct 2022 16:57:19 +0000 (17:57 +0100)
commit279fe6281d2ca5b2318c7437316c28750feaac8d
treee0177dfe107952b44da12f9930b6b02693e32080
parentab1140874fc6ab8ceb55a470489b80d953e1c6a6
[clang] Instantiate alias templates with sugar

This makes use of the changes introduced in D134604, in order to
instantiate alias templates witn a final sugared substitution.

This comes at no additional relevant cost.
Since we don't track / unique them in specializations, we wouldn't be
able to resugar them later anyway.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Differential Revision: https://reviews.llvm.org/D136565
clang-tools-extra/clangd/unittests/HoverTests.cpp
clang/lib/Sema/SemaTemplate.cpp
clang/test/AST/ast-dump-template-decls.cpp
clang/test/CXX/temp/temp.deduct.guide/p3.cpp
clang/test/Misc/diag-template-diffing.cpp
clang/test/SemaCXX/sizeless-1.cpp
clang/test/SemaTemplate/make_integer_seq.cpp
clang/test/SemaTemplate/temp_arg_nontype.cpp
lldb/test/API/commands/expression/import-std-module/shared_ptr/TestSharedPtrFromStdModule.py
lldb/test/API/commands/expression/import-std-module/weak_ptr-dbg-info-content/TestDbgInfoContentWeakPtrFromStdModule.py
lldb/test/API/commands/expression/import-std-module/weak_ptr/TestWeakPtrFromStdModule.py