https://github.com/llvm/llvm-project/issues/53567
The following source
namespace A {
template <int N> struct Foo<char[N]> {
void foo() { std::cout << "Bar"; }
}; // namespace Ais incorrectly formatted as:
namespace A {
template <int N> struct Foo<char[N]>{void foo(){std::cout << "Bar";
}
}
; // namespace AThis looks to be caused by https://github.com/llvm/llvm-project/commit/5c2e7c9ca043d92bed75b08e653fb47c384edd13
Maybe it would be easier to read if written !(is(tok::r_paren) || isTypeOrIdentifier())?