[all-commits] [llvm/llvm-project] 2121bd: [clang][AST] Don't print inherited default templat...

Andrey Ali Khan Bolshakov via All-commits all-commits at lists.llvm.org
Sun Oct 5 09:44:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2121bda3424d7d8a18b4cd6718514be9bef5932e
      https://github.com/llvm/llvm-project/commit/2121bda3424d7d8a18b4cd6718514be9bef5932e
  Author: Andrey Ali Khan Bolshakov <bolsh.andrey at yandex.ru>
  Date:   2025-10-06 (Mon, 06 Oct 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/DeclPrinter.cpp
    M clang/test/AST/ast-print-record-decl.c

  Log Message:
  -----------
  [clang][AST] Don't print inherited default template args (#161953)

Prior to this change, for the code like this:
```cpp
template <int, int = 0>
class Tpl;
template <int = 0, int>
class Tpl;
```
pretty-printing produced an uncompilable code:
```cpp
template <int, int = 0> class Tpl;
template <int = 0, int = 0> class Tpl;
```



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