[all-commits] [llvm/llvm-project] 1f5fdc: [clang] Fix a UsingTemplate regression after 3e78f...

Haojian Wu via All-commits all-commits at lists.llvm.org
Thu Mar 16 04:59:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f5fdc22a26c46a11ce406b745291b3c03bc67e8
      https://github.com/llvm/llvm-project/commit/1f5fdc22a26c46a11ce406b745291b3c03bc67e8
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp
    M clang/lib/AST/TemplateName.cpp
    M clang/test/AST/ast-dump-using-template.cpp

  Log Message:
  -----------
  [clang] Fix a UsingTemplate regression after 3e78fa860235431323aaf08c8fa922d75a7cfffa

TemplateName::getAsTemplateDecl() returns the underlying TemplateDecl
for a UsingTemplate kind template name. We should respect that in the
Profile method otherwise we might desugar the template name unexpectedly
(e.g. for template argument deduction with deduciton guides).

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




More information about the All-commits mailing list