[all-commits] [llvm/llvm-project] 89ce87: [clang] fix TemplateName Subst* nodes transform (#...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Mon Aug 25 20:09:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89ce8718be80ead58ef5942d2d5052a528e79fee
      https://github.com/llvm/llvm-project/commit/89ce8718be80ead58ef5942d2d5052a528e79fee
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-08-26 (Tue, 26 Aug 2025)

  Changed paths:
    M clang/include/clang/AST/TemplateName.h
    M clang/include/clang/AST/TypeLoc.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/TemplateName.cpp
    M clang/lib/AST/Type.cpp
    M clang/lib/AST/TypeLoc.cpp
    M clang/lib/Sema/SemaLookup.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/lib/Sema/TreeTransform.h
    M clang/test/SemaCXX/cxx20-ctad-type-alias.cpp
    M clang/test/SemaTemplate/deduction-guide.cpp
    M clang/test/SemaTemplate/nested-name-spec-template.cpp

  Log Message:
  -----------
  [clang] fix TemplateName Subst* nodes transform (#155342)

This makes sure NestedNameSpecifierLocs don't apply to the replacement
TemplateName of SubstTemplate* nodes.

Also removes improper name qualification over these Subst Nodes, causing
some canonical TemplateNames to not be fully qualified when printed.

Since this is a regression introduced in #147835, which was never
released, there are no release notes.

Fixes #155281



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list