Skip to content

[clang-format] regression from clang-format v13  #53567

Closed
@paulhoad

Description

@paulhoad

The following source

namespace A {

template <int N> struct Foo<char[N]> {
  void foo() { std::cout << "Bar"; }
}; // namespace A

is formatted as:

namespace A {

template <int N> struct Foo<char[N]>{void foo(){std::cout << "Bar";
}
}
; // namespace A

using clang-format version 15.0.0 (https://github.com/llvm/llvm-project.git ee4ba9f
82397c60e17f14823eb22b2e5831c7)

Using the following .clang-format file

BasedOnStyle: LLVM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions