[all-commits] [llvm/llvm-project] 671eb7: [clang] AST/Print: honor AlwaysIncludeTypeForTempl...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Tue Jun 14 09:18:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 671eb7dc1e69fec251e115f4f49865895a43513a
      https://github.com/llvm/llvm-project/commit/671eb7dc1e69fec251e115f4f49865895a43513a
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2022-06-14 (Tue, 14 Jun 2022)

  Changed paths:
    M clang/lib/AST/TypePrinter.cpp
    M clang/test/CXX/temp/temp.decls/temp.class.spec/p6.cpp

  Log Message:
  -----------
  [clang] AST/Print: honor AlwaysIncludeTypeForTemplateArgument policy

This redoes D103040 in a way that `AlwaysIncludeTypeForTemplateArgument = false`
policy is honored for printing template specialization types.
This can be seen for example when printing a canonicalized
dependent TemplateSpecializationType which has integral arguments.

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

Reviewed By: v.g.vassilev

Differential Revision: https://reviews.llvm.org/D126620




More information about the All-commits mailing list