Print default template argument if manually specified in typedef declaration.
authorPratyush Das <reikdas@gmail.com>
Tue, 29 Jun 2021 13:50:04 +0000 (13:50 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Tue, 29 Jun 2021 14:57:26 +0000 (14:57 +0000)
commitc33ebad73516ffcf7b00821a430aa6a0199941f0
treecc91a7c20b2933f5a02ceaebf48e85bde79c6acf
parent58a230455bbc680fc12641d9231dce5dfb907e91
Print default template argument if manually specified in typedef declaration.

If a default template type argument is manually specified to be of the default
type, then it is committed when printing the template.

Differential revision: https://reviews.llvm.org/D103040
clang/lib/AST/TypePrinter.cpp
clang/test/SemaTemplate/class-template-id.cpp
clang/test/SemaTemplate/default-arguments-ast-print.cpp