[all-commits] [llvm/llvm-project] 5b0641: [mlir] Set WrapNamespaceBodyWithEmptyLines: Never ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Oct 2 19:36:04 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b0641b728a96c970221efda94e3fd6197711101
      https://github.com/llvm/llvm-project/commit/5b0641b728a96c970221efda94e3fd6197711101
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M mlir/.clang-format

  Log Message:
  -----------
  [mlir] Set WrapNamespaceBodyWithEmptyLines: Never (#221421)

MLIR predominantly writes namespace bodies without a wrapping empty
line: in mlir/lib and mlir/include 35% of bodies start with an empty
line and 32% end with one.

```
namespace ns { // no empty line below
struct A {
};
} // namespace ns  // no empty live above
```

New code drifts the other way, partly related to LLM preference. Pin the
majority style using a clang-format 20 feature to stop further damage.



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