[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>
Wed, 26 Oct 2022 01:23:24 +0000 (03:23 +0200)
commit4c44c91ad980304c5cca3792115349e68cfafd2b
treea9a1322f35907ff4705fa4e1ad988c14fc585e79
parent2560c1266993af6e6c15900ce673c6db23132f8b
[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