[all-commits] [llvm/llvm-project] 3b3e1b: [clang] fix TemplateName Subst* nodes transform

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Mon Aug 25 18:59:45 PDT 2025


  Branch: refs/heads/users/mizvekov/GH155281
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b3e1b30d55f4f4ff67b631652982ed2d9cd8887
      https://github.com/llvm/llvm-project/commit/3b3e1b30d55f4f4ff67b631652982ed2d9cd8887
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-08-25 (Mon, 25 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

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