[clang] [clang-format] Don't count template template parameter as declaration (PR #96396)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 24 07:08:32 PDT 2024


https://github.com/mydeveloperday commented:

Doesn't this show a change in default formatting from

```c++
template <class CCC1,
          template <class CCC2, template <class CCC3, class CCC4> class QQQ>
          class PPP>
void comment_to_html_conversion_22()
```

```c++
template <class CCC1,
          template <class CCC2,
                    template <class CCC3, class CCC4> class QQQ> class PPP>
void comment_to_html_conversion_22()
```
I think the fact that the previous test failed shows more that we have changed the default. Is this the change we expect? maybe we could add a unit test to assert the new behavior if that is desired

https://github.com/llvm/llvm-project/pull/96396


More information about the cfe-commits mailing list