clang-format vs elm-format
clang-format
clang.llvm.orgelm-format
github.comSide by side
| Figure | clang-format | elm-format |
|---|---|---|
| Price from | — | Free |
| Free plan | — | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Plans published | 0 | 1 |
| Spec score · Code formatters | 7.7 (#8) | 7.8 (#5) |
| Spec score · Code Formatting Tools | 7.6 (#20) | 7.9 (#11) |
| Editor integrations | The documentation describes integrations for Vim, Emacs, BBEdit, CLion, Visual Studio, and Visual Studio Code. | The README lists integrations for Atom, Light Table, Vim, Emacs, Visual Studio Code, Sublime Text, JetBrains IDEs, and TextMate. |
| Intended users | The documentation presents ClangFormat as a standalone tool and editor integration for source-code formatting workflows. | The README describes benefits for developers and teams writing and maintaining Elm code. |
| License | LLVM releases are distributed under the Apache-2.0 license with LLVM exceptions, which the download page describes as OSI-approved. | The repository identifies its license as BSD-3-Clause. |
| Purpose | ClangFormat is a set of tools built on LibFormat for formatting source code, available as a standalone tool and through editor integrations. | elm-format formats Elm source code according to rules based on the official Elm Style Guide. |
Plans
In their own words
clang-format
clang-format has no write-up on Specifiction yet; its figures are above.